org.hibernate.search.engine
Class DocumentExtractor

java.lang.Object
  extended by org.hibernate.search.engine.DocumentExtractor

public class DocumentExtractor
extends Object

Helper class to extract EntityInfos out of the QueryHits.

Author:
Emmanuel Bernard, John Griffin, Hardy Ferentschik

Constructor Summary
DocumentExtractor(QueryHits queryHits, SearchFactoryImplementor searchFactoryImplementor, String[] projection, Set<String> idFieldNames, boolean allowFieldSelection)
           
 
Method Summary
 EntityInfo extract(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentExtractor

public DocumentExtractor(QueryHits queryHits,
                         SearchFactoryImplementor searchFactoryImplementor,
                         String[] projection,
                         Set<String> idFieldNames,
                         boolean allowFieldSelection)
Method Detail

extract

public EntityInfo extract(int index)
                   throws IOException
Throws:
IOException