Class IndexDescriptor

    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isDatabaseIndex

        public boolean isDatabaseIndex()
        Tells whether this is a database index or not. Database indexes are not modifiable and for internal use only.
        Returns:
        true if this is a database index and false otherwise.
      • getEntryLimit

        public int getEntryLimit()
        Returns the entry limit of the index.
        Returns:
        the entry limit of the index.