com.amazon.carbonado.qe
Class QueryExecutorCache<S extends Storable>

java.lang.Object
  extended by 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

Constructor Summary
QueryExecutorCache(QueryExecutorFactory<S> factory)
           
 
Method Summary
 QueryExecutor<S> executor(Filter<S> filter, OrderingList<S> ordering, QueryHints hints)
          Returns an executor from the cache.
 Class<S> getStorableType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryExecutorCache

public QueryExecutorCache(QueryExecutorFactory<S> factory)
Method Detail

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 filter
ordering - optional order-by properties
hints - optional query hints
Throws:
RepositoryException


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.