private class BlockTermsReader.FieldReader extends Terms implements Accountable
| Modifier and Type | Class and Description |
|---|---|
private class |
BlockTermsReader.FieldReader.SegmentTermsEnum |
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
docCount |
(package private) FieldInfo |
fieldInfo |
(package private) int |
longsSize |
(package private) long |
numTerms |
(package private) long |
sumDocFreq |
(package private) long |
sumTotalTermFreq |
(package private) long |
termsStartPointer |
EMPTY_ARRAY| Constructor and Description |
|---|
FieldReader(FieldInfo fieldInfo,
long numTerms,
long termsStartPointer,
long sumTotalTermFreq,
long sumDocFreq,
int docCount,
int longsSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
getDocCount()
Returns the number of documents that have at least one
term for this field.
|
long |
getSumDocFreq()
Returns the sum of
TermsEnum.docFreq() for
all terms in this field. |
long |
getSumTotalTermFreq()
Returns the sum of
TermsEnum.totalTermFreq() for
all terms in this field. |
boolean |
hasFreqs()
Returns true if documents in this field store
per-document term frequency (
PostingsEnum.freq()). |
boolean |
hasOffsets()
Returns true if documents in this field store offsets.
|
boolean |
hasPayloads()
Returns true if documents in this field store payloads.
|
boolean |
hasPositions()
Returns true if documents in this field store positions.
|
TermsEnum |
iterator()
Returns an iterator that will step through all
terms.
|
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
long |
size()
Returns the number of terms for this field, or -1 if this
measure isn't stored by the codec.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildResourcesfinal long numTerms
final FieldInfo fieldInfo
final long termsStartPointer
final long sumTotalTermFreq
final long sumDocFreq
final int docCount
final int longsSize
FieldReader(FieldInfo fieldInfo, long numTerms, long termsStartPointer, long sumTotalTermFreq, long sumDocFreq, int docCount, int longsSize)
public long ramBytesUsed()
AccountableramBytesUsed in interface Accountablepublic TermsEnum iterator() throws java.io.IOException
Termspublic boolean hasFreqs()
TermsPostingsEnum.freq()).public boolean hasOffsets()
TermshasOffsets in class Termspublic boolean hasPositions()
TermshasPositions in class Termspublic boolean hasPayloads()
TermshasPayloads in class Termspublic long size()
Termspublic long getSumTotalTermFreq()
TermsTermsEnum.totalTermFreq() for
all terms in this field. Note that, just like other term
measures, this measure does not take deleted documents
into account.getSumTotalTermFreq in class Termspublic long getSumDocFreq()
throws java.io.IOException
TermsTermsEnum.docFreq() for
all terms in this field. Note that, just like other term
measures, this measure does not take deleted documents
into account.getSumDocFreq in class Termsjava.io.IOExceptionpublic int getDocCount()
throws java.io.IOException
TermsgetDocCount in class Termsjava.io.IOException