Package org.apache.lucene.misc.search
Class DocValuesStats.SortedSetDocValuesStats
java.lang.Object
org.apache.lucene.misc.search.DocValuesStats<BytesRef>
org.apache.lucene.misc.search.DocValuesStats.SortedSetDocValuesStats
- Enclosing class:
DocValuesStats<T>
Holds statistics for a sorted-set DocValues field.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.misc.search.DocValuesStats
DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends Number>, DocValuesStats.SortedSetDocValuesStats -
Field Summary
FieldsFields inherited from class org.apache.lucene.misc.search.DocValuesStats
field, max, min -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAccumulate(int count) Called afterDocValuesStats.accumulate(int)was processed and verified that the document has a value for the field.protected final booleanhasValue(int doc) Returns whether the given document has a value for the requested DocValues field.protected final booleaninit(LeafReaderContext context) Initializes this object with the given reader context.
-
Field Details
-
ssdv
-
-
Constructor Details
-
SortedSetDocValuesStats
-
-
Method Details
-
init
Description copied from class:DocValuesStatsInitializes this object with the given reader context. Returns whether stats can be computed for this segment (i.e. it does have the requested DocValues field).- Specified by:
initin classDocValuesStats<BytesRef>- Throws:
IOException
-
hasValue
Description copied from class:DocValuesStatsReturns whether the given document has a value for the requested DocValues field.- Specified by:
hasValuein classDocValuesStats<BytesRef>- Throws:
IOException
-
doAccumulate
Description copied from class:DocValuesStatsCalled afterDocValuesStats.accumulate(int)was processed and verified that the document has a value for the field. Implementations should update the statistics based on the value of the current document.- Specified by:
doAccumulatein classDocValuesStats<BytesRef>- Parameters:
count- the updated number of documents with value for this field.- Throws:
IOException
-