Class TreeName
- java.lang.Object
-
- org.opends.server.backends.pluggable.spi.TreeName
-
- All Implemented Interfaces:
Comparable<TreeName>
public final class TreeName extends Object implements Comparable<TreeName>
Represents the name of a tree (key-value store) in a database. A tree name is made of the baseDN it is part of, and the identifier of the index it represents.Note: This class assumes name components don't contain a '/'.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TreeName o)booleanequals(Object obj)StringgetBaseDN()Returns the base DN.StringgetIndexId()Returns the index identifier.inthashCode()StringtoString()static TreeNamevalueOf(String treeName)Builds a newTreeNameobject based on the provided string representation.
-
-
-
Method Detail
-
valueOf
public static TreeName valueOf(String treeName)
Builds a newTreeNameobject based on the provided string representation.- Parameters:
treeName- the string representation of the tree name- Returns:
- a new
TreeNameobject constructed from the provided string
-
getBaseDN
public String getBaseDN()
Returns the base DN.- Returns:
- a
Stringrepresenting the base DN
-
getIndexId
public String getIndexId()
Returns the index identifier.- Returns:
- a
Stringrepresenting the base DN
-
compareTo
public int compareTo(TreeName o)
- Specified by:
compareToin interfaceComparable<TreeName>
-
-