Class Indexes.IndexImpl.Builder

java.lang.Object
org.apache.gravitino.rel.indexes.Indexes.IndexImpl.Builder
Enclosing class:
Indexes.IndexImpl

public static class Indexes.IndexImpl.Builder extends Object
Builder to create an index.
  • Field Details

    • indexType

      protected Index.IndexType indexType
      The type of the index.
    • name

      protected String name
      The name of the index.
    • fieldNames

      protected String[][] fieldNames
      The field names of the index.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withIndexType

      public Indexes.IndexImpl.Builder withIndexType(Index.IndexType indexType)
      Set the type of the index.
      Parameters:
      indexType - The type of the index
      Returns:
      The builder for creating a new instance of IndexImpl.
    • withName

      public Indexes.IndexImpl.Builder withName(String name)
      Set the name of the index.
      Parameters:
      name - The name of the index
      Returns:
      The builder for creating a new instance of IndexImpl.
    • withFieldNames

      public Indexes.IndexImpl.Builder withFieldNames(String[][] fieldNames)
      Set the field names of the index.
      Parameters:
      fieldNames - The field names of the index
      Returns:
      The builder for creating a new instance of IndexImpl.
    • build

      public Index build()
      Build a new instance of IndexImpl.
      Returns:
      The new instance.