Package org.hibernate.search.engine

Examples of org.hibernate.search.engine.Loader


          queryHits, searchFactoryImplementor, indexProjection, idFieldNames, allowFieldSelectionInProjection
      );
      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
      }
      Loader loader = getLoader();
      List list = loader.load( infos.toArray( new EntityInfo[infos.size()] ) );
      if ( resultTransformer == null || loader instanceof ProjectionLoader ) {
        //stay consistent with transformTuple which can only be executed during a projection
        return list;
      }
      else {
View Full Code Here


      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
        //TODO should we measure on each extractor?
        if ( index % 10 == 0 ) timeoutManager.isTimedOut();
      }
      Loader loader = getLoader();
      //stop timeout manager, the iterator pace is in the user's hands
      timeoutManager.stop();
      return new IteratorImpl( infos, loader );
    }
    catch ( IOException e ) {
View Full Code Here

      int first = first();
      int max = max( first, queryHits.totalHits );
      DocumentExtractor extractor = new DocumentExtractor(
          queryHits, searchFactoryImplementor, indexProjection, idFieldNames, allowFieldSelectionInProjection
      );
      Loader loader = getLoader();
      //stop timeout manager, the iterator pace is in the user's hands
      timeoutManager.stop();
      return new ScrollableResultsImpl(
          searcher, first, max, fetchSize, extractor, loader, searchFactoryImplementor, this.session
      );
View Full Code Here

      for ( int index = first; index <= max; index++ ) {
        infos.add( extractor.extract( index ) );
        //TODO should we measure on each extractor?
        if ( index % 10 == 0 ) timeoutManager.isTimedOut();
      }
      Loader loader = getLoader();
      List list = loader.load( infos.toArray( new EntityInfo[infos.size()] ) );
      //no need to timeoutManager.isTimedOut from this point, we don't do anything intensive
      if ( resultTransformer == null || loader instanceof ProjectionLoader ) {
        //stay consistent with transformTuple which can only be executed during a projection
        return list;
      }
View Full Code Here

TOP

Related Classes of org.hibernate.search.engine.Loader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.