T
- The type of query created by this factory.public interface IndexQueryFactory<T>
Modifier and Type | Method and Description |
---|---|
T |
createExactMatchQuery(AttributeDescription attributeDescription,
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(AttributeDescription attributeDescription)
Returns a query requesting all index records.
|
T |
createRangeMatchQuery(AttributeDescription attributeDescription,
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 |
getIndexingOptionsOrNull(AttributeDescription attributeDescription)
Returns the indexing options for the provided attribute, or
null if the attribute is not indexed. |
T createExactMatchQuery(AttributeDescription attributeDescription, String indexID, ByteSequence key)
attributeDescription
- The attribute description whose index should be queried.indexID
- An identifier of the index to be queried.key
- A byte sequence containing the key.T createMatchAllQuery(AttributeDescription attributeDescription)
attributeDescription
- The attribute description whose index should be queried.T createRangeMatchQuery(AttributeDescription attributeDescription, String indexID, ByteSequence lower, ByteSequence upper, boolean lowerIncluded, boolean upperIncluded)
attributeDescription
- The attribute description whose index should be queried.indexID
- An identifier of the index to be queried.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 getIndexingOptionsOrNull(AttributeDescription attributeDescription)
null
if the attribute is not indexed.attributeDescription
- The attribute description whose index options should be queried.null
if the attribute is not indexed.Copyright © 2010-2018, ForgeRock All Rights Reserved.