作者:高小原gy_941 | 来源:互联网 | 2023-07-25 17:17
本文整理了Java中org.apache.lucene.index.MultiReader.maxDoc()
方法的一些代码示例,展示了MultiReader.maxDoc()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiReader.maxDoc()
方法的具体详情如下:
包路径:org.apache.lucene.index.MultiReader
类名称:MultiReader
方法名:maxDoc
MultiReader.maxDoc介绍
暂无
代码示例
代码示例来源:origin: lucene/lucene
public synchronized void norms(String field, byte[] result, int offset)
throws IOException {
byte[] bytes = (byte[])normsCache.get(field);
if (bytes != null) // cache hit
System.arraycopy(bytes, 0, result, offset, maxDoc());
for (int i = 0; i subReaders[i].norms(field, result, offset + starts[i]);
}
代码示例来源:origin: lucene/lucene
public synchronized byte[] norms(String field) throws IOException {
byte[] bytes = (byte[])normsCache.get(field);
if (bytes != null)
return bytes; // cache hit
bytes = new byte[maxDoc()];
for (int i = 0; i subReaders[i].norms(field, bytes, starts[i]);
normsCache.put(field, bytes); // update cache
return bytes;
}
代码示例来源:origin: org.apache.lucene/lucene-core-jfrog
private byte[] fakeNorms() {
if (Ones==null) Ones=SegmentReader.createFakeNorms(maxDoc());
return ones;
}
代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene
private byte[] fakeNorms() {
if (Ones==null) Ones=SegmentReader.createFakeNorms(maxDoc());
return ones;
}
代码示例来源:origin: org.apache.lucene/lucene-core-jfrog
public synchronized void norms(String field, byte[] result, int offset)
throws IOException {
ensureOpen();
byte[] bytes = (byte[])normsCache.get(field);
if (bytes==null && !hasNorms(field)) bytes=fakeNorms();
if (bytes != null) // cache hit
System.arraycopy(bytes, 0, result, offset, maxDoc());
for (int i = 0; i subReaders[i].norms(field, result, offset + starts[i]);
}
代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene
public synchronized void norms(String field, byte[] result, int offset)
throws IOException {
ensureOpen();
byte[] bytes = (byte[])normsCache.get(field);
if (bytes==null && !hasNorms(field)) bytes=fakeNorms();
if (bytes != null) // cache hit
System.arraycopy(bytes, 0, result, offset, maxDoc());
for (int i = 0; i subReaders[i].norms(field, result, offset + starts[i]);
}
代码示例来源:origin: org.apache.lucene/com.springsource.org.apache.lucene
public synchronized byte[] norms(String field) throws IOException {
ensureOpen();
byte[] bytes = (byte[])normsCache.get(field);
if (bytes != null)
return bytes; // cache hit
if (!hasNorms(field))
return fakeNorms();
bytes = new byte[maxDoc()];
for (int i = 0; i subReaders[i].norms(field, bytes, starts[i]);
normsCache.put(field, bytes); // update cache
return bytes;
}
代码示例来源:origin: org.apache.lucene/lucene-core-jfrog
public synchronized byte[] norms(String field) throws IOException {
ensureOpen();
byte[] bytes = (byte[])normsCache.get(field);
if (bytes != null)
return bytes; // cache hit
if (!hasNorms(field))
return fakeNorms();
bytes = new byte[maxDoc()];
for (int i = 0; i subReaders[i].norms(field, bytes, starts[i]);
normsCache.put(field, bytes); // update cache
return bytes;
}