Class IndexOptions

java.lang.Object
org.dizitart.no2.index.IndexOptions

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

    • IndexOptions

      public IndexOptions()
  • Method Details

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object