Class TableChange.AddIndex

java.lang.Object
org.apache.gravitino.rel.TableChange.AddIndex
All Implemented Interfaces:
TableChange
Enclosing interface:
TableChange

public static final class TableChange.AddIndex extends Object implements TableChange
A TableChange to add an index. Add an index key based on the type and field name passed in as well as the name.
  • Constructor Details

    • AddIndex

      public AddIndex(Index.IndexType type, String name, String[][] fieldNames)
      Parameters:
      type - The type of the index.
      name - The name of the index.
      fieldNames - The field names of the index.
  • Method Details

    • getType

      public Index.IndexType getType()
      Returns:
      The type of the index.
    • getName

      public String getName()
      Returns:
      The name of the index.
    • getFieldNames

      public String[][] getFieldNames()
      Returns:
      The field names of the index.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object