Class CreateTableRequest
java.lang.Object
com.google.cloud.bigtable.admin.v2.models.CreateTableRequest
Fluent wrapper for
CreateTableRequest
Allows for creating table with:
- optional columnFamilies, including optional
GCRules.GCRule - optional granularity
- and optional split points
-
Method Summary
Modifier and TypeMethodDescriptionaddChangeStreamRetention(org.threeten.bp.Duration retention) Add change stream retention period between 1 day and 7 daysAdds a new columnFamily to the configurationaddFamily(String familyId, GCRules.GCRule gcRule) Adds a new columnFamily withGCRules.GCRuleto the configuration.addFamily(String familyId, GCRules.GCRule gcRule, Type valueType) Adds a new columnFamily with aGCRules.GCRuleandTypeto the configuration.Adds a new columnFamily with aTypeto the configuration.addSplit(com.google.protobuf.ByteString key) Adds split at the specified key to the configurationbooleaninthashCode()static CreateTableRequest
-
Method Details
-
of
-
addFamily
Adds a new columnFamily to the configuration -
addFamily
Adds a new columnFamily withGCRules.GCRuleto the configuration. Please note that calling this method with the same familyId will overwrite the previous family.- See Also:
-
addFamily
Adds a new columnFamily with aTypeto the configuration. Please note that calling this method with the same familyId will overwrite the previous family.- See Also:
-
addFamily
public CreateTableRequest addFamily(@Nonnull String familyId, @Nonnull GCRules.GCRule gcRule, @Nonnull Type valueType) Adds a new columnFamily with aGCRules.GCRuleandTypeto the configuration. Please note that calling this method with the same familyId will overwrite the previous family.- See Also:
-
addSplit
Adds split at the specified key to the configuration -
addChangeStreamRetention
Add change stream retention period between 1 day and 7 days -
equals
-
hashCode
public int hashCode() -
toProto
@InternalApi public CreateTableRequest toProto(@Nonnull String projectId, @Nonnull String instanceId)
-