Class DocValuesStats.SortedDocValuesStats

    • Constructor Detail

      • SortedDocValuesStats

        protected SortedDocValuesStats​(java.lang.String field)
    • Method Detail

      • init

        protected final boolean init​(LeafReaderContext context)
                              throws java.io.IOException
        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 class DocValuesStats<BytesRef>
        Throws:
        java.io.IOException
      • hasValue

        protected final boolean hasValue​(int doc)
                                  throws java.io.IOException
        Description copied from class: DocValuesStats
        Returns whether the given document has a value for the requested DocValues field.
        Specified by:
        hasValue in class DocValuesStats<BytesRef>
        Throws:
        java.io.IOException
      • doAccumulate

        protected void doAccumulate​(int count)
                             throws java.io.IOException
        Description copied from class: DocValuesStats
        Called after 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.
        Specified by:
        doAccumulate in class DocValuesStats<BytesRef>
        Parameters:
        count - the updated number of documents with value for this field.
        Throws:
        java.io.IOException