public class IndexedQueryAnalyzer<S extends Storable>
extends java.lang.Object
IndexedQueryAnalyzer 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.
UnionQueryAnalyzer| Modifier and Type | Class and Description |
|---|---|
class |
IndexedQueryAnalyzer.Result |
| Constructor and Description |
|---|
IndexedQueryAnalyzer(java.lang.Class<S> type,
RepositoryAccess access) |
| Modifier and Type | Method and Description |
|---|---|
IndexedQueryAnalyzer.Result |
analyze(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
java.lang.Class<S> |
getStorableType() |
public IndexedQueryAnalyzer(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()
public IndexedQueryAnalyzer.Result analyze(Filter<S> filter, OrderingList<S> ordering, QueryHints hints) throws SupportException, RepositoryException
filter - optional filter which which must be bound and cannot contain any logical 'or' operations.ordering - optional properties which define desired orderinghints - optional query hintsjava.lang.IllegalArgumentException - if filter is not supportedSupportExceptionRepositoryExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.