Package | Description |
---|---|
com.amazon.carbonado.qe |
Support for implementing a Query Engine.
|
Modifier and Type | Method and Description |
---|---|
OrderingList<S> |
OrderingList.concat(java.lang.Class<S> type,
java.lang.String property)
Returns a list which concatenates this one with the given property.
|
OrderingList<S> |
OrderingList.concat(OrderedProperty<S> property)
Returns a list which concatenates this one with the given property.
|
OrderingList<S> |
OrderingList.concat(OrderingList<S> other)
Returns a list which concatenates this one with the other one.
|
static <S extends Storable> |
OrderingList.emptyList()
Returns a canonical empty instance.
|
static <S extends Storable> |
OrderingList.get(java.lang.Class<S> type,
java.lang.String... orderings)
Returns a canonical instance composed of the given orderings.
|
static <S extends Storable> |
OrderingList.get(java.lang.Class<S> type,
java.lang.String property)
Returns a canonical instance composed of the given ordering.
|
static <S extends Storable> |
OrderingList.get(java.util.List<OrderedProperty<S>> orderings)
Returns a canonical instance composed of the given orderings.
|
static <S extends Storable> |
OrderingList.get(OrderedProperty<S>... orderings)
Returns a canonical instance composed of the given orderings.
|
OrderingList<S> |
OrderingScore.getFreeOrdering()
Returns potential ordering properties that the evaluated index can
handle, if arranged to immediately follow the handled orderings.
|
OrderingList<S> |
OrderingScore.getHandledOrdering()
Returns the ordering properties that the evaluated index supports.
|
protected OrderingList<S> |
StandardQuery.getOrdering() |
OrderingList<T> |
JoinedQueryExecutor.getOrdering() |
OrderingList<S> |
QueryExecutor.getOrdering()
Returns the result ordering of this QueryExecutor.
|
OrderingList<S> |
SortedQueryExecutor.getOrdering() |
OrderingList<S> |
IterableQueryExecutor.getOrdering()
Returns an empty list.
|
OrderingList<S> |
FullScanQueryExecutor.getOrdering()
Returns an empty list.
|
OrderingList<S> |
DelegatedQueryExecutor.getOrdering() |
OrderingList<S> |
KeyQueryExecutor.getOrdering()
Returns an empty list.
|
OrderingList<S> |
IndexedQueryExecutor.getOrdering() |
OrderingList<S> |
IndexedQueryAnalyzer.Result.getOrdering()
Returns combined handled and remainder orderings for this result.
|
OrderingList<S> |
FilteredQueryExecutor.getOrdering() |
OrderingList<S> |
UnionQueryExecutor.getOrdering() |
OrderingList<S> |
OrderingScore.getRemainderOrdering()
Returns the ordering properties that the evaluated index does not
support.
|
OrderingList<S> |
IndexedQueryAnalyzer.Result.getRemainderOrdering()
Remainder orderings which override that in composite score.
|
OrderingList<S> |
UnionQueryAnalyzer.Result.getTotalOrdering()
Returns a total ordering, if one was imposed.
|
OrderingList<S> |
OrderingScore.getUnusedOrdering()
Returns unused ordering properties of the evaluated index because they
were filtered out.
|
OrderingList<S> |
CompositeScore.mergeRemainderOrdering(CompositeScore<S> other)
Merges the remainder orderings of this score with the one given.
|
OrderingList<S> |
OrderingScore.mergeRemainderOrdering(OrderingScore<S> other)
Merges the remainder orderings of this score with the one given.
|
OrderingList<S> |
OrderingList.reduce()
Eliminates redundant ordering properties.
|
OrderingList<S> |
OrderingList.replace(int index,
OrderedProperty<S> property)
Returns a list with the given element replaced.
|
OrderingList<S> |
OrderingList.reverseDirections()
Returns this list with all orderings in reverse.
|
OrderingList<S> |
OrderingList.subList(int fromIndex,
int toIndex) |
Modifier and Type | Method and Description |
---|---|
UnionQueryAnalyzer.Result |
UnionQueryAnalyzer.analyze(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
IndexedQueryAnalyzer.Result |
IndexedQueryAnalyzer.analyze(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
static <T extends Storable> |
JoinedQueryExecutor.build(RepositoryAccess repoAccess,
ChainedProperty<T> targetToSourceProperty,
Filter<T> targetFilter,
OrderingList<T> targetOrdering,
QueryHints hints)
Builds and returns a complex joined excutor against a chained property,
supporting multi-way joins.
|
OrderingList<S> |
OrderingList.concat(OrderingList<S> other)
Returns a list which concatenates this one with the other one.
|
protected abstract StandardQuery<S> |
StandardQueryFactory.createQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Implement this method to return query implementations.
|
protected StandardQuery<S> |
QueryEngine.createQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints) |
static <S extends Storable> |
CompositeScore.evaluate(OrderedProperty<S>[] indexProperties,
boolean unique,
boolean clustered,
Filter<S> filter,
OrderingList<S> ordering)
Evaluates the given index properties for its filtering and ordering
capabilities against the given filter and order-by properties.
|
static <S extends Storable> |
OrderingScore.evaluate(OrderedProperty<S>[] indexProperties,
boolean unique,
boolean clustered,
Filter<S> filter,
OrderingList<S> ordering)
Evaluates the given index properties for its ordering capabilities
against the given filter and order-by properties.
|
static <S extends Storable> |
CompositeScore.evaluate(StorableIndex<S> index,
Filter<S> filter,
OrderingList<S> ordering)
Evaluates the given index for its filtering and ordering capabilities
against the given filter and order-by properties.
|
static <S extends Storable> |
OrderingScore.evaluate(StorableIndex<S> index,
Filter<S> filter,
OrderingList<S> ordering)
Evaluates the given index for its ordering capabilities against the
given filter and order-by properties.
|
QueryExecutor<S> |
UnionQueryAnalyzer.executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns an executor that handles the given query specification.
|
QueryExecutor<S> |
QueryExecutorCache.executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns an executor from the cache.
|
QueryExecutor<S> |
DelegatedQueryExecutorFactory.executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
QueryExecutor<S> |
QueryExecutorFactory.executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns an executor that handles the given query specification.
|
QueryExecutor<S> |
QueryEngine.executor(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints) |
protected abstract StandardQuery<S> |
StandardQuery.newInstance(FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Return a new or cached instance of StandardQuery implementation, using
new filter values.
|
Query<S> |
StandardQueryFactory.query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering)
Returns a new or cached query for the given query specification.
|
Query<S> |
QueryFactory.query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Returns a query that handles the given query specification.
|
Query<S> |
StandardQueryFactory.query(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints)
Returns a new or cached query for the given query specification.
|
Query<S> |
StandardQueryFactory.query(Filter<S> filter,
OrderingList<S> ordering)
Returns a new or cached query for the given query specification.
|
Query<S> |
StandardQueryFactory.query(Filter<S> filter,
OrderingList<S> ordering,
QueryHints hints)
Returns a new or cached query for the given query specification.
|
CompositeScore<S> |
CompositeScore.withRemainderOrdering(OrderingList<S> ordering)
Returns a new CompositeScore with the ordering remainder
replaced.
|
OrderingScore<S> |
OrderingScore.withRemainderOrdering(OrderingList<S> ordering)
Returns a new OrderingScore with the remainder replaced.
|
IndexedQueryAnalyzer.Result |
IndexedQueryAnalyzer.Result.withRemainderOrdering(OrderingList<S> remainderOrdering)
Returns a new result with the remainder ordering replaced.
|
Constructor and Description |
---|
DelegatedQueryExecutor(Storage<S> rootStorage,
Filter<S> filter,
OrderingList<S> ordering) |
EmptyQuery(QueryFactory<S> factory,
OrderingList<S> ordering) |
SortedQueryExecutor(SortedQueryExecutor.Support<S> support,
QueryExecutor<S> executor,
OrderingList<S> handledOrdering,
OrderingList<S> remainderOrdering) |
SortedQueryExecutor(SortedQueryExecutor.Support<S> support,
QueryExecutor<S> executor,
OrderingList<S> handledOrdering,
OrderingList<S> remainderOrdering) |
StandardQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints) |
UnionQueryExecutor(java.util.List<QueryExecutor<S>> executors,
OrderingList<S> totalOrdering) |
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.