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
Fields inherited from class org.apache.lucene.misc.search.DocValuesStats
field, max, min
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doAccumulate
(int count) Called afterDocValuesStats.accumulate(int)
was processed and verified that the document has a value for the field.protected final boolean
hasValue
(int doc) Returns whether the given document has a value for the requested DocValues field.protected final boolean
init
(LeafReaderContext context) Initializes this object with the given reader context.
-
Field Details
-
ssdv
-
-
Constructor Details
-
SortedSetDocValuesStats
-
-
Method Details
-
init
Description copied from class:DocValuesStats
Initializes 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:
init
in classDocValuesStats<BytesRef>
- Throws:
IOException
-
hasValue
Description copied from class:DocValuesStats
Returns whether the given document has a value for the requested DocValues field.- Specified by:
hasValue
in classDocValuesStats<BytesRef>
- Throws:
IOException
-
doAccumulate
Description copied from class:DocValuesStats
Called 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:
doAccumulate
in classDocValuesStats<BytesRef>
- Parameters:
count
- the updated number of documents with value for this field.- Throws:
IOException
-