Package com.alvazan.orm.api.z8spi

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


  }
 
  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      DirectCursor<byte[]> rowKeys, boolean skipCache, boolean cacheResults, Integer batchSize) {
    Cache c = new EmptyCache(this, skipCache, cacheResults);
   
    //NOTE: I would put a finally to clear out the threadlocal normally BUT sometimes log statements may
    //cause further finds to be called which come in here as well and on their way BACK up the stack, they set
    //the cache to NULL before the find actually happens(ie. very bad).
    CacheThreadLocal.setCache(c);
View Full Code Here


  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()) {
      list = new LogBatchFetch("CF="+colFamily, l, batchSize, ScanType.FIND);
    }
   
View Full Code Here

  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()) {
      list = new LogBatchFetch("CF="+colFamily, l, batchSize, ScanType.FIND);
    }
   
View Full Code Here

  }
 
  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      Iterable<byte[]> rowKeys, boolean skipCache, boolean cacheResults, Integer batchSize) {
    Cache c = new EmptyCache(this, skipCache, cacheResults);
   
    //NOTE: I would put a finally to clear out the threadlocal normally BUT sometimes log statements may
    //cause further finds to be called which come in here as well and on their way BACK up the stack, they set
    //the cache to NULL before the find actually happens(ie. very bad).
    CacheThreadLocal.setCache(c);
View Full Code Here

  }
 
  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      Iterable<byte[]> rowKeys, boolean skipCache, Integer batchSize) {
    Cache c = this;
    if(skipCache) {
      c = new EmptyCache(this);
    }
   
    //NOTE: I would put a finally to clear out the threadlocal normally BUT sometimes log statements may
View Full Code Here

  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()) {
      list = new LogBatchFetch("CF="+colFamily, l, batchSize);
    }
   
View Full Code Here

  }
 
  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      DirectCursor<byte[]> rowKeys, boolean skipCache, boolean cacheResults, Integer batchSize) {
    Cache c = new EmptyCache(this, skipCache, cacheResults);
   
    //NOTE: I would put a finally to clear out the threadlocal normally BUT sometimes log statements may
    //cause further finds to be called which come in here as well and on their way BACK up the stack, they set
    //the cache to NULL before the find actually happens(ie. very bad).
    CacheThreadLocal.setCache(c);
View Full Code Here

  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()) {
      list = new LogBatchFetch("CF="+colFamily, l, batchSize, ScanType.FIND);
    }
   
View Full Code Here

  }
 
  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      Iterable<byte[]> rowKeys, boolean skipCache, Integer batchSize) {
    Cache c = this;
    if(skipCache) {
      c = new EmptyCache(this);
    }
   
    //NOTE: I would put a finally to clear out the threadlocal normally BUT sometimes log statements may
View Full Code Here

  }
 
  @Override
  public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily,
      DirectCursor<byte[]> rowKeys, boolean skipCache, boolean cacheResults, Integer batchSize) {
    Cache c = new EmptyCache(this, skipCache, cacheResults);
   
    //NOTE: I would put a finally to clear out the threadlocal normally BUT sometimes log statements may
    //cause further finds to be called which come in here as well and on their way BACK up the stack, they set
    //the cache to NULL before the find actually happens(ie. very bad).
    CacheThreadLocal.setCache(c);
View Full Code Here

TOP

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

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.