public abstract class AbstractOrderingMatchingRuleImpl extends Object
The getXXXAssertion() methods are default implementations which assume that the assertion syntax is the same as the attribute syntax. Override them if this assumption does not hold true.
Modifier | Constructor and Description |
---|---|
protected |
AbstractOrderingMatchingRuleImpl(String indexId)
Creates an instance of the ordering matching rule.
|
Modifier and Type | Method and Description |
---|---|
Collection<? extends Indexer> |
createIndexers(IndexingOptions options)
Returns the indexers for this matching rule.
|
Assertion |
getAssertion(Schema schema,
ByteSequence value)
Retrieves the normalized form of the provided assertion value, which is
best suited for efficiently performing less than matching operations on
that value.
|
Assertion |
getGreaterOrEqualAssertion(Schema schema,
ByteSequence value)
Retrieves the normalized form of the provided assertion value, which is
best suited for efficiently performing greater than or equal matching
operations on that value.
|
Assertion |
getLessOrEqualAssertion(Schema schema,
ByteSequence value)
Retrieves the normalized form of the provided assertion value, which is
best suited for efficiently performing less than or equal matching
operations on that value.
|
Assertion |
getSubstringAssertion(Schema schema,
ByteSequence subInitial,
List<? extends ByteSequence> subAnyElements,
ByteSequence subFinal)
Retrieves the normalized form of the provided assertion substring values,
which is best suited for efficiently performing matching operations on
that value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
normalizeAttributeValue
protected AbstractOrderingMatchingRuleImpl(String indexId)
indexId
- the identifier of the DB indexpublic final Assertion getAssertion(Schema schema, ByteSequence value) throws DecodeException
MatchingRuleImpl
getAssertion
in interface MatchingRuleImpl
schema
- The schema in which this matching rule is defined.value
- The syntax checked assertion value to be normalized.DecodeException
- if an syntax error occurred while parsing the value.public final Assertion getGreaterOrEqualAssertion(Schema schema, ByteSequence value) throws DecodeException
MatchingRuleImpl
getGreaterOrEqualAssertion
in interface MatchingRuleImpl
schema
- The schema in which this matching rule is defined.value
- The syntax checked assertion value to be normalized.DecodeException
- if an syntax error occurred while parsing the value.public final Assertion getLessOrEqualAssertion(Schema schema, ByteSequence value) throws DecodeException
MatchingRuleImpl
getLessOrEqualAssertion
in interface MatchingRuleImpl
schema
- The schema in which this matching rule is defined.value
- The syntax checked assertion value to be normalized.DecodeException
- if an syntax error occurred while parsing the value.public final Collection<? extends Indexer> createIndexers(IndexingOptions options)
MatchingRuleImpl
options
- The indexing optionspublic Assertion getSubstringAssertion(Schema schema, ByteSequence subInitial, List<? extends ByteSequence> subAnyElements, ByteSequence subFinal) throws DecodeException
MatchingRuleImpl
getSubstringAssertion
in interface MatchingRuleImpl
schema
- The schema in which this matching rule is defined.subInitial
- The normalized substring value fragment that should appear at
the beginning of the target value.subAnyElements
- The normalized substring value fragments that should appear in
the middle of the target value.subFinal
- The normalized substring value fragment that should appear at
the end of the target value.DecodeException
- if an syntax error occurred while parsing the value.Copyright © 2010-2018, ForgeRock All Rights Reserved.