Package | Description |
---|---|
com.amazon.carbonado |
Main user-level interfaces, classes, and annotations for Carbonado.
|
com.amazon.carbonado.cursor |
Support for advanced processing of cursor results, including basic set
theory operations.
|
com.amazon.carbonado.filter |
Contains classes for representing query filters.
|
com.amazon.carbonado.qe |
Support for implementing a Query Engine.
|
Modifier and Type | Method and Description |
---|---|
Filter<S> |
Query.getFilter()
Returns the query's filter.
|
Modifier and Type | Method and Description |
---|---|
Query<S> |
Query.and(Filter<S> filter)
Returns a new query which has another
filter logically "and"ed to this, potentially reducing the amount of
results. |
Query<S> |
Query.or(Filter<S> filter)
Returns a new query which has another
filter logically "or"ed to this, potentially increasing the amount of
results. |
Query<S> |
Storage.query(Filter<S> filter)
Query for Storable instances against an explicitly constructed filter
object.
|
Modifier and Type | Method and Description |
---|---|
static <S extends Storable> |
FilteredCursor.applyFilter(Filter<S> filter,
FilterValues<S> filterValues,
Cursor<S> cursor)
Returns a Cursor that is filtered by the given Filter and FilterValues.
|
Modifier and Type | Class and Description |
---|---|
class |
AndFilter<S extends Storable>
Filter tree node that performs a logical 'and' test.
|
class |
BinaryOpFilter<S extends Storable>
Base class for filter tree nodes that have a left and right child.
|
class |
ClosedFilter<S extends Storable>
Filter which blocks any results from passing through.
|
class |
ExistsFilter<S extends Storable>
Filter tree node that performs an existence or non-existence test against a
join property.
|
class |
OpenFilter<S extends Storable>
Filter which lets all results pass through.
|
class |
OrFilter<S extends Storable>
Filter tree node that performs a logical 'or' test.
|
class |
PropertyFilter<S extends Storable>
Filter tree node that performs a relational test against a specific property
value.
|
Modifier and Type | Method and Description |
---|---|
Filter<S> |
Filter.and(Filter<S> filter)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the one given.
|
Filter<S> |
OpenFilter.and(Filter<S> filter) |
Filter<S> |
Filter.and(java.lang.String expression)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the one given.
|
Filter<S> |
Filter.and(java.lang.String propertyName,
RelOp operator)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the one given.
|
Filter<S> |
Filter.and(java.lang.String propertyName,
RelOp operator,
java.lang.Object constantValue)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the one given.
|
Filter<S> |
Filter.andExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the "exists" test applied to a join.
|
Filter<S> |
Filter.andNotExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the "not exists" test applied to a join.
|
<T extends Storable> |
Filter.asJoinedFrom(ChainedProperty<T> joinProperty)
Prepends a join property to all properties of this filter.
|
<T extends Storable> |
Filter.asJoinedFrom(java.lang.Class<T> type,
java.lang.String joinProperty)
Prepends a join property to all properties of this filter.
|
<T extends Storable> |
OrFilter.asJoinedFromAny(ChainedProperty<T> joinProperty) |
<T extends Storable> |
AndFilter.asJoinedFromAny(ChainedProperty<T> joinProperty) |
abstract <T extends Storable> |
Filter.asJoinedFromAny(ChainedProperty<T> joinProperty)
Allows join from any property type, including one-to-many joins.
|
abstract Filter<S> |
Filter.bind()
Walks through each property filter, assigning a bind ID to it.
|
Filter<S> |
BinaryOpFilter.bind() |
Filter<S> |
Filter.conjunctiveNormalForm()
Returns an equivalent filter that is in conjunctive normal form.
|
Filter<S> |
Filter.disjunctiveNormalForm()
Returns an equivalent filter that is in disjunctive normal form.
|
static <S extends Storable> |
Filter.filterFor(java.lang.Class<S> type,
java.lang.String expression)
Returns a cached filter instance that operates on the given type and
filter expression.
|
Filter<S> |
FilterValues.getFilter()
Returns the Filter that this FilterValues instance applies to.
|
Filter<S> |
BinaryOpFilter.getLeftFilter() |
Filter<?> |
Filter.NotJoined.getNotJoinedFilter()
Returns the filter which is no longer as from a join.
|
Filter<S> |
Filter.NotJoined.getRemainderFilter()
Returns the filter which could not be separated.
|
Filter<S> |
BinaryOpFilter.getRightFilter() |
Filter<?> |
ExistsFilter.getSubFilter()
Returns the filter applied to the join, which might be open.
|
Filter<S> |
OrFilter.not() |
Filter<S> |
AndFilter.not() |
abstract Filter<S> |
Filter.not()
Returns the logical negation of this filter.
|
Filter<S> |
ExistsFilter.not() |
Filter<S> |
ClosedFilter.or(Filter<S> filter) |
Filter<S> |
Filter.or(Filter<S> filter)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the one given.
|
Filter<S> |
Filter.or(java.lang.String expression)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the one given.
|
Filter<S> |
Filter.or(java.lang.String propertyName,
RelOp operator)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the one given.
|
Filter<S> |
Filter.or(java.lang.String propertyName,
RelOp operator,
java.lang.Object constantValue)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the one given.
|
Filter<S> |
Filter.orExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the "exists" test applied to a join.
|
Filter<S> |
Filter.orNotExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the "not exists" test applied to a
join.
|
Filter<S> |
Filter.reduce()
Returns an equivalent filter with redundant terms eliminated.
|
Filter<S> |
OrFilter.unbind() |
Filter<S> |
AndFilter.unbind() |
abstract Filter<S> |
Filter.unbind()
Undoes the effect of a bind operation.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Filter<S>> |
PropertyFilter.conjunctiveNormalFormSplit() |
java.util.List<Filter<S>> |
ClosedFilter.conjunctiveNormalFormSplit() |
java.util.List<Filter<S>> |
Filter.conjunctiveNormalFormSplit()
Splits the filter from its conjunctive normal form.
|
java.util.List<Filter<S>> |
OpenFilter.conjunctiveNormalFormSplit() |
java.util.List<Filter<S>> |
PropertyFilter.disjunctiveNormalFormSplit() |
java.util.List<Filter<S>> |
ClosedFilter.disjunctiveNormalFormSplit() |
java.util.List<Filter<S>> |
Filter.disjunctiveNormalFormSplit()
Splits the filter from its disjunctive normal form.
|
java.util.List<Filter<S>> |
OpenFilter.disjunctiveNormalFormSplit() |
Modifier and Type | Method and Description |
---|---|
ClosedFilter<S> |
ClosedFilter.and(Filter<S> filter) |
Filter<S> |
Filter.and(Filter<S> filter)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the one given.
|
Filter<S> |
OpenFilter.and(Filter<S> filter) |
Filter<S> |
Filter.andExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the "exists" test applied to a join.
|
Filter<S> |
Filter.andNotExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are only
accepted by this filter and the "not exists" test applied to a join.
|
java.lang.Object[] |
FilterValues.getSuppliedValuesFor(Filter<S> filter)
Returns all supplied values in this object, as required by the given
Filter.
|
java.lang.Object[] |
FilterValues.getValuesFor(Filter<S> filter)
Returns all values in this object, as required by the given Filter.
|
Filter<S> |
ClosedFilter.or(Filter<S> filter) |
Filter<S> |
Filter.or(Filter<S> filter)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the one given.
|
OpenFilter<S> |
OpenFilter.or(Filter<S> filter) |
Filter<S> |
Filter.orExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the "exists" test applied to a join.
|
Filter<S> |
Filter.orNotExists(java.lang.String propertyName,
Filter<?> subFilter)
Returns a combined filter instance that accepts records which are
accepted either by this filter or the "not exists" test applied to a
join.
|
Modifier and Type | Method and Description |
---|---|
Filter<S> |
FilteringScore.getCoveringFilter()
Returns the composite covering filter supported by the evaluated index,
or null if the covering count is zero.
|
Filter<S> |
IndexedQueryExecutor.getCoveringFilter() |
Filter<S> |
FilteringScore.getCoveringRemainderFilter()
Returns the composite remainder filter without including the covering
filter.
|
Filter<S> |
StandardQuery.getFilter() |
Filter<T> |
JoinedQueryExecutor.getFilter() |
Filter<S> |
QueryExecutor.getFilter()
Returns the filter used by this QueryExecutor.
|
Filter<S> |
SortedQueryExecutor.getFilter() |
Filter<S> |
IterableQueryExecutor.getFilter()
Returns an open filter.
|
Filter<S> |
FullScanQueryExecutor.getFilter()
Returns an open filter.
|
Filter<S> |
DelegatedQueryExecutor.getFilter() |
Filter<S> |
KeyQueryExecutor.getFilter() |
Filter<S> |
IndexedQueryExecutor.getFilter() |
Filter<S> |
IndexedQueryAnalyzer.Result.getFilter()
Returns combined handled and remainder filter for this result.
|
Filter<S> |
FilteredQueryExecutor.getFilter()
Returns the combined filter of the wrapped executor and the extra filter.
|
Filter<S> |
UnionQueryExecutor.getFilter()
Returns the combined filter of the wrapped executors.
|
Filter<S> |
EmptyQuery.getFilter()
Always returns a
ClosedFilter . |
Filter<S> |
FilteringScore.getHandledFilter()
Returns the composite handled filter, or null if no matches at all.
|
Filter<S> |
FilteringScore.getIdentityFilter()
Returns the composite identity filter, or null if no identity property
filters.
|
Filter<S> |
FilteringScore.getRemainderFilter()
Returns the composite remainder filter not supported by the evaluated
index, or null if no remainder.
|
Filter<S> |
IndexedQueryAnalyzer.Result.getRemainderFilter()
Remainder filter which overrides that in composite score.
|
Filter<S> |
CompositeScore.mergeRemainderFilter(CompositeScore<S> other)
Merges the remainder filter of this score with the one given using an
'or' operation.
|
Filter<S> |
FilteringScore.mergeRemainderFilter(FilteringScore<S> other)
Merges the remainder filter of this score with the one given using an
'or' operation.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Filter<S>> |
FilteringScore.getCoveringFilters()
Returns the covering filters which are supported by the evaluated index,
which is a subset of the remainder filters.
|
java.util.List<? extends Filter<S>> |
FilteringScore.getRemainderFilters()
Returns the filters not supported by the evaluated index.
|
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) |
Query<S> |
StandardQuery.and(Filter<S> filter) |
Query<S> |
EmptyQuery.and(Filter<S> filter)
Always throws an IllegalStateException.
|
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.
|
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> |
FilteringScore.evaluate(OrderedProperty<S>[] indexProperties,
boolean unique,
boolean clustered,
Filter<S> filter)
Evaluates the given index properties for its filtering capabilities
against the given filter.
|
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> |
FilteringScore.evaluate(StorableIndex<S> index,
Filter<S> filter)
Evaluates the given index for its filtering capabilities against the
given filter.
|
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) |
IndexedQueryAnalyzer.Result |
IndexedQueryAnalyzer.Result.mergeRemainderFilter(Filter<S> filter)
Merges the remainder filter of this result with the given filter,
returning a new result.
|
Query<S> |
StandardQuery.or(Filter<S> filter) |
Query<S> |
EmptyQuery.or(Filter<S> filter) |
Query<S> |
StandardQueryFactory.query(Filter<S> filter)
Returns a new or cached query for the given filter.
|
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.
|
FilteringScore<S> |
FilteringScore.withRemainderFilter(Filter<S> filter)
Returns a new FilteringScore with the remainder replaced and covering
matches recalculated.
|
CompositeScore<S> |
CompositeScore.withRemainderFilter(Filter<S> filter)
Returns a new CompositeScore with the filtering remainder replaced and
covering matches recalculated.
|
IndexedQueryAnalyzer.Result |
IndexedQueryAnalyzer.Result.withRemainderFilter(Filter<S> remainderFilter)
Returns a new result with the remainder filter replaced.
|
Constructor and Description |
---|
DelegatedQueryExecutor(Storage<S> rootStorage,
Filter<S> filter,
OrderingList<S> ordering) |
FilteredQueryExecutor(QueryExecutor<S> executor,
Filter<S> filter) |
StandardQuery(Filter<S> filter,
FilterValues<S> values,
OrderingList<S> ordering,
QueryHints hints) |
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.