Class DocumentExtractorImpl
java.lang.Object
org.hibernate.search.query.engine.impl.DocumentExtractorImpl
- All Implemented Interfaces:
DocumentExtractor
DocumentExtractor is a traverser over the full-text results (EntityInfo)
This operation is as lazy as possible:
- the query is executed eagerly
- results are not retrieved until actually requested
#getFirstIndex and #getMaxIndex define the boundaries available to #extract.
DocumentExtractor objects *must* be closed when the results are no longer traversed.
#close
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentExtractorImpl(QueryHits queryHits, SearchFactoryImplementor searchFactoryImplementor, String[] projection, Set<String> idFieldNames, boolean allowFieldSelection, IndexSearcherWithPayload searcher, Object query, int firstIndex, int maxIndex, Set<Class<?>> classesAndSubclasses) -
Method Summary
-
Constructor Details
-
DocumentExtractorImpl
public DocumentExtractorImpl(QueryHits queryHits, SearchFactoryImplementor searchFactoryImplementor, String[] projection, Set<String> idFieldNames, boolean allowFieldSelection, IndexSearcherWithPayload searcher, Object query, int firstIndex, int maxIndex, Set<Class<?>> classesAndSubclasses)
-
-
Method Details
-
extract
- Specified by:
extractin interfaceDocumentExtractor- Throws:
IOException
-
getFirstIndex
public int getFirstIndex()- Specified by:
getFirstIndexin interfaceDocumentExtractor
-
getMaxIndex
public int getMaxIndex()- Specified by:
getMaxIndexin interfaceDocumentExtractor
-
close
public void close()- Specified by:
closein interfaceDocumentExtractor
-