Package com.alvazan.orm.api.z8spi.iter

Examples of com.alvazan.orm.api.z8spi.iter.IterToVirtual


    MetaClass<T> meta = metaInfo.getMetaClass(entityType);
    if(meta == null)
      throw new IllegalArgumentException("Class type="+entityType.getName()+" was not found, please check that you scanned the right package and look at the logs to see if this class was scanned");

    Iterable<byte[]> iter = new IterableKey<T>(meta, keys);
    Iterable<byte[]> virtKeys = new IterToVirtual(meta.getMetaDbo(), iter);
   
    //we pass in null for batch size such that we do infinite size or basically all keys passed into this method in one
    //shot
    return findAllImpl2(meta, new IterableWrappingCursor<byte[]>(virtKeys), null, true, null);
  }
View Full Code Here


 
  <T> AbstractCursor<KeyValue<T>> findAllImpl2(MetaClass<T> meta, Iterable<byte[]> iter, String query, boolean cacheResults, Integer batchSize) {
    //OKAY, so this gets interesting.  The noSqlKeys could be a proxy iterable to
    //millions of keys with some batch size.  We canNOT do a find inline here but must do the find in
    //batches as well
    Iterable<byte[]> virtKeys = new IterToVirtual(meta.getMetaDbo(), iter);
    boolean skipCache = query != null;
    AbstractCursor<KeyValue<Row>> cursor = session.find(meta.getMetaDbo(), virtKeys, skipCache, cacheResults, batchSize);
    return new CursorRow<T>(session, meta, cursor, query);
  }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.iter.IterToVirtual

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.