Package org.apache.gravitino.rel.indexes
Class Indexes.IndexImpl.Builder
java.lang.Object
org.apache.gravitino.rel.indexes.Indexes.IndexImpl.Builder
- Enclosing class:
- Indexes.IndexImpl
Builder to create an index.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[][]The field names of the index.protected Index.IndexTypeThe type of the index.protected StringThe name of the index. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new instance of IndexImpl.withFieldNames(String[][] fieldNames) Set the field names of the index.withIndexType(Index.IndexType indexType) Set the type of the index.Set the name of the index.
-
Field Details
-
indexType
The type of the index. -
name
The name of the index. -
fieldNames
The field names of the index.
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withIndexType
Set the type of the index.- Parameters:
indexType- The type of the index- Returns:
- The builder for creating a new instance of IndexImpl.
-
withName
Set the name of the index.- Parameters:
name- The name of the index- Returns:
- The builder for creating a new instance of IndexImpl.
-
withFieldNames
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
Build a new instance of IndexImpl.- Returns:
- The new instance.
-