Cloud Bigtable currently supports only millisecond granularity in the cell timestamps, both TIMESTAMP_GRANULARITY_UNSPECIFIED and MILLIS have the same effect.
Returns
Type
Description
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
Name
Description
column_family_name
std::string
gc_rule
GcRule
Returns
Type
Description
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
Type
Description
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
Name
Description
split
std::string
Returns
Type
Description
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
Type
Description
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
Name
Description
new_value
TimestampGranularity
Returns
Type
Description
void
as_proto() &&
Move the contents to the proto to create tables.
Returns
Type
Description
::google::bigtable::admin::v2::CreateTableRequest
Type Aliases
TimestampGranularity
Alias Of: ::google::bigtable::admin::v2::Table::TimestampGranularity
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis document details the \u003ccode\u003eTableConfig\u003c/code\u003e class for Google Cloud Bigtable, used for specifying the initial schema when creating a new table.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eTableConfig\u003c/code\u003e is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and the document provides links to prior versions ranging from \u003ccode\u003e2.36.0\u003c/code\u003e to \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey functions include \u003ccode\u003ecolumn_families()\u003c/code\u003e, \u003ccode\u003eadd_column_family()\u003c/code\u003e, \u003ccode\u003einitial_splits()\u003c/code\u003e, \u003ccode\u003eadd_initial_split()\u003c/code\u003e, \u003ccode\u003etimestamp_granularity()\u003c/code\u003e, and \u003ccode\u003eset_timestamp_granularity()\u003c/code\u003e, which are used for managing column families, initial splits, and timestamp granularity.\u003c/p\u003e\n"],["\u003cp\u003eCloud Bigtable supports only millisecond granularity for cell timestamps, meaning both \u003ccode\u003eTIMESTAMP_GRANULARITY_UNSPECIFIED\u003c/code\u003e and \u003ccode\u003eMILLIS\u003c/code\u003e settings have the same effect.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eas_proto()\u003c/code\u003e function moves the configured contents to a proto to create the tables, returning a \u003ccode\u003e::google::bigtable::admin::v2::CreateTableRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class TableConfig (2.34.0)\n\nVersion 2.34.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/bigtable/latest/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.41.0](/cpp/docs/reference/bigtable/2.41.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.40.0](/cpp/docs/reference/bigtable/2.40.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.39.0](/cpp/docs/reference/bigtable/2.39.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.38.0](/cpp/docs/reference/bigtable/2.38.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.37.0](/cpp/docs/reference/bigtable/2.37.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.36.0](/cpp/docs/reference/bigtable/2.36.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.35.0](/cpp/docs/reference/bigtable/2.35.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.34.0](/cpp/docs/reference/bigtable/2.34.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.33.0](/cpp/docs/reference/bigtable/2.33.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.32.0](/cpp/docs/reference/bigtable/2.32.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.31.0](/cpp/docs/reference/bigtable/2.31.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.30.0](/cpp/docs/reference/bigtable/2.30.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.29.0](/cpp/docs/reference/bigtable/2.29.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.28.0](/cpp/docs/reference/bigtable/2.28.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.27.0](/cpp/docs/reference/bigtable/2.27.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.26.0](/cpp/docs/reference/bigtable/2.26.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.25.1](/cpp/docs/reference/bigtable/2.25.1/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.24.0](/cpp/docs/reference/bigtable/2.24.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.23.0](/cpp/docs/reference/bigtable/2.23.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.22.1](/cpp/docs/reference/bigtable/2.22.1/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.21.0](/cpp/docs/reference/bigtable/2.21.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.20.0](/cpp/docs/reference/bigtable/2.20.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.19.0](/cpp/docs/reference/bigtable/2.19.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.18.0](/cpp/docs/reference/bigtable/2.18.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.17.0](/cpp/docs/reference/bigtable/2.17.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.16.0](/cpp/docs/reference/bigtable/2.16.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.15.1](/cpp/docs/reference/bigtable/2.15.1/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.14.0](/cpp/docs/reference/bigtable/2.14.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.13.0](/cpp/docs/reference/bigtable/2.13.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.12.0](/cpp/docs/reference/bigtable/2.12.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig)\n- [2.11.0](/cpp/docs/reference/bigtable/2.11.0/classgoogle_1_1cloud_1_1bigtable_1_1TableConfig) \nSpecify the initial schema for a new table.\n\nConstructors\n------------\n\n### TableConfig()\n\n### TableConfig(std::map\\\u003c std::string, GcRule \\\u003e, std::vector\\\u003c std::string \\\u003e)\n\nFunctions\n---------\n\n### column_families() const\n\nReturn the timestamp granularity parameter. \nCloud Bigtable currently supports only millisecond granularity in the cell timestamps, both `TIMESTAMP_GRANULARITY_UNSPECIFIED` and `MILLIS` have the same effect.\n\n### add_column_family(std::string, GcRule)\n\nReturn the timestamp granularity parameter. \nCloud Bigtable currently supports only millisecond granularity in the cell timestamps, both `TIMESTAMP_GRANULARITY_UNSPECIFIED` and `MILLIS` have the same effect.\n\n### initial_splits() const\n\nReturn the timestamp granularity parameter. \nCloud Bigtable currently supports only millisecond granularity in the cell timestamps, both `TIMESTAMP_GRANULARITY_UNSPECIFIED` and `MILLIS` have the same effect.\n\n### add_initial_split(std::string)\n\nReturn the timestamp granularity parameter. \nCloud Bigtable currently supports only millisecond granularity in the cell timestamps, both `TIMESTAMP_GRANULARITY_UNSPECIFIED` and `MILLIS` have the same effect.\n\n### timestamp_granularity() const\n\nReturn the timestamp granularity parameter. \nCloud Bigtable currently supports only millisecond granularity in the cell timestamps, both `TIMESTAMP_GRANULARITY_UNSPECIFIED` and `MILLIS` have the same effect.\n\n### set_timestamp_granularity(TimestampGranularity)\n\nSet the timestamp granularity parameter. \nCloud 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.\n\n### as_proto() \\&\\&\n\nMove the contents to the proto to create tables.\n\nType Aliases\n------------\n\n### TimestampGranularity\n\n**Alias Of** : `::google::bigtable::admin::v2::Table::TimestampGranularity`"]]