Class CreateTableRequest (2.37.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

addChangeStreamRetention(Duration retention)

public CreateTableRequest addChangeStreamRetention(Duration retention)

Add change stream retention period between 1 day and 7 days

Parameter
NameDescription
retentionorg.threeten.bp.Duration
Returns
TypeDescription
CreateTableRequest

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

addFamily(String familyId, GCRules.GCRule gcRule, Type valueType)

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

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

Parameters
NameDescription
familyIdString
gcRuleGCRules.GCRule
valueTypeType
Returns
TypeDescription
CreateTableRequest

addFamily(String familyId, Type valueType)

public CreateTableRequest addFamily(String familyId, Type valueType)

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

Parameters
NameDescription
familyIdString
valueTypeType
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