Reference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::BigQueryDateShardedSpec.
(::String) — Output only. The Data Catalog resource name of the dataset entry the
current table belongs to, for example,
projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}.
#shard_count
defshard_count()->::Integer
Returns
(::Integer) — Output only. Total number of shards.
#table_prefix
deftable_prefix()->::String
Returns
(::String) — Output only. The table name prefix of the shards. The name of any given
shard is
[table_prefix]YYYYMMDD, for example, for shard MyTable20180101, the
table_prefix is MyTable.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Data Catalog V1BETA1 API - Class Google::Cloud::DataCatalog::V1beta1::BigQueryDateShardedSpec (v0.9.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.9.1 (latest)](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/latest/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.9.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.9.0/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.8.4](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.8.4/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.7.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.7.0/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.6.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.6.0/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.5.2](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.5.2/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.4.0/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.3.2](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.3.2/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.2.1](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.2.1/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec)\n- [0.1.1](/ruby/docs/reference/google-cloud-data_catalog-v1beta1/0.1.1/Google-Cloud-DataCatalog-V1beta1-BigQueryDateShardedSpec) \nReference documentation and code samples for the Google Cloud Data Catalog V1BETA1 API class Google::Cloud::DataCatalog::V1beta1::BigQueryDateShardedSpec.\n\nSpec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`.\nContext:\n\u003chttps://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding\u003e \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #dataset\n\n def dataset() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The Data Catalog resource name of the dataset entry the current table belongs to, for example, `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.\n\n### #shard_count\n\n def shard_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. Total number of shards.\n\n### #table_prefix\n\n def table_prefix() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The table name prefix of the shards. The name of any given shard is `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `table_prefix` is `MyTable`."]]