private static class CompressingTermVectorsReader.TVTerms extends Terms
| Modifier and Type | Field and Description |
|---|---|
private int |
flags |
private int[] |
lengths |
private int |
numTerms |
private BytesRef |
payloadBytes |
private int[] |
payloadIndex |
private int[] |
positionIndex |
private int[] |
positions |
private int[] |
prefixLengths |
private int[] |
startOffsets |
private int[] |
suffixLengths |
private BytesRef |
termBytes |
private int[] |
termFreqs |
private long |
totalTermFreq |
EMPTY_ARRAY| Constructor and Description |
|---|
TVTerms(int numTerms,
int flags,
int[] prefixLengths,
int[] suffixLengths,
int[] termFreqs,
int[] positionIndex,
int[] positions,
int[] startOffsets,
int[] lengths,
int[] payloadIndex,
BytesRef payloadBytes,
BytesRef termBytes) |
| 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 |
size()
Returns the number of terms for this field, or -1 if this
measure isn't stored by the codec.
|
private final int numTerms
private final int flags
private final long totalTermFreq
private final int[] prefixLengths
private final int[] suffixLengths
private final int[] termFreqs
private final int[] positionIndex
private final int[] positions
private final int[] startOffsets
private final int[] lengths
private final int[] payloadIndex
private final BytesRef termBytes
private final BytesRef payloadBytes
public TermsEnum iterator() throws java.io.IOException
Termspublic long size()
throws java.io.IOException
Termspublic long getSumTotalTermFreq()
throws java.io.IOException
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 Termsjava.io.IOExceptionpublic 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.IOExceptionpublic boolean hasFreqs()
TermsPostingsEnum.freq()).public boolean hasOffsets()
TermshasOffsets in class Termspublic boolean hasPositions()
TermshasPositions in class Termspublic boolean hasPayloads()
TermshasPayloads in class Terms