Class IndexDTO.Builder<S extends IndexDTO.Builder>

java.lang.Object
org.apache.gravitino.dto.rel.indexes.IndexDTO.Builder<S>
Enclosing class:
IndexDTO

public static class IndexDTO.Builder<S extends IndexDTO.Builder> extends Object
Builder for creating a new instance of IndexDTO.
  • 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 names of the fields.
  • Constructor Details

    • Builder

      public Builder()
      Default constructor.
  • Method Details

    • withIndexType

      public S withIndexType(Index.IndexType indexType)
      Sets the type of the index.
      Parameters:
      indexType - The type of the index.
      Returns:
      The builder.
    • withName

      public S withName(String name)
      Sets the name of the index.
      Parameters:
      name - The name of the index.
      Returns:
      The builder.
    • withFieldNames

      public S withFieldNames(String[][] fieldNames)
      Sets the field names of the index.
      Parameters:
      fieldNames - The field names of the index.
      Returns:
      The builder.
    • build

      public IndexDTO build()
      Builds a new instance of IndexDTO.
      Returns:
      The new instance.