Class IndexDTO
java.lang.Object
org.apache.gravitino.dto.rel.indexes.IndexDTO
- All Implemented Interfaces:
Index
Data transfer object representing index information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
IndexDTO.Builder<S extends IndexDTO.Builder>
Builder for creating a new instance of IndexDTO.Nested classes/interfaces inherited from interface org.apache.gravitino.rel.indexes.Index
Index.IndexType
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexDTO()
Default constructor for Jackson deserialization.IndexDTO
(Index.IndexType indexType, String name, String[][] fieldNames) Creates a new instance of IndexDTO -
Method Summary
-
Field Details
-
EMPTY_INDEXES
An empty array of indexes.
-
-
Constructor Details
-
IndexDTO
public IndexDTO()Default constructor for Jackson deserialization. -
IndexDTO
Creates a new instance of IndexDTO- Parameters:
indexType
- The type of the index.name
- The name of the index.fieldNames
- The names of the fields.
-
-
Method Details
-
type
-
name
-
fieldNames
- Specified by:
fieldNames
in interfaceIndex
- Returns:
- The field name under the table contained in the index.
-
equals
-
hashCode
public int hashCode() -
builder
Get the builder for creating a new instance of IndexDTO.- Returns:
- The builder.
-