Package org.forgerock.opendj.ldap.schema
Class MatchingRuleImpl.IndexId
java.lang.Object
org.forgerock.opendj.ldap.schema.MatchingRuleImpl.IndexId
- Enclosing interface:
- MatchingRuleImpl
Represents an index ID associated with an indexer.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static MatchingRuleImpl.IndexId
Factory method for creating an index ID.name()
The name of the index, which is usually the name of the matching rule.toString()
Returns the fullname of this index ID.int
version()
The version of the index ID.withPrefix
(String prefix) Returns a new index ID with the provided prefix.withPrefixAndSuffix
(String prefix, String suffix) Returns a new index ID with the provided prefix and suffix.withSuffix
(String suffix) Returns a new index ID with the provided suffix.
-
Method Details
-
indexId
Factory method for creating an index ID.- Parameters:
name
- The name of the index, which is usually the name of the matching rule.version
- The version of the index ID.- Returns:
- the index ID.
-
withPrefixAndSuffix
Returns a new index ID with the provided prefix and suffix.- Parameters:
prefix
- The prefix to add to the index ID.suffix
- The suffix to add to the index ID.- Returns:
- the new index ID.
-
withPrefix
Returns a new index ID with the provided prefix.- Parameters:
prefix
- The prefix to add to the index ID.- Returns:
- the new index ID.
-
withSuffix
Returns a new index ID with the provided suffix.- Parameters:
suffix
- The suffix to add to the index ID.- Returns:
- the new index ID.
-
name
The name of the index, which is usually the name of the matching rule.- Returns:
- The name of the index, which is usually the name of the matching rule
-
version
public int version()The version of the index ID.- Returns:
- The version of the index ID
-
toString
Returns the fullname of this index ID. The fullname is:- the name of the index (usually the name of the matching rule) if the version number is 1
- the concatenation of 'name' + "V" + 'the version number' if the version number is greater than 1
-
equals
-
hashCode
public int hashCode()
-