Class LuceneFieldHighlightProjection.HighlighterValues<A>
- java.lang.Object
-
- org.hibernate.search.backend.lucene.search.projection.impl.LuceneFieldHighlightProjection.HighlighterValues<A>
-
- All Implemented Interfaces:
Values<A>
- Enclosing class:
- LuceneFieldHighlightProjection
public abstract static class LuceneFieldHighlightProjection.HighlighterValues<A> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ProjectionAccumulator<E,?,A,?>accumulatorprotected ChildDocIdscurrentLeafChildDocIdsprotected org.apache.lucene.index.LeafReaderContextleafReaderContext
-
Constructor Summary
Constructors Modifier Constructor Description protectedHighlighterValues(String parentDocumentPath, String nestedDocumentPath, TopDocsDataCollectorExecutionContext context, ProjectionAccumulator<String,?,A,List<String>> accumulator)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Aaccumulate(A accumulated, int docId)voidcontext(org.apache.lucene.index.LeafReaderContext context)Sets the context to use for the next calls toValues.get(int).protected org.apache.lucene.search.DocIdSetIteratordoContext(org.apache.lucene.index.LeafReaderContext context)Aget(int parentDocId)protected abstract List<String>highlight(int doc)
-
-
-
Field Detail
-
leafReaderContext
protected org.apache.lucene.index.LeafReaderContext leafReaderContext
-
accumulator
protected final ProjectionAccumulator<E,?,A,?> accumulator
-
currentLeafChildDocIds
protected ChildDocIds currentLeafChildDocIds
-
-
Constructor Detail
-
HighlighterValues
protected HighlighterValues(String parentDocumentPath, String nestedDocumentPath, TopDocsDataCollectorExecutionContext context, ProjectionAccumulator<String,?,A,List<String>> accumulator)
-
-
Method Detail
-
context
public void context(org.apache.lucene.index.LeafReaderContext context) throws IOExceptionDescription copied from interface:ValuesSets the context to use for the next calls toValues.get(int).- Specified by:
contextin interfaceValues<A>- Parameters:
context- ALeafReaderContext.- 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:
getin interfaceValues<E>- Returns:
- The value for the given document in the current leaf.
- Throws:
IOException- If an underlying I/O operation fails.
-
-