public class UnionQueryAnalyzer<S extends Storable> extends java.lang.Object implements QueryExecutorFactory<S>
IndexedQueryAnalyzer is used for selecting the best indexes.
UnionQueryAnalyzer is sharable and thread-safe. An instance for a particular Storable type can be cached, avoiding repeated construction cost. In addition, the analyzer caches learned foreign indexes.
| Modifier and Type | Class and Description |
|---|---|
class |
UnionQueryAnalyzer.Result |
| Constructor and Description |
|---|
UnionQueryAnalyzer(java.lang.Class<S> type,
RepositoryAccess access) |
| Modifier and Type | Method and Description |
|---|---|
UnionQueryAnalyzer.Result |
analyze(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
QueryExecutor<S> |
executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns an executor that handles the given query specification.
|
java.lang.Class<S> |
getStorableType() |
public UnionQueryAnalyzer(java.lang.Class<S> type, RepositoryAccess access)
type - type of storable being queriedaccess - repository access for examing available indexesjava.lang.IllegalArgumentException - if type or indexProvider is nullpublic java.lang.Class<S> getStorableType()
getStorableType in interface QueryExecutorFactory<S extends Storable>public UnionQueryAnalyzer.Result analyze(Filter<S> filter, OrderingList<S> ordering, QueryHints hints) throws SupportException, RepositoryException
filter - optional filter which must be boundordering - optional properties which define desired orderinghints - optional query hintsSupportExceptionRepositoryExceptionpublic QueryExecutor<S> executor(Filter<S> filter, OrderingList<S> ordering, QueryHints hints) throws RepositoryException
executor in interface QueryExecutorFactory<S extends Storable>filter - optional filter which must be boundordering - optional properties which define desired orderinghints - optional query hintsRepositoryExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.