Class HistoricalCsnOrderingMatchingRuleImpl
- java.lang.Object
-
- org.opends.server.replication.plugin.HistoricalCsnOrderingMatchingRuleImpl
-
- All Implemented Interfaces:
MatchingRuleImpl
public final class HistoricalCsnOrderingMatchingRuleImpl extends Object implements MatchingRuleImpl
Matching rule used to establish an order between historical information and index them.
-
-
Constructor Summary
Constructors Constructor Description HistoricalCsnOrderingMatchingRuleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Indexer>
createIndexers(Schema schema, 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.MatchingRule.MatchingRuleType
getType()
Returns the type of this matching rule.ByteString
normalizeAttributeValue(Schema schema, ByteSequence value)
Retrieves the normalized form of the provided attribute value, which is best suited for efficiently performing matching operations on that value.-
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
getSubstringAssertion
-
-
-
-
Method Detail
-
getType
public MatchingRule.MatchingRuleType getType()
Description copied from interface:MatchingRuleImpl
Returns the type of this matching rule.- Specified by:
getType
in interfaceMatchingRuleImpl
- Returns:
- the type of this matching rule.
-
normalizeAttributeValue
public ByteString normalizeAttributeValue(Schema schema, ByteSequence value) throws DecodeException
Description copied from interface:MatchingRuleImpl
Retrieves the normalized form of the provided attribute value, which is best suited for efficiently performing matching operations on that value. Equality and ordering matching rules should return a normalized representation which can be compared with other normalized values usingByteSequence.equals(Object)
andByteSequence.compareTo(ByteSequence)
.- Specified by:
normalizeAttributeValue
in interfaceMatchingRuleImpl
- Parameters:
schema
- The schema in which this matching rule is defined.value
- The attribute value to be normalized.- Returns:
- The normalized version of the provided attribute value.
- Throws:
DecodeException
- If an syntax error occurred while parsing the value.
-
getAssertion
public Assertion getAssertion(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 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.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.
-
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.
-
createIndexers
public Collection<? extends Indexer> createIndexers(Schema schema, IndexingOptions options)
Description copied from interface:MatchingRuleImpl
Returns the indexers for this matching rule.- Specified by:
createIndexers
in interfaceMatchingRuleImpl
- Parameters:
schema
- The schema in which this matching rule is defined.options
- The indexing options.- Returns:
- a non null collection of indexers for this matching rule.
-
-