Package com.cetsoft.imcache.cache.search.criteria

Examples of com.cetsoft.imcache.cache.search.criteria.ArithmeticCriteria


    return (List<K>) results;
  }
 
  protected List<Object> execute(Criteria criteria){
    if(criteria instanceof ArithmeticCriteria){
      ArithmeticCriteria arithmeticCriteria = ((ArithmeticCriteria)criteria);
      CacheIndex cacheIndex = indexes.get(arithmeticCriteria.getAttributeName());
      if(cacheIndex==null){
        throw new IndexNotFoundException();
      }
      return arithmeticCriteria.meets(cacheIndex);
    }
    else{
      if(criteria instanceof AndCriteria){
        AndCriteria andCriteria = (AndCriteria)criteria;
        List<Object> results = new ArrayList<Object>();
View Full Code Here

TOP

Related Classes of com.cetsoft.imcache.cache.search.criteria.ArithmeticCriteria

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.