Package com.google.cloud.bigquery
Class TableInfo
java.lang.Object
com.google.cloud.bigquery.TableInfo
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Table
Google BigQuery table information. Use
StandardTableDefinition
to create simple BigQuery
table. Use ViewDefinition
to create a BigQuery view. Use ExternalTableDefinition
to create a BigQuery a table backed by external data.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the time when this table was created, in milliseconds since the epoch.<T extends TableDefinition>
TReturns the table definition.Returns a user-friendly description for the table.getEtag()
Returns the hash of the table resource.Returns the time when this table expires, in milliseconds since the epoch.Returns a user-friendly name for the table.Returns the service-generated id for the table.Return a map for labels applied to the table.Returns the time when this table was last modified, in milliseconds since the epoch.Returns the number of active logical bytes.Returns the number of active physical bytes.Returns the size of this table in bytesReturns the number of bytes considered "long-term storage" for reduced billing purposes.Returns the number of long term logical bytes.Returns the number of long term physical bytes.Returns the number of rows of data in this tableReturns the number of time travel physical bytes.Returns the number of total logical bytes.Returns the number of total physical bytes.Returns true if a partition filter (that can be used for partition elimination) is required for queries over this table.Return a map for resource tags applied to the table.Returns an URL that can be used to access the resource again.Returns the table identity.int
hashCode()
static TableInfo.Builder
newBuilder
(TableId tableId, TableDefinition definition) Returns a builder for aTableInfo
object given table identity and definition.static TableInfo
of
(TableId tableId, TableDefinition definition) Returns aTableInfo
object given table identity and definition.Returns a builder for the table object.toString()
-
Method Details
-
getEtag
Returns the hash of the table resource. -
getGeneratedId
Returns the service-generated id for the table. -
getSelfLink
Returns an URL that can be used to access the resource again. The returned URL can be used for get or update requests. -
getTableId
Returns the table identity. -
getFriendlyName
Returns a user-friendly name for the table. -
getDescription
Returns a user-friendly description for the table. -
getCreationTime
Returns the time when this table was created, in milliseconds since the epoch. -
getExpirationTime
Returns the time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed. -
getLastModifiedTime
Returns the time when this table was last modified, in milliseconds since the epoch. -
getEncryptionConfiguration
-
getDefinition
Returns the table definition. -
getNumBytes
Returns the size of this table in bytes -
getNumLongTermBytes
Returns the number of bytes considered "long-term storage" for reduced billing purposes.- See Also:
-
getNumTimeTravelPhysicalBytes
Returns the number of time travel physical bytes.- See Also:
-
getNumTotalLogicalBytes
Returns the number of total logical bytes.- See Also:
-
getNumActiveLogicalBytes
Returns the number of active logical bytes.- See Also:
-
getNumLongTermLogicalBytes
Returns the number of long term logical bytes.- See Also:
-
getNumTotalPhysicalBytes
Returns the number of total physical bytes.- See Also:
-
getNumActivePhysicalBytes
Returns the number of active physical bytes.- See Also:
-
getNumLongTermPhysicalBytes
Returns the number of long term physical bytes.- See Also:
-
getNumRows
Returns the number of rows of data in this table -
getLabels
Return a map for labels applied to the table.Unstable, because labels are experimental.
-
getResourceTags
Return a map for resource tags applied to the table. -
getRequirePartitionFilter
Returns true if a partition filter (that can be used for partition elimination) is required for queries over this table. -
getDefaultCollation
-
getCloneDefinition
-
getTableConstraints
-
toBuilder
Returns a builder for the table object. -
toString
-
hashCode
public int hashCode() -
equals
-
newBuilder
Returns a builder for aTableInfo
object given table identity and definition. UseStandardTableDefinition
to create simple BigQuery table. UseViewDefinition
to create a BigQuery view. UseExternalTableDefinition
to create a BigQuery a table backed by external data. -
of
Returns aTableInfo
object given table identity and definition. UseStandardTableDefinition
to create simple BigQuery table. UseViewDefinition
to create a BigQuery view. UseExternalTableDefinition
to create a BigQuery a table backed by external data.
-