Class IndexDTO.Builder<S extends IndexDTO.Builder>
java.lang.Object
org.apache.gravitino.dto.rel.indexes.IndexDTO.Builder<S>
- Enclosing class:
- IndexDTO
Builder for creating a new instance of IndexDTO.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[][]
The names of the fields.protected Index.IndexType
The type of the index.protected String
The name of the index. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new instance of IndexDTO.withFieldNames
(String[][] fieldNames) Sets the field names of the index.withIndexType
(Index.IndexType indexType) Sets the type of the index.Sets the name of the index.
-
Field Details
-
indexType
The type of the index. -
name
The name of the index. -
fieldNames
The names of the fields.
-
-
Constructor Details
-
Builder
public Builder()Default constructor.
-
-
Method Details
-
withIndexType
Sets the type of the index.- Parameters:
indexType
- The type of the index.- Returns:
- The builder.
-
withName
Sets the name of the index.- Parameters:
name
- The name of the index.- Returns:
- The builder.
-
withFieldNames
Sets the field names of the index.- Parameters:
fieldNames
- The field names of the index.- Returns:
- The builder.
-
build
Builds a new instance of IndexDTO.- Returns:
- The new instance.
-