Examples of Loader


Examples of org.hibernate.search.engine.Loader

      List<EntityInfo> infos = new ArrayList<EntityInfo>( size );
      DocumentExtractor extractor = new DocumentExtractor( searchFactoryImplementor, indexProjection );
      for (int index = first; index <= max; index++) {
        infos.add( extractor.extract( hits, index ) );
      }
      Loader loader = getLoader( sess, searchFactoryImplementor );
      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

Examples of org.hibernate.search.engine.Loader

      );
      for ( int index = first; index <= max; index++ ) {
        //TODO use indexSearcher.getIndexReader().document( hits.id(index), FieldSelector(indexProjection) );
        infos.add( extractor.extract( index ) );
      }
      Loader loader = getLoader( sess, searchFactoryImplementor );
      return new IteratorImpl( infos, loader );
    }
    catch ( IOException e ) {
      throw new HibernateException( "Unable to query Lucene index", e );
    }
View Full Code Here

Examples of org.hibernate.search.engine.Loader

      int first = first();
      int max = max( first, queryHits.totalHits );
      DocumentExtractor extractor = new DocumentExtractor(
          queryHits, searchFactory, indexProjection, idFieldNames,allowFieldSelectionInProjection
      );
      Loader loader = getLoader( ( Session ) this.session, searchFactory );
      return new ScrollableResultsImpl(
          searcher, first, max, fetchSize, extractor, loader, searchFactory
      );
    }
    catch ( IOException e ) {
View Full Code Here

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( sess, searchFactoryImplementor );
      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

Examples of org.hibernate.search.engine.Loader

        }
      }
      catch ( QueryTimeoutException e ) {
        reactOnQueryTimeoutExceptionWhileExtracting( e );
      }
      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

Examples of org.hibernate.search.engine.Loader

      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.getSearcher(), first, max, fetchSize, extractor, loader, searchFactoryImplementor, this.session
      );
View Full Code Here

Examples of org.hibernate.search.engine.Loader

        }
      }
      catch ( QueryTimeoutException e ) {
        reactOnQueryTimeoutExceptionWhileExtracting( e );
      }
      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

Examples of org.huihoo.willow.Loader

   */
  public synchronized void setLoader(Loader loader)
  {

    // Change components if necessary
    Loader oldLoader = this.loader;
    if (oldLoader == loader)
      return;
    this.loader = loader;

    // Stop the old component if necessary
View Full Code Here

Examples of org.jboss.classloader.spi.Loader

         throw new IllegalStateException(this + " classLoader is not connected to a domain (probably undeployed?) for class " + getName());

      ClassLoaderUtils.checkClassName(className);
      String path = ClassLoaderUtils.classNameToPath(className);

      Loader loader = domain.findLoader(this, path, basePolicy.isImportAll(), true);
      if (loader == null)
         throw new ClassNotFoundException("Class " + className + " not found from " + this);

      // This is a bit ugly but we can't abstract this behind an interface because
      // that would make the methods public
View Full Code Here

Examples of org.jboss.resteasy.keystone.server.Loader

      app.getRoles().create(adminRole);

      app.getProjects().addUserRole(project.getId(), admin.getId(), adminRole.getId());

      // Test export/import
      System.out.println(new Loader().export(app.getCache()));

      try
      {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         new Loader().export(app.getCache(), baos);
         ByteArrayInputStream bios = new ByteArrayInputStream(baos.toByteArray());
         app.getCache().clear();
         new Loader().importStore(bios, app.getCache());
      }
      catch (Exception e)
      {
         e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.