A Google BigQuery default table definition. This definition is used for standard, two-dimensional
tables with individual records organized in rows, and a data type assigned to each column (also
called a field). Individual fields within a record may contain nested and repeated children
fields. Every table is described by a schema that describes field names, types, and other
information.
See Also: Managing Tables
[[["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-04 UTC."],[],[],null,["# Class StandardTableDefinition (2.54.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.54.1 (latest)](/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.54.0](/java/docs/reference/google-cloud-bigquery/2.54.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.53.0](/java/docs/reference/google-cloud-bigquery/2.53.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.52.0](/java/docs/reference/google-cloud-bigquery/2.52.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.51.0](/java/docs/reference/google-cloud-bigquery/2.51.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.50.1](/java/docs/reference/google-cloud-bigquery/2.50.1/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.49.0](/java/docs/reference/google-cloud-bigquery/2.49.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.48.1](/java/docs/reference/google-cloud-bigquery/2.48.1/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.47.0](/java/docs/reference/google-cloud-bigquery/2.47.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.46.0](/java/docs/reference/google-cloud-bigquery/2.46.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.45.0](/java/docs/reference/google-cloud-bigquery/2.45.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.44.0](/java/docs/reference/google-cloud-bigquery/2.44.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.43.3](/java/docs/reference/google-cloud-bigquery/2.43.3/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.42.3](/java/docs/reference/google-cloud-bigquery/2.42.3/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.41.0](/java/docs/reference/google-cloud-bigquery/2.41.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.40.3](/java/docs/reference/google-cloud-bigquery/2.40.3/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.39.1](/java/docs/reference/google-cloud-bigquery/2.39.1/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.38.2](/java/docs/reference/google-cloud-bigquery/2.38.2/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.37.2](/java/docs/reference/google-cloud-bigquery/2.37.2/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.36.0](/java/docs/reference/google-cloud-bigquery/2.36.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.35.0](/java/docs/reference/google-cloud-bigquery/2.35.0/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.34.2](/java/docs/reference/google-cloud-bigquery/2.34.2/com.google.cloud.bigquery.StandardTableDefinition)\n- [2.33.2](/java/docs/reference/google-cloud-bigquery/2.33.2/com.google.cloud.bigquery.StandardTableDefinition) \n\n public abstract class StandardTableDefinition extends TableDefinition\n\nA Google BigQuery default table definition. This definition is used for standard, two-dimensional\ntables with individual records organized in rows, and a data type assigned to each column (also\ncalled a field). Individual fields within a record may contain nested and repeated children\nfields. Every table is described by a schema that describes field names, types, and other\ninformation.\nSee Also: [Managing Tables](https://cloud.google.com/bigquery/docs/tables) \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e [TableDefinition](/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableDefinition) \\\u003e StandardTableDefinition \n\nInherited Members\n-----------------\n\n[TableDefinition.getSchema()](/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableDefinition#com_google_cloud_bigquery_TableDefinition_getSchema__) \n[TableDefinition.getType()](/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableDefinition#com_google_cloud_bigquery_TableDefinition_getType__) \n[TableDefinition.toBuilder()](/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableDefinition#com_google_cloud_bigquery_TableDefinition_toBuilder__) \n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### newBuilder()\n\n public static StandardTableDefinition.Builder newBuilder()\n\nReturns a builder for a BigQuery standard table definition.\n\n### of(Schema schema)\n\n public static StandardTableDefinition of(Schema schema)\n\nCreates a BigQuery standard table definition given its schema.\n\nConstructors\n------------\n\n### StandardTableDefinition()\n\n public StandardTableDefinition()\n\nMethods\n-------\n\n### getBigLakeConfiguration()\n\n public abstract BigLakeConfiguration getBigLakeConfiguration()\n\n\\[Optional\\] Specifies the configuration of a BigLake managed table. The value may be `\nnull`.\n\n### getClustering()\n\n public abstract Clustering getClustering()\n\nReturns the clustering configuration for this table. If `null`, the table is not\nclustered.\n\n### getLocation()\n\n public abstract String getLocation()\n\nReturns the geographic location where the table should reside. This value is inherited from the\ndataset.\nSee Also: [Dataset Location](https://cloud.google.com/bigquery/docs/managing_jobs_datasets_projects#dataset-location)\n\n### getNumActiveLogicalBytes()\n\n public abstract Long getNumActiveLogicalBytes()\n\nReturns the number of active logical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getNumActivePhysicalBytes()\n\n public abstract Long getNumActivePhysicalBytes()\n\nReturns the number of active physical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getNumBytes()\n\n public abstract Long getNumBytes()\n\nReturns the size of this table in bytes, excluding any data in the streaming buffer.\n\n### getNumLongTermBytes()\n\n public abstract Long getNumLongTermBytes()\n\nReturns the number of bytes considered \"long-term storage\" for reduced billing purposes.\nSee Also: [Long Term Storage Pricing](https://cloud.google.com/bigquery/pricing#long-term-storage)\n\n### getNumLongTermLogicalBytes()\n\n public abstract Long getNumLongTermLogicalBytes()\n\nReturns the number of long term logical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getNumLongTermPhysicalBytes()\n\n public abstract Long getNumLongTermPhysicalBytes()\n\nReturns the number of long term physical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getNumRows()\n\n public abstract Long getNumRows()\n\nReturns the number of rows in this table, excluding any data in the streaming buffer.\n\n### getNumTimeTravelPhysicalBytes()\n\n public abstract Long getNumTimeTravelPhysicalBytes()\n\nReturns the number of time travel physical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getNumTotalLogicalBytes()\n\n public abstract Long getNumTotalLogicalBytes()\n\nReturns the number of total logical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getNumTotalPhysicalBytes()\n\n public abstract Long getNumTotalPhysicalBytes()\n\nReturns the number of total physical bytes.\nSee Also: [Storage Pricing](https://cloud.google.com/bigquery/pricing#storage)\n\n### getRangePartitioning()\n\n public abstract RangePartitioning getRangePartitioning()\n\nReturns the range partitioning configuration for this table. If `null`, the table is not\nrange-partitioned.\n\n### getStreamingBuffer()\n\n public abstract StandardTableDefinition.StreamingBuffer getStreamingBuffer()\n\nReturns information on the table's streaming buffer if any exists. Returns `null` if no\nstreaming buffer exists.\n\n### getTableConstraints()\n\n public abstract TableConstraints getTableConstraints()\n\nReturns the table constraints for this table. Returns `null` if no table constraints are\nset for this table.\n\n### getTimePartitioning()\n\n public abstract TimePartitioning getTimePartitioning()\n\nReturns the time partitioning configuration for this table. If `null`, the table is not\ntime-partitioned.\n\n### toBuilder()\n\n public abstract StandardTableDefinition.Builder toBuilder()\n\nReturns a builder for the `StandardTableDefinition` object.\n\n**Overrides** \n[TableDefinition.toBuilder()](/java/docs/reference/google-cloud-bigquery/latest/com.google.cloud.bigquery.TableDefinition#com_google_cloud_bigquery_TableDefinition_toBuilder__)"]]