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