Class IndexDescriptor
- java.lang.Object
-
- org.opends.guitools.controlpanel.datamodel.AbstractIndexDescriptor
-
- org.opends.guitools.controlpanel.datamodel.IndexDescriptor
-
- All Implemented Interfaces:
Comparable<AbstractIndexDescriptor>
public class IndexDescriptor extends AbstractIndexDescriptor
The class used to describe the index configuration (the normal index: the one used to improve search performance on a given attribute).
-
-
Constructor Summary
Constructors Constructor Description IndexDescriptor(String indexName)Constructor of the index descriptor.IndexDescriptor(String name, AttributeType attr, BackendDescriptor backend, Set<BackendIndexCfgDefn.IndexType> types, int entryLimit)Constructor of the index descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AbstractIndexDescriptor o)booleanequals(Object o)AttributeTypegetAttributeType()Returns the attribute type associated with the index attribute.intgetEntryLimit()Returns the entry limit of the index.SortedSet<BackendIndexCfgDefn.IndexType>getTypes()Returns the type of indexes (equality, substring, etc.).inthashCode()booleanisDatabaseIndex()Tells whether this is a database index or not.protected voidrecalculateHashCode()Method used to minimize the times the hashcode is calculated.-
Methods inherited from class org.opends.guitools.controlpanel.datamodel.AbstractIndexDescriptor
getBackend, getName, setBackend
-
-
-
-
Constructor Detail
-
IndexDescriptor
public IndexDescriptor(String indexName)
Constructor of the index descriptor.- Parameters:
indexName- name of the index.
-
IndexDescriptor
public IndexDescriptor(String name, AttributeType attr, BackendDescriptor backend, Set<BackendIndexCfgDefn.IndexType> types, int entryLimit)
Constructor of the index descriptor.- Parameters:
name- name of the index.attr- the attribute type associated with the index attribute.backend- the backend where the index is defined.types- the type of indexes (equality, substring, etc.).entryLimit- the entry limit for the index.
-
-
Method Detail
-
getAttributeType
public AttributeType getAttributeType()
Returns the attribute type associated with the index attribute.- Returns:
- the attribute type associated with the index attribute.
-
compareTo
public int compareTo(AbstractIndexDescriptor o)
-
getTypes
public SortedSet<BackendIndexCfgDefn.IndexType> getTypes()
Returns the type of indexes (equality, substring, etc.).- Returns:
- the type of indexes (equality, substring, etc.).
-
isDatabaseIndex
public boolean isDatabaseIndex()
Tells whether this is a database index or not. Database indexes are not modifiable and for internal use only.- Returns:
trueif this is a database index andfalseotherwise.
-
getEntryLimit
public int getEntryLimit()
Returns the entry limit of the index.- Returns:
- the entry limit of the index.
-
recalculateHashCode
protected void recalculateHashCode()
Description copied from class:AbstractIndexDescriptorMethod used to minimize the times the hashcode is calculated.- Specified by:
recalculateHashCodein classAbstractIndexDescriptor
-
-