@InterfaceAudience.Public @InterfaceStability.Evolving public class CreateTableOptions extends Object
Constructor and Description |
---|
CreateTableOptions() |
Modifier and Type | Method and Description |
---|---|
CreateTableOptions |
addHashPartitions(List<String> columns,
int buckets)
Add a set of hash partitions to the table.
|
CreateTableOptions |
addHashPartitions(List<String> columns,
int buckets,
int seed)
Add a set of hash partitions to the table.
|
CreateTableOptions |
addSplitRow(PartialRow row)
Add a split point for the table.
|
CreateTableOptions |
setNumReplicas(int numReplicas)
Sets the number of replicas that each tablet will have.
|
CreateTableOptions |
setRangePartitionColumns(List<String> columns)
Set the columns on which the table will be range-partitioned.
|
public CreateTableOptions addSplitRow(PartialRow row)
row
- a key row for the split pointpublic CreateTableOptions addHashPartitions(List<String> columns, int buckets)
columns
- the columns to hashbuckets
- the number of buckets to hash intopublic CreateTableOptions addHashPartitions(List<String> columns, int buckets, int seed)
columns
- the columns to hashbuckets
- the number of buckets to hash intoseed
- a hash seedpublic CreateTableOptions setRangePartitionColumns(List<String> columns)
columns
- the range partitioned columnspublic CreateTableOptions setNumReplicas(int numReplicas)
numReplicas
- the number of replicas to useCopyright © 2016. All rights reserved.