org.hibernate.search.query.engine.spi
Interface DocumentExtractor

All Known Implementing Classes:
DocumentExtractorImpl

public interface 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(int). DocumentExtractor objects *must* be closed when the results are no longer traversed. See close()

Author:
Emmanuel Bernard

Method Summary
 void close()
           
 EntityInfo extract(int index)
           
 int getFirstIndex()
           
 int getMaxIndex()
           
 org.apache.lucene.search.TopDocs getTopDocs()
           
 

Method Detail

extract

EntityInfo extract(int index)
                   throws IOException
Throws:
IOException

getFirstIndex

int getFirstIndex()

getMaxIndex

int getMaxIndex()

close

void close()

getTopDocs

org.apache.lucene.search.TopDocs getTopDocs()


Copyright © 2006-2012 Hibernate. All Rights Reserved.