Class CreateTableRequest
- java.lang.Object
-
- com.google.cloud.bigtable.admin.v2.models.CreateTableRequest
-
public final class CreateTableRequest extends Object
Fluent wrapper forCreateTableRequest
Allows for creating table with:
- optional columnFamilies, including optional
GCRules.GCRule
- optional granularity
- and optional split points
- optional columnFamilies, including optional
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTableRequest
addChangeStreamRetention(org.threeten.bp.Duration retention)
Add change stream retention period between 1 day and 7 daysCreateTableRequest
addFamily(String familyId)
Adds a new columnFamily to the configurationCreateTableRequest
addFamily(String familyId, GCRules.GCRule gcRule)
Adds a new columnFamily withGCRules.GCRule
to the configuration.CreateTableRequest
addSplit(com.google.protobuf.ByteString key)
Adds split at the specified key to the configurationboolean
equals(Object o)
int
hashCode()
static CreateTableRequest
of(String tableId)
CreateTableRequest
toProto(String projectId, String instanceId)
-
-
-
Method Detail
-
of
public static CreateTableRequest of(String tableId)
-
addFamily
public CreateTableRequest addFamily(String familyId)
Adds a new columnFamily to the configuration
-
addFamily
public CreateTableRequest addFamily(String familyId, GCRules.GCRule gcRule)
Adds a new columnFamily withGCRules.GCRule
to the configuration. Please note that calling this method with the same familyId will overwrite the previous family.- See Also:
for available options.
-
addSplit
public CreateTableRequest addSplit(com.google.protobuf.ByteString key)
Adds split at the specified key to the configuration
-
addChangeStreamRetention
public CreateTableRequest addChangeStreamRetention(org.threeten.bp.Duration retention)
Add change stream retention period between 1 day and 7 days
-
toProto
@InternalApi public CreateTableRequest toProto(@Nonnull String projectId, @Nonnull String instanceId)
-
-