Interface Values<T>
-
- 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcontext(org.apache.lucene.index.LeafReaderContext context)Sets the context to use for the next calls toget(int).Tget(int doc)
-
-
-
Method Detail
-
context
void context(org.apache.lucene.index.LeafReaderContext context) throws IOExceptionSets the context to use for the next calls toget(int).- Parameters:
context- ALeafReaderContext.- 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.
-
-