Class TableConfig (2.13.0)

Specify the initial schema for a new table.

Constructors

TableConfig()

TableConfig(std::map< std::string, GcRule >, std::vector< std::string >)

Parameters
NameDescription
column_families std::map< std::string, GcRule >
initial_splits std::vector< std::string >

Functions

column_families() const

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

Returns
TypeDescription
std::map< std::string, GcRule > const &

add_column_family(std::string, GcRule)

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

Parameters
NameDescription
column_family_name std::string
gc_rule GcRule
Returns
TypeDescription
void

initial_splits() const

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

Returns
TypeDescription
std::vector< std::string > const &

add_initial_split(std::string)

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

Parameter
NameDescription
split std::string
Returns
TypeDescription
void

timestamp_granularity() const

Return the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.

Returns
TypeDescription
TimestampGranularity

set_timestamp_granularity(TimestampGranularity)

Set the timestamp granularity parameter.

Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect. Creating cells with higher granularity than the supported value is rejected by the server.

Parameter
NameDescription
new_value TimestampGranularity
Returns
TypeDescription
void

as_proto() &&

Move the contents to the proto to create tables.

Returns
TypeDescription
::google::bigtable::admin::v2::CreateTableRequest

Type Aliases

TimestampGranularity

Alias Of: ::google::bigtable::admin::v2::Table::TimestampGranularity