Class DocTermsIndexDocValues


  • public abstract class DocTermsIndexDocValues
    extends FunctionValues
    Serves as base class for FunctionValues based on DocTermsIndex.
    • Constructor Detail

      • DocTermsIndexDocValues

        public DocTermsIndexDocValues​(ValueSource vs,
                                      AtomicReaderContext context,
                                      java.lang.String field)
                               throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • exists

        public boolean exists​(int doc)
        Description copied from class: FunctionValues
        Returns true if there is a value for this document
        Overrides:
        exists in class FunctionValues
      • ordVal

        public int ordVal​(int doc)
        Overrides:
        ordVal in class FunctionValues
        Parameters:
        doc - The doc to retrieve to sort ordinal for
        Returns:
        the sort ordinal for the specified doc TODO: Maybe we can just use intVal for this...
      • numOrd

        public int numOrd()
        Overrides:
        numOrd in class FunctionValues
        Returns:
        the number of unique sort ordinals this instance has
      • bytesVal

        public boolean bytesVal​(int doc,
                                BytesRef target)
        Description copied from class: FunctionValues
        returns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?
        Overrides:
        bytesVal in class FunctionValues
      • objectVal

        public abstract java.lang.Object objectVal​(int doc)
        Description copied from class: FunctionValues
        Native Java Object representation of the value
        Overrides:
        objectVal in class FunctionValues