Type Parameters:
T - The type of values.
All Known Implementing Classes:
DocumentReferenceValues, ExplanationValues, IdentifierValues, LuceneConstantProjection, LuceneFieldHighlightProjection.HighlighterValues, LuceneThrowingProjection, ScoreValues

public interface Values<T>
A generic accessor to per-document values.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    context(org.apache.lucene.index.LeafReaderContext context)
    Sets the context to use for the next calls to get(int).
    get(int doc)
     
  • Method Details

    • context

      void context(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Sets the context to use for the next calls to get(int).
      Parameters:
      context - A LeafReaderContext.
      Throws:
      IOException - If an underlying I/O operation fails.
    • get

      T get(int doc) throws IOException
      Returns:
      The value for the given document in the current leaf.
      Throws:
      IOException - If an underlying I/O operation fails.