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

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


  <T> AbstractCursor<KeyValue<T>> findAllImpl2(MetaClass<T> meta, ViewInfo mainView, DirectCursor<IndexColumnInfo> keys, 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
    IndiceCursorProxy indiceCursor = new IndiceCursorProxy(mainView, keys);
    DirectCursor<byte[]> virtKeys = new IndiceToVirtual(meta.getMetaDbo(), indiceCursor);
    return findAllImpl2(meta, virtKeys, query, cacheResults, batchSize);
  }
View Full Code Here


    return findAllImpl2(meta, keys, noSqlKeys, null, batchSize);
  }

  <T> AbstractCursor<KeyValue<TypedRow>> findAllImpl2(DboTableMeta meta, Iterable<T> keys, DirectCursor<byte[]> noSqlKeys, String query, int batchSize) {

    DirectCursor<byte[]> virtKeys = new IndiceToVirtual(meta, noSqlKeys);
    //NOTE: It is WAY more efficient to find ALL keys at once then it is to
    //find one at a time.  You would rather have 1 find than 1000 if network latency was 1 ms ;).
    AbstractCursor<KeyValue<Row>> rows2 = session.find(meta, virtKeys, true, false, batchSize);
    if(keys != null)
      return new CursorTypedResp<T>(meta, keys, rows2);
View Full Code Here

  public void loadCacheIfNeeded() {
    if(cacheLoaded)
      return;
   
    DboTableMeta metaDbo = metaClass.getMetaDbo();
    IndiceToVirtual virtKeys = new IndiceToVirtual(metaDbo, new ListWrappingCursor<byte[]>(keys));
    AbstractCursor<KeyValue<Row>> rows = session.find(metaDbo, virtKeys, false, true, null);
    String name = getClass().getSimpleName();
    if (log.isInfoEnabled())
      log.info(name+":just loaded rows for keylist(next convert to proxies)="+keys.size()+" for field="+field);
    int counter = 0;
View Full Code Here

      return;
   
    currentCacheLoaded = true;
   
    DboTableMeta metaDbo = proxyMeta.getMetaDbo();
    IndiceToVirtual virtKeys = new IndiceToVirtual(metaDbo, new ListWrappingCursor<byte[]>(keyList));
    AbstractCursor<KeyValue<Row>> rows = session.find(metaDbo, virtKeys, true, false, batchSize);
   
    int counter = 0;
    while(true) {
      com.alvazan.orm.api.z8spi.iter.AbstractCursor.Holder<KeyValue<Row>> holder = rows.nextImpl();
View Full Code Here

    if(cacheLoaded)
      return;

    DboTableMeta metaDbo = classMeta.getMetaDbo();
    DboColumnIdMeta idMeta = metaDbo.getIdColumnMeta();
    IndiceToVirtual virtKeys = new IndiceToVirtual(metaDbo, new ListWrappingCursor<byte[]>(keys));
    AbstractCursor<KeyValue<Row>> rows = session.find(metaDbo, virtKeys, false, true, null);
    String name = getClass().getSimpleName();
   
    if (log.isInfoEnabled())
      log.info(name+":just loaded rows for keylist(next convert to proxies)="+keys.size()+" for field="+field);
View Full Code Here

    return findAllImpl2(meta, keys, noSqlKeys, null, batchSize);
  }

  <T> AbstractCursor<KeyValue<TypedRow>> findAllImpl2(DboTableMeta meta, Iterable<T> keys, DirectCursor<byte[]> noSqlKeys, String query, int batchSize) {

    DirectCursor<byte[]> virtKeys = new IndiceToVirtual(meta, noSqlKeys);
    //NOTE: It is WAY more efficient to find ALL keys at once then it is to
    //find one at a time.  You would rather have 1 find than 1000 if network latency was 1 ms ;).
    AbstractCursor<KeyValue<Row>> rows2 = session.find(meta, virtKeys, true, false, batchSize);
    if(keys != null)
      return new CursorTypedResp<T>(meta, keys, rows2);
View Full Code Here

    return findAllImpl2(meta, keys, noSqlKeys, null, batchSize);
  }

  <T> AbstractCursor<KeyValue<TypedRow>> findAllImpl2(DboTableMeta meta, Iterable<T> keys, DirectCursor<byte[]> noSqlKeys, String query, int batchSize) {

    DirectCursor<byte[]> virtKeys = new IndiceToVirtual(meta, noSqlKeys);
    //NOTE: It is WAY more efficient to find ALL keys at once then it is to
    //find one at a time.  You would rather have 1 find than 1000 if network latency was 1 ms ;).
    AbstractCursor<KeyValue<Row>> rows2 = session.find(meta, virtKeys, true, false, batchSize);
    if(keys != null)
      return new CursorTypedResp<T>(meta, keys, rows2);
View Full Code Here

  <T> AbstractCursor<KeyValue<T>> findAllImpl2(MetaClass<T> meta, ViewInfo mainView, DirectCursor<IndexColumnInfo> keys, 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
    IndiceCursorProxy indiceCursor = new IndiceCursorProxy(mainView, keys);
    DirectCursor<byte[]> virtKeys = new IndiceToVirtual(meta.getMetaDbo(), indiceCursor);
    return findAllImpl2(meta, virtKeys, query, cacheResults, batchSize);
  }
View Full Code Here

    if(cacheLoaded)
      return;
   
    DboTableMeta metaDbo = metaClass.getMetaDbo();
    DboColumnIdMeta idMeta = metaDbo.getIdColumnMeta();
    IndiceToVirtual virtKeys = new IndiceToVirtual(metaDbo, new ListWrappingCursor<byte[]>(keys));
    AbstractCursor<KeyValue<Row>> rows = session.find(metaDbo, virtKeys, false, true, null);
    String name = getClass().getSimpleName();
    log.info(name+":just loaded rows for keylist(next convert to proxies)="+keys.size()+" for field="+field);
    int counter = 0;
    while(true) {
View Full Code Here

      return;
   
    currentCacheLoaded = true;
   
    DboTableMeta metaDbo = proxyMeta.getMetaDbo();
    IndiceToVirtual virtKeys = new IndiceToVirtual(metaDbo, new ListWrappingCursor<byte[]>(keyList));
    AbstractCursor<KeyValue<Row>> rows = session.find(metaDbo, virtKeys, true, false, batchSize);
   
    int counter = 0;
    while(true) {
      com.alvazan.orm.api.z8spi.iter.AbstractCursor.Holder<KeyValue<Row>> holder = rows.nextImpl();
View Full Code Here

TOP

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

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.