Package com.google.cloud.bigquery
Class TableInfo
- java.lang.Object
-
- com.google.cloud.bigquery.TableInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Table
public class TableInfo extends Object implements Serializable
Google BigQuery table information. UseStandardTableDefinition
to create simple BigQuery table. UseViewDefinition
to create a BigQuery view. UseExternalTableDefinition
to create a BigQuery a table backed by external data.- See Also:
- Managing Tables, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TableInfo.Builder
A builder forTableInfo
objects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CloneDefinition
getCloneDefinition()
Long
getCreationTime()
Returns the time when this table was created, in milliseconds since the epoch.String
getDefaultCollation()
<T extends TableDefinition>
TgetDefinition()
Returns the table definition.String
getDescription()
Returns a user-friendly description for the table.EncryptionConfiguration
getEncryptionConfiguration()
String
getEtag()
Returns the hash of the table resource.Long
getExpirationTime()
Returns the time when this table expires, in milliseconds since the epoch.String
getFriendlyName()
Returns a user-friendly name for the table.String
getGeneratedId()
Returns the service-generated id for the table.Map<String,String>
getLabels()
Return a map for labels applied to the table.Long
getLastModifiedTime()
Returns the time when this table was last modified, in milliseconds since the epoch.Long
getNumActiveLogicalBytes()
Returns the number of active logical bytes.Long
getNumActivePhysicalBytes()
Returns the number of active physical bytes.Long
getNumBytes()
Returns the size of this table in bytesLong
getNumLongTermBytes()
Returns the number of bytes considered "long-term storage" for reduced billing purposes.Long
getNumLongTermLogicalBytes()
Returns the number of long term logical bytes.Long
getNumLongTermPhysicalBytes()
Returns the number of long term physical bytes.BigInteger
getNumRows()
Returns the number of rows of data in this tableLong
getNumTimeTravelPhysicalBytes()
Returns the number of time travel physical bytes.Long
getNumTotalLogicalBytes()
Returns the number of total logical bytes.Long
getNumTotalPhysicalBytes()
Returns the number of total physical bytes.Boolean
getRequirePartitionFilter()
Returns true if a partition filter (that can be used for partition elimination) is required for queries over this table.String
getSelfLink()
Returns an URL that can be used to access the resource again.TableConstraints
getTableConstraints()
TableId
getTableId()
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.TableInfo.Builder
toBuilder()
Returns a builder for the table object.String
toString()
-
-
-
Method Detail
-
getEtag
public String getEtag()
Returns the hash of the table resource.
-
getGeneratedId
public String getGeneratedId()
Returns the service-generated id for the table.
-
getSelfLink
public String 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
public TableId getTableId()
Returns the table identity.
-
getFriendlyName
public String getFriendlyName()
Returns a user-friendly name for the table.
-
getDescription
public String getDescription()
Returns a user-friendly description for the table.
-
getCreationTime
public Long getCreationTime()
Returns the time when this table was created, in milliseconds since the epoch.
-
getExpirationTime
public Long 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
public Long getLastModifiedTime()
Returns the time when this table was last modified, in milliseconds since the epoch.
-
getEncryptionConfiguration
public EncryptionConfiguration getEncryptionConfiguration()
-
getDefinition
public <T extends TableDefinition> T getDefinition()
Returns the table definition.
-
getNumBytes
public Long getNumBytes()
Returns the size of this table in bytes
-
getNumLongTermBytes
public Long getNumLongTermBytes()
Returns the number of bytes considered "long-term storage" for reduced billing purposes.- See Also:
- Long Term Storage Pricing
-
getNumTimeTravelPhysicalBytes
public Long getNumTimeTravelPhysicalBytes()
Returns the number of time travel physical bytes.- See Also:
- Storage Pricing
-
getNumTotalLogicalBytes
public Long getNumTotalLogicalBytes()
Returns the number of total logical bytes.- See Also:
- Storage Pricing
-
getNumActiveLogicalBytes
public Long getNumActiveLogicalBytes()
Returns the number of active logical bytes.- See Also:
- Storage Pricing
-
getNumLongTermLogicalBytes
public Long getNumLongTermLogicalBytes()
Returns the number of long term logical bytes.- See Also:
- Storage Pricing
-
getNumTotalPhysicalBytes
public Long getNumTotalPhysicalBytes()
Returns the number of total physical bytes.- See Also:
- Storage Pricing
-
getNumActivePhysicalBytes
public Long getNumActivePhysicalBytes()
Returns the number of active physical bytes.- See Also:
- Storage Pricing
-
getNumLongTermPhysicalBytes
public Long getNumLongTermPhysicalBytes()
Returns the number of long term physical bytes.- See Also:
- Storage Pricing
-
getNumRows
public BigInteger getNumRows()
Returns the number of rows of data in this table
-
getLabels
@BetaApi public Map<String,String> getLabels()
Return a map for labels applied to the table.Unstable, because labels are experimental.
-
getRequirePartitionFilter
public Boolean getRequirePartitionFilter()
Returns true if a partition filter (that can be used for partition elimination) is required for queries over this table.
-
getDefaultCollation
public String getDefaultCollation()
-
getCloneDefinition
public CloneDefinition getCloneDefinition()
-
getTableConstraints
public TableConstraints getTableConstraints()
-
toBuilder
public TableInfo.Builder toBuilder()
Returns a builder for the table object.
-
newBuilder
public static TableInfo.Builder newBuilder(TableId tableId, TableDefinition definition)
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
public static TableInfo of(TableId tableId, TableDefinition definition)
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.
-
-