Class CreateTableRequest (2.39.2)

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
Name Description
tableId String
Returns
Type Description
CreateTableRequest

Methods

addChangeStreamRetention(Duration retention)

public CreateTableRequest addChangeStreamRetention(Duration retention)

Add change stream retention period between 1 day and 7 days

Parameter
Name Description
retention org.threeten.bp.Duration
Returns
Type Description
CreateTableRequest

addFamily(String familyId)

public CreateTableRequest addFamily(String familyId)

Adds a new columnFamily to the configuration

Parameter
Name Description
familyId String
Returns
Type Description
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
Name Description
familyId String
gcRule GCRules.GCRule
Returns
Type Description
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
Name Description
familyId String
gcRule GCRules.GCRule
valueType Type
Returns
Type Description
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
Name Description
familyId String
valueType Type
Returns
Type Description
CreateTableRequest

addSplit(ByteString key)

public CreateTableRequest addSplit(ByteString key)

Adds split at the specified key to the configuration

Parameter
Name Description
key ByteString
Returns
Type Description
CreateTableRequest

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toProto(String projectId, String instanceId)

public CreateTableRequest toProto(String projectId, String instanceId)
Parameters
Name Description
projectId String
instanceId String
Returns
Type Description
com.google.bigtable.admin.v2.CreateTableRequest