Class ExplanationValues

  • All Implemented Interfaces:
    Values<org.apache.lucene.search.Explanation>

    public final class ExplanationValues
    extends Object
    implements Values<org.apache.lucene.search.Explanation>
    • Method Detail

      • context

        public void context​(org.apache.lucene.index.LeafReaderContext context)
                     throws IOException
        Description copied from interface: Values
        Sets the context to use for the next calls to Values.get(int).
        Specified by:
        context in interface Values<org.apache.lucene.search.Explanation>
        Parameters:
        context - A LeafReaderContext.
        Throws:
        IOException - If an underlying I/O operation fails.
      • get

        public org.apache.lucene.search.Explanation get​(int doc)
                                                 throws IOException
        Specified by:
        get in interface Values<org.apache.lucene.search.Explanation>
        Returns:
        The value for the given document in the current leaf.
        Throws:
        IOException - If an underlying I/O operation fails.