Class LuceneFieldHighlightProjection.HighlighterValues<A,T>

java.lang.Object
org.hibernate.search.backend.lucene.search.projection.impl.LuceneFieldHighlightProjection.HighlighterValues<A,T>
All Implemented Interfaces:
Values<A>
Enclosing class:
LuceneFieldHighlightProjection<T>

public abstract static class LuceneFieldHighlightProjection.HighlighterValues<A,T> extends Object
  • Field Details

    • leafReaderContext

      protected org.apache.lucene.index.LeafReaderContext leafReaderContext
    • accumulator

      protected final ProjectionAccumulator<String,?,A,?> accumulator
    • currentLeafChildDocIds

      protected ChildDocIds currentLeafChildDocIds
  • Constructor Details

  • Method Details

    • 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<A>
      Parameters:
      context - A LeafReaderContext.
      Throws:
      IOException - If an underlying I/O operation fails.
    • accumulate

      protected A accumulate(A accumulated, int docId) throws IOException
      Throws:
      IOException
    • highlight

      protected abstract List<String> highlight(int doc) throws IOException
      Throws:
      IOException
    • doContext

      protected org.apache.lucene.search.DocIdSetIterator doContext(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Throws:
      IOException
    • get

      public final A get(int parentDocId) throws IOException
      Specified by:
      get in interface Values<E>
      Returns:
      The value for the given document in the current leaf.
      Throws:
      IOException - If an underlying I/O operation fails.