Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Schema |
build() |
Schema.Builder |
columns(List<Column> columns)
The columns of a table.
|
Schema.Builder |
copy(Schema model) |
Schema.Builder |
identity(Identity identity) |
Schema.Builder |
primaryKey(List<String> primaryKey)
A list of column names that make up a key.
|
Schema.Builder |
shardKey(List<String> shardKey)
A list of column names that make up a key.
|
Schema.Builder |
ttl(Integer ttl)
The default Time-to-Live for the table, in days.
|
public Schema.Builder columns(List<Column> columns)
The columns of a table.
columns
- the value to setpublic Schema.Builder primaryKey(List<String> primaryKey)
A list of column names that make up a key.
primaryKey
- the value to setpublic Schema.Builder shardKey(List<String> shardKey)
A list of column names that make up a key.
shardKey
- the value to setpublic Schema.Builder ttl(Integer ttl)
The default Time-to-Live for the table, in days.
ttl
- the value to setpublic Schema.Builder identity(Identity identity)
public Schema build()
public Schema.Builder copy(Schema model)
Copyright © 2016–2024. All rights reserved.