com.amazon.carbonado.qe
Class QueryExecutorCache<S extends Storable>
java.lang.Object
com.amazon.carbonado.qe.QueryExecutorCache<S>
- All Implemented Interfaces:
- QueryExecutorFactory<S>
public class QueryExecutorCache<S extends Storable>
- extends Object
- implements QueryExecutorFactory<S>
QueryExecutors should be cached since expensive analysis is often required
to build them.
- Author:
- Brian S O'Neill
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryExecutorCache
public QueryExecutorCache(QueryExecutorFactory<S> factory)
getStorableType
public Class<S> getStorableType()
- Specified by:
getStorableType in interface QueryExecutorFactory<S extends Storable>
executor
public QueryExecutor<S> executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
throws RepositoryException
- Returns an executor from the cache.
- Specified by:
executor in interface QueryExecutorFactory<S extends Storable>
- Parameters:
filter - optional filterordering - optional order-by propertieshints - optional query hints
- Throws:
RepositoryException
Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.