public static class DocValuesStats.SortedDocValuesStats extends DocValuesStats<BytesRef>
DocValuesStats.DoubleDocValuesStats, DocValuesStats.LongDocValuesStats, DocValuesStats.NumericDocValuesStats<T extends java.lang.Number>, DocValuesStats.SortedDocValuesStats, DocValuesStats.SortedDoubleDocValuesStats, DocValuesStats.SortedLongDocValuesStats, DocValuesStats.SortedNumericDocValuesStats<T extends java.lang.Number>, DocValuesStats.SortedSetDocValuesStats
Modifier and Type | Field and Description |
---|---|
protected SortedDocValues |
sdv |
field, max, min
Modifier | Constructor and Description |
---|---|
protected |
SortedDocValuesStats(java.lang.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 final boolean init(LeafReaderContext context) throws java.io.IOException
DocValuesStats
init
in class DocValuesStats<BytesRef>
java.io.IOException
protected final boolean hasValue(int doc) throws java.io.IOException
DocValuesStats
hasValue
in class DocValuesStats<BytesRef>
java.io.IOException
protected void doAccumulate(int count) throws java.io.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.java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.