T
- The type of query created by this factory.public interface IndexQueryFactory<T>
Modifier and Type | Method and Description |
---|---|
T |
createExactMatchQuery(String indexID,
ByteSequence key)
Returns a query requesting an index record matching the provided key.
|
T |
createIntersectionQuery(Collection<T> subqueries)
Returns a query which returns the intersection of a collection of
sub-queries.
|
T |
createMatchAllQuery()
Returns a query requesting all index records.
|
T |
createRangeMatchQuery(String indexID,
ByteSequence lower,
ByteSequence upper,
boolean lowerIncluded,
boolean upperIncluded)
Returns a query requesting all index records in the specified range.
|
T |
createUnionQuery(Collection<T> subqueries)
Returns a query which combines the results of a collection of
sub-queries.
|
IndexingOptions |
getIndexingOptions()
Returns the indexing options for this factory.
|
T createExactMatchQuery(String indexID, ByteSequence key)
indexID
- An identifier of the index type.key
- A byte sequence containing the key.T createMatchAllQuery()
T createRangeMatchQuery(String indexID, ByteSequence lower, ByteSequence upper, boolean lowerIncluded, boolean upperIncluded)
indexID
- An identifier of the index type.lower
- The lower bound of the range. A 0 length byte array indicates no
lower bound and the range will start from the smallest key.upper
- The upper bound of the range. A 0 length byte array indicates no
upper bound and the range will end at the largest key.lowerIncluded
- true if a key exactly matching the lower bound is included in
the range, false if only keys strictly greater than the lower
bound are included. This value is ignored if the lower bound is
not specified.upperIncluded
- true if a key exactly matching the upper bound is included in
the range, false if only keys strictly less than the upper bound
are included. This value is ignored if the upper bound is not
specified.T createIntersectionQuery(Collection<T> subqueries)
subqueries
- A collection of sub-queries.T createUnionQuery(Collection<T> subqueries)
subqueries
- A collection of sub-queries.IndexingOptions getIndexingOptions()
Copyright 2010-2018 ForgeRock AS.