private static class SimpleTextTermVectorsReader.SimpleTVTerms extends Terms
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
hasOffsets |
(package private) boolean |
hasPayloads |
(package private) boolean |
hasPositions |
(package private) java.util.SortedMap<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings> |
terms |
EMPTY_ARRAY
Constructor and Description |
---|
SimpleTVTerms(boolean hasOffsets,
boolean hasPositions,
boolean hasPayloads) |
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.
|
final java.util.SortedMap<BytesRef,SimpleTextTermVectorsReader.SimpleTVPostings> terms
final boolean hasOffsets
final boolean hasPositions
final boolean hasPayloads
SimpleTVTerms(boolean hasOffsets, boolean hasPositions, boolean hasPayloads)
public TermsEnum iterator() throws java.io.IOException
Terms
public long size() throws java.io.IOException
Terms
public long getSumTotalTermFreq() throws java.io.IOException
Terms
TermsEnum.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 Terms
java.io.IOException
public long getSumDocFreq() throws java.io.IOException
Terms
TermsEnum.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 Terms
java.io.IOException
public int getDocCount() throws java.io.IOException
Terms
getDocCount
in class Terms
java.io.IOException
public boolean hasFreqs()
Terms
PostingsEnum.freq()
).public boolean hasOffsets()
Terms
hasOffsets
in class Terms
public boolean hasPositions()
Terms
hasPositions
in class Terms
public boolean hasPayloads()
Terms
hasPayloads
in class Terms