public static final class CreateTableRequest.Builder extends GeneratedMessageV3.Builder<CreateTableRequest.Builder> implements CreateTableRequestOrBuilder
Request message for google.bigtable.admin.v2.BigtableTableAdmin.CreateTable
Protobuf type google.bigtable.admin.v2.CreateTableRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateTableRequest.BuilderImplements
CreateTableRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllInitialSplits(Iterable<? extends CreateTableRequest.Split> values)
public CreateTableRequest.Builder addAllInitialSplits(Iterable<? extends CreateTableRequest.Split> values)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
values | Iterable<? extends com.google.bigtable.admin.v2.CreateTableRequest.Split> |
Type | Description |
CreateTableRequest.Builder |
addInitialSplits(CreateTableRequest.Split value)
public CreateTableRequest.Builder addInitialSplits(CreateTableRequest.Split value)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
value | CreateTableRequest.Split |
Type | Description |
CreateTableRequest.Builder |
addInitialSplits(CreateTableRequest.Split.Builder builderForValue)
public CreateTableRequest.Builder addInitialSplits(CreateTableRequest.Split.Builder builderForValue)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
builderForValue | CreateTableRequest.Split.Builder |
Type | Description |
CreateTableRequest.Builder |
addInitialSplits(int index, CreateTableRequest.Split value)
public CreateTableRequest.Builder addInitialSplits(int index, CreateTableRequest.Split value)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
value | CreateTableRequest.Split |
Type | Description |
CreateTableRequest.Builder |
addInitialSplits(int index, CreateTableRequest.Split.Builder builderForValue)
public CreateTableRequest.Builder addInitialSplits(int index, CreateTableRequest.Split.Builder builderForValue)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
builderForValue | CreateTableRequest.Split.Builder |
Type | Description |
CreateTableRequest.Builder |
addInitialSplitsBuilder()
public CreateTableRequest.Split.Builder addInitialSplitsBuilder()
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Type | Description |
CreateTableRequest.Split.Builder |
addInitialSplitsBuilder(int index)
public CreateTableRequest.Split.Builder addInitialSplitsBuilder(int index)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
Type | Description |
CreateTableRequest.Split.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateTableRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateTableRequest.Builder |
build()
public CreateTableRequest build()
Type | Description |
CreateTableRequest |
buildPartial()
public CreateTableRequest buildPartial()
Type | Description |
CreateTableRequest |
clear()
public CreateTableRequest.Builder clear()
Type | Description |
CreateTableRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateTableRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CreateTableRequest.Builder |
clearInitialSplits()
public CreateTableRequest.Builder clearInitialSplits()
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Type | Description |
CreateTableRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateTableRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CreateTableRequest.Builder |
clearParent()
public CreateTableRequest.Builder clearParent()
Required. The unique name of the instance in which to create the table.
Values are of the form projects/{project}/instances/{instance}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
CreateTableRequest.Builder | This builder for chaining. |
clearTable()
public CreateTableRequest.Builder clearTable()
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateTableRequest.Builder |
clearTableId()
public CreateTableRequest.Builder clearTableId()
Required. The name by which the new table should be referred to within the parent
instance, e.g., foobar
rather than {parent}/tables/foobar
.
Maximum 50 characters.
string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateTableRequest.Builder | This builder for chaining. |
clone()
public CreateTableRequest.Builder clone()
Type | Description |
CreateTableRequest.Builder |
getDefaultInstanceForType()
public CreateTableRequest getDefaultInstanceForType()
Type | Description |
CreateTableRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getInitialSplits(int index)
public CreateTableRequest.Split getInitialSplits(int index)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
Type | Description |
CreateTableRequest.Split |
getInitialSplitsBuilder(int index)
public CreateTableRequest.Split.Builder getInitialSplitsBuilder(int index)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
Type | Description |
CreateTableRequest.Split.Builder |
getInitialSplitsBuilderList()
public List<CreateTableRequest.Split.Builder> getInitialSplitsBuilderList()
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Type | Description |
List<Builder> |
getInitialSplitsCount()
public int getInitialSplitsCount()
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Type | Description |
int |
getInitialSplitsList()
public List<CreateTableRequest.Split> getInitialSplitsList()
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Type | Description |
List<Split> |
getInitialSplitsOrBuilder(int index)
public CreateTableRequest.SplitOrBuilder getInitialSplitsOrBuilder(int index)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
Type | Description |
CreateTableRequest.SplitOrBuilder |
getInitialSplitsOrBuilderList()
public List<? extends CreateTableRequest.SplitOrBuilder> getInitialSplitsOrBuilderList()
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Type | Description |
List<? extends com.google.bigtable.admin.v2.CreateTableRequest.SplitOrBuilder> |
getParent()
public String getParent()
Required. The unique name of the instance in which to create the table.
Values are of the form projects/{project}/instances/{instance}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The unique name of the instance in which to create the table.
Values are of the form projects/{project}/instances/{instance}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getTable()
public Table getTable()
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Table | The table. |
getTableBuilder()
public Table.Builder getTableBuilder()
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Table.Builder |
getTableId()
public String getTableId()
Required. The name by which the new table should be referred to within the parent
instance, e.g., foobar
rather than {parent}/tables/foobar
.
Maximum 50 characters.
string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The tableId. |
getTableIdBytes()
public ByteString getTableIdBytes()
Required. The name by which the new table should be referred to within the parent
instance, e.g., foobar
rather than {parent}/tables/foobar
.
Maximum 50 characters.
string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for tableId. |
getTableOrBuilder()
public TableOrBuilder getTableOrBuilder()
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
TableOrBuilder |
hasTable()
public boolean hasTable()
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the table field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CreateTableRequest other)
public CreateTableRequest.Builder mergeFrom(CreateTableRequest other)
Name | Description |
other | CreateTableRequest |
Type | Description |
CreateTableRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateTableRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateTableRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CreateTableRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CreateTableRequest.Builder |
mergeTable(Table value)
public CreateTableRequest.Builder mergeTable(Table value)
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Table |
Type | Description |
CreateTableRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateTableRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateTableRequest.Builder |
removeInitialSplits(int index)
public CreateTableRequest.Builder removeInitialSplits(int index)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
Type | Description |
CreateTableRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateTableRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateTableRequest.Builder |
setInitialSplits(int index, CreateTableRequest.Split value)
public CreateTableRequest.Builder setInitialSplits(int index, CreateTableRequest.Split value)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
value | CreateTableRequest.Split |
Type | Description |
CreateTableRequest.Builder |
setInitialSplits(int index, CreateTableRequest.Split.Builder builderForValue)
public CreateTableRequest.Builder setInitialSplits(int index, CreateTableRequest.Split.Builder builderForValue)
The optional list of row keys that will be used to initially split the
table into several tablets (tablets are similar to HBase regions).
Given two split keys, s1
and s2
, three tablets will be created,
spanning the key ranges: [, s1), [s1, s2), [s2, )
.
Example:
- Row keys :=
["a", "apple", "custom", "customer_1", "customer_2",
"other", "zz"]
- initial_split_keys :=
["apple", "customer_1", "customer_2", "other"]
- Key assignment:
- Tablet 1
[, apple) => {"a"}.
- Tablet 2
[apple, customer_1) => {"apple", "custom"}.
- Tablet 3
[customer_1, customer_2) => {"customer_1"}.
- Tablet 4
[customer_2, other) => {"customer_2"}.
- Tablet 5
[other, ) => {"other", "zz"}.
- Tablet 1
repeated .google.bigtable.admin.v2.CreateTableRequest.Split initial_splits = 4;
Name | Description |
index | int |
builderForValue | CreateTableRequest.Split.Builder |
Type | Description |
CreateTableRequest.Builder |
setParent(String value)
public CreateTableRequest.Builder setParent(String value)
Required. The unique name of the instance in which to create the table.
Values are of the form projects/{project}/instances/{instance}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
CreateTableRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public CreateTableRequest.Builder setParentBytes(ByteString value)
Required. The unique name of the instance in which to create the table.
Values are of the form projects/{project}/instances/{instance}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
CreateTableRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateTableRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CreateTableRequest.Builder |
setTable(Table value)
public CreateTableRequest.Builder setTable(Table value)
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Table |
Type | Description |
CreateTableRequest.Builder |
setTable(Table.Builder builderForValue)
public CreateTableRequest.Builder setTable(Table.Builder builderForValue)
Required. The Table to create.
.google.bigtable.admin.v2.Table table = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Table.Builder |
Type | Description |
CreateTableRequest.Builder |
setTableId(String value)
public CreateTableRequest.Builder setTableId(String value)
Required. The name by which the new table should be referred to within the parent
instance, e.g., foobar
rather than {parent}/tables/foobar
.
Maximum 50 characters.
string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The tableId to set. |
Type | Description |
CreateTableRequest.Builder | This builder for chaining. |
setTableIdBytes(ByteString value)
public CreateTableRequest.Builder setTableIdBytes(ByteString value)
Required. The name by which the new table should be referred to within the parent
instance, e.g., foobar
rather than {parent}/tables/foobar
.
Maximum 50 characters.
string table_id = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for tableId to set. |
Type | Description |
CreateTableRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateTableRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateTableRequest.Builder |