Package org.forgerock.opendj.ldap.schema
Class AbstractEqualityMatchingRuleImpl
- java.lang.Object
-
- org.forgerock.opendj.ldap.schema.AbstractEqualityMatchingRuleImpl
-
- All Implemented Interfaces:
MatchingRuleImpl
public abstract class AbstractEqualityMatchingRuleImpl extends Object
This class implements an equality matching rule that matches normalized values in byte order.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractEqualityMatchingRuleImpl(String indexID)
Creates an instance of the equality matching rule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Indexer>
createIndexers(IndexingOptions options)
Returns the indexers for this matching rule.Assertion
getAssertion(Schema schema, ByteSequence assertionValue)
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.String
keyToHumanReadableString(ByteSequence key)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.opendj.ldap.schema.MatchingRuleImpl
normalizeAttributeValue
-
-
-
-
Constructor Detail
-
AbstractEqualityMatchingRuleImpl
protected AbstractEqualityMatchingRuleImpl(String indexID)
Creates an instance of the equality matching rule.- Parameters:
indexID
- the identifier of the DB index
-
-
Method Detail
-
getAssertion
public Assertion getAssertion(Schema schema, ByteSequence assertionValue) throws DecodeException
Description copied from interface:MatchingRuleImpl
Retrieves the normalized form of the provided assertion value, which is best suited for efficiently performing less than matching operations on that value. The assertion value is guaranteed to be valid against this matching rule's assertion syntax.- Specified by:
getAssertion
in interfaceMatchingRuleImpl
- Parameters:
schema
- The schema in which this matching rule is defined.assertionValue
- The syntax checked assertion value to be normalized.- Returns:
- The normalized version of the provided assertion value.
- Throws:
DecodeException
- if an syntax error occurred while parsing the value.
-
createIndexers
public Collection<? extends Indexer> createIndexers(IndexingOptions options)
Description copied from interface:MatchingRuleImpl
Returns the indexers for this matching rule.- Parameters:
options
- The indexing options- Returns:
- a non null collection of indexers for this matching rule.
-
keyToHumanReadableString
public String keyToHumanReadableString(ByteSequence key)
-
getSubstringAssertion
public Assertion getSubstringAssertion(Schema schema, ByteSequence subInitial, List<? extends ByteSequence> subAnyElements, ByteSequence subFinal) throws DecodeException
Description copied from interface:MatchingRuleImpl
Retrieves the normalized form of the provided assertion substring values, which is best suited for efficiently performing matching operations on that value.- Specified by:
getSubstringAssertion
in interfaceMatchingRuleImpl
- Parameters:
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.- Returns:
- The normalized version of the provided assertion value.
- Throws:
DecodeException
- if an syntax error occurred while parsing the value.
-
getGreaterOrEqualAssertion
public Assertion getGreaterOrEqualAssertion(Schema schema, ByteSequence value) throws DecodeException
Description copied from interface:MatchingRuleImpl
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. The assertion value is guaranteed to be valid against this matching rule's assertion syntax.- Specified by:
getGreaterOrEqualAssertion
in interfaceMatchingRuleImpl
- Parameters:
schema
- The schema in which this matching rule is defined.value
- The syntax checked assertion value to be normalized.- Returns:
- The normalized version of the provided assertion value.
- Throws:
DecodeException
- if an syntax error occurred while parsing the value.
-
getLessOrEqualAssertion
public Assertion getLessOrEqualAssertion(Schema schema, ByteSequence value) throws DecodeException
Description copied from interface:MatchingRuleImpl
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. The assertion value is guaranteed to be valid against this matching rule's assertion syntax.- Specified by:
getLessOrEqualAssertion
in interfaceMatchingRuleImpl
- Parameters:
schema
- The schema in which this matching rule is defined.value
- The syntax checked assertion value to be normalized.- Returns:
- The normalized version of the provided assertion value.
- Throws:
DecodeException
- if an syntax error occurred while parsing the value.
-
-