Class IndexDescriptor

    • Constructor Detail

      • IndexDescriptor

        public IndexDescriptor​(String indexType,
                               Fields fields,
                               String collectionName)
        Instantiates a new Index.
        Parameters:
        indexType - the index type
        fields - the value
        collectionName - the collection name
    • Method Detail

      • isCompoundIndex

        public boolean isCompoundIndex()
        Indicates if this descriptor is for a compound index.
        Returns:
        the boolean
      • setIndexType

        public void setIndexType​(String indexType)
        Specifies the type of the index.
        Parameters:
        indexType - index type
        See Also:
        IndexType
      • setFields

        public void setFields​(Fields fields)
        Gets the target fields for the index.
      • setCollectionName

        public void setCollectionName​(String collectionName)
        Gets the collection name.
        Parameters:
        collectionName - collection name
      • hashCode

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

        public String getIndexType()
        Specifies the type of the index.
        Returns:
        the type of the index.
        See Also:
        IndexType
      • getFields

        public Fields getFields()
        Gets the target fields for the index.
        Returns:
        the target fields.
      • getCollectionName

        public String getCollectionName()
        Gets the collection name.
        Returns:
        the collection name.