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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ProjectionAccumulator<String,?, A, ?> protected ChildDocIdsprotected org.apache.lucene.index.LeafReaderContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHighlighterValues(String parentDocumentPath, String nestedDocumentPath, TopDocsDataCollectorExecutionContext context, ProjectionAccumulator<String, ?, A, T> accumulator) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) final Aget(int parentDocId) highlight(int doc)
-
Field Details
-
leafReaderContext
protected org.apache.lucene.index.LeafReaderContext leafReaderContext -
accumulator
-
currentLeafChildDocIds
-
-
Constructor Details
-
HighlighterValues
protected HighlighterValues(String parentDocumentPath, String nestedDocumentPath, TopDocsDataCollectorExecutionContext context, ProjectionAccumulator<String, ?, A, T> accumulator)
-
-
Method Details
-
context
Description 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
- Throws:
IOException
-
highlight
- Throws:
IOException
-
doContext
protected org.apache.lucene.search.DocIdSetIterator doContext(org.apache.lucene.index.LeafReaderContext context) throws IOException - Throws:
IOException
-
get
- 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.
-