public final class CreateTableRequest extends Object
CreateTableRequest
Allows for creating table with:
GCRules.GCRule
Modifier and Type | Method and Description |
---|---|
CreateTableRequest |
addFamily(String familyId)
Adds a new columnFamily to the configuration
|
CreateTableRequest |
addFamily(String familyId,
GCRules.GCRule gcRule)
Adds a new columnFamily with
GCRules.GCRule to the configuration. |
CreateTableRequest |
addSplit(ByteString key)
Adds split at the specified key to the configuration
|
boolean |
equals(Object o) |
int |
hashCode() |
static CreateTableRequest |
of(String tableId) |
com.google.bigtable.admin.v2.CreateTableRequest |
toProto(String projectId,
String instanceId) |
public static CreateTableRequest of(String tableId)
public CreateTableRequest addFamily(String familyId)
familyId
- public CreateTableRequest addFamily(String familyId, GCRules.GCRule gcRule)
GCRules.GCRule
to the configuration. Please note that calling this
method with the same familyId will overwrite the previous family.familyId
- gcRule
- public CreateTableRequest addSplit(ByteString key)
key
- Copyright © 2019 Google LLC. All rights reserved.