Class CreateTableRequest (2.23.0)

public final class CreateTableRequest

Fluent wrapper for com.google.bigtable.admin.v2.CreateTableRequest

Allows for creating table with:

  • optional columnFamilies, including optional GCRule
  • optional granularity
  • and optional split points

Inheritance

Object > CreateTableRequest

Static Methods

of(String tableId)

public static CreateTableRequest of(String tableId)
Parameter
NameDescription
tableIdString
Returns
TypeDescription
CreateTableRequest

Methods

addFamily(String familyId)

public CreateTableRequest addFamily(String familyId)

Adds a new columnFamily to the configuration

Parameter
NameDescription
familyIdString
Returns
TypeDescription
CreateTableRequest

addFamily(String familyId, GCRules.GCRule gcRule)

public CreateTableRequest addFamily(String familyId, GCRules.GCRule gcRule)

Adds a new columnFamily with GCRule to the configuration. Please note that calling this method with the same familyId will overwrite the previous family. See Also: GCRulefor available options.

Parameters
NameDescription
familyIdString
gcRuleGCRules.GCRule
Returns
TypeDescription
CreateTableRequest

addSplit(ByteString key)

public CreateTableRequest addSplit(ByteString key)

Adds split at the specified key to the configuration

Parameter
NameDescription
keyByteString
Returns
TypeDescription
CreateTableRequest

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toProto(String projectId, String instanceId)

public CreateTableRequest toProto(String projectId, String instanceId)
Parameters
NameDescription
projectIdString
instanceIdString
Returns
TypeDescription
com.google.bigtable.admin.v2.CreateTableRequest