Package com.alvazan.orm.api.z8spi

Examples of com.alvazan.orm.api.z8spi.BatchListener


  }

  @Override
  public AbstractCursor<Column> columnSlice(DboTableMeta colFamily, byte[] rowKey,
      byte[] from, byte[] to, Integer batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      log.info("[rawlogger] CF="+colFamily+" column slice(we have not meta info for column Slices, use scanIndex maybe?)");
      list = new LogBatchFetch("basic column slice", l, batchSize, ScanType.COLUMN_SLICE);
    }
   
View Full Code Here


    return ret;
  }
 
  @Override
  public AbstractCursor<IndexColumn> scanIndex(ScanInfo info, Key from, Key to, Integer batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      String cfAndIndex = logColScan(info, from, to, batchSize);
      list = new LogBatchFetch(cfAndIndex, l, batchSize, ScanType.RANGE_SLICE);
    }
    return session.scanIndex(info, from, to, batchSize, list, mgr);
View Full Code Here

    return session.scanIndex(info, from, to, batchSize, list, mgr);
  }
 
  @Override
  public AbstractCursor<IndexColumn> scanIndex(ScanInfo scanInfo, List<byte[]> values, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      String cfAndIndex = logColScan2(scanInfo, values);
      list = new LogBatchFetch(cfAndIndex, l, null, ScanType.NON_CONTIGUOUS);
    }
View Full Code Here

  }

  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      DirectCursor<byte[]> rowKeys, Cache realCache, int batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    //NOTE: get the cache here before the below log statement which used to clear out the trhead local as it ends
    //up doing a find through the cache layer that used to clear the thread local
    Cache cache = CacheThreadLocal.getCache();
   
    if(log.isInfoEnabled()) {
View Full Code Here

  }

  @Override
  public AbstractCursor<Column> columnSlice(DboTableMeta colFamily, byte[] rowKey,
      byte[] from, byte[] to, Integer batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      log.info("[rawlogger] CF="+colFamily+" column slice(we have not meta info for column Slices, use scanIndex maybe?)");
      list = new LogBatchFetch("basic column slice", l, batchSize, ScanType.COLUMN_SLICE);
    }
   
View Full Code Here

    return ret;
  }
 
  @Override
  public AbstractCursor<IndexColumn> scanIndex(ScanInfo info, Key from, Key to, Integer batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      String cfAndIndex = logColScan(info, from, to, batchSize);
      list = new LogBatchFetch(cfAndIndex, l, batchSize, ScanType.RANGE_SLICE);
    }
    return session.scanIndex(info, from, to, batchSize, list, mgr);
View Full Code Here

    return session.scanIndex(info, from, to, batchSize, list, mgr);
  }
 
  @Override
  public AbstractCursor<IndexColumn> scanIndex(ScanInfo scanInfo, List<byte[]> values, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      String cfAndIndex = logColScan2(scanInfo, values);
      list = new LogBatchFetch(cfAndIndex, l, null, ScanType.NON_CONTIGUOUS);
    }
View Full Code Here

  }

  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      Iterable<byte[]> rowKeys, Cache realCache, int batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    //NOTE: get the cache here before the below log statement which used to clear out the trhead local as it ends
    //up doing a find through the cache layer that used to clear the thread local
    Cache cache = CacheThreadLocal.getCache();
   
    if(log.isInfoEnabled()) {
View Full Code Here

  }

  @Override
  public AbstractCursor<Column> columnSlice(DboTableMeta colFamily, byte[] rowKey,
      byte[] from, byte[] to, Integer batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      log.info("[rawlogger] CF="+colFamily+" column slice(we have not meta info for column Slices, use scanIndex maybe?)");
      list = new LogBatchFetch("basic column slice", l, batchSize);
    }
   
View Full Code Here

    return ret;
  }
 
  @Override
  public AbstractCursor<IndexColumn> scanIndex(ScanInfo info, Key from, Key to, Integer batchSize, BatchListener l, MetaLookup mgr) {
    BatchListener list = l;
    if(log.isInfoEnabled()) {
      String cfAndIndex = logColScan(info, from, to, batchSize);
      list = new LogBatchFetch(cfAndIndex, l, batchSize);
    }
    return session.scanIndex(info, from, to, batchSize, list, mgr);
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.z8spi.BatchListener

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.