public static class DocValuesStats.SortedDocValuesStats extends DocValuesStats<BytesRef>
DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends Number>, DocValuesStats.SortedSetDocValuesStats
Modifier and Type | Field and Description |
---|---|
protected SortedDocValues |
sdv |
field, max, min
Modifier | Constructor and Description |
---|---|
protected |
SortedDocValuesStats(String field) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAccumulate(int count)
Called after
DocValuesStats.accumulate(int) was processed and verified that the document has a value for
the field. |
protected boolean |
hasValue(int doc)
Returns whether the given document has a value for the requested DocValues field.
|
protected boolean |
init(LeafReaderContext context)
Initializes this object with the given reader context.
|
protected SortedDocValues sdv
protected SortedDocValuesStats(String field)
protected final boolean init(LeafReaderContext context) throws IOException
DocValuesStats
init
in class DocValuesStats<BytesRef>
IOException
protected final boolean hasValue(int doc) throws IOException
DocValuesStats
hasValue
in class DocValuesStats<BytesRef>
IOException
protected void doAccumulate(int count) throws IOException
DocValuesStats
DocValuesStats.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.doAccumulate
in class DocValuesStats<BytesRef>
count
- the updated number of documents with value for this field.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.