Class IndexOptions


  • public class IndexOptions
    extends Object
    Options for configuring an index.
    Since:
    1.0
    Author:
    Anindya Chatterjee
    • Constructor Detail

      • IndexOptions

        public IndexOptions()
    • Method Detail

      • indexOptions

        public static IndexOptions indexOptions​(String indexType)
        Creates an IndexOptions with the specified indexType. Index creation will be synchronous with this option.
        Parameters:
        indexType - the type of index to be created.
        Returns:
        a new synchronous index creation option.
      • setIndexType

        public void setIndexType​(String indexType)
        Specifies the type of index to create.
        Parameters:
        indexType - type of index.
      • getIndexType

        public String getIndexType()
        Specifies the type of index to create.
        Returns:
        type of index to create.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object