Class TableInfo (2.35.0)

public class TableInfo implements Serializable

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: Managing Tables

Inheritance

Object > TableInfo

Implements

Serializable

Static Methods

newBuilder(TableId tableId, TableDefinition definition)

public static TableInfo.Builder newBuilder(TableId tableId, TableDefinition definition)

Returns a builder for a TableInfo object given table identity and definition. 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.

Parameters
NameDescription
tableIdTableId
definitionTableDefinition
Returns
TypeDescription
TableInfo.Builder

of(TableId tableId, TableDefinition definition)

public static TableInfo of(TableId tableId, TableDefinition definition)

Returns a TableInfo object given table identity and definition. 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.

Parameters
NameDescription
tableIdTableId
definitionTableDefinition
Returns
TypeDescription
TableInfo

Methods

<T>getDefinition()

public T <T>getDefinition()

Returns the table definition.

Returns
TypeDescription
T

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCloneDefinition()

public CloneDefinition getCloneDefinition()
Returns
TypeDescription
CloneDefinition

getCreationTime()

public Long getCreationTime()

Returns the time when this table was created, in milliseconds since the epoch.

Returns
TypeDescription
Long

getDefaultCollation()

public String getDefaultCollation()
Returns
TypeDescription
String

getDescription()

public String getDescription()

Returns a user-friendly description for the table.

Returns
TypeDescription
String

getEncryptionConfiguration()

public EncryptionConfiguration getEncryptionConfiguration()
Returns
TypeDescription
EncryptionConfiguration

getEtag()

public String getEtag()

Returns the hash of the table resource.

Returns
TypeDescription
String

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.

Returns
TypeDescription
Long

getFriendlyName()

public String getFriendlyName()

Returns a user-friendly name for the table.

Returns
TypeDescription
String

getGeneratedId()

public String getGeneratedId()

Returns the service-generated id for the table.

Returns
TypeDescription
String

getLabels()

public Map<String,String> getLabels()

Return a map for labels applied to the table.

Unstable, because labels are experimental.

Returns
TypeDescription
Map<String,String>

getLastModifiedTime()

public Long getLastModifiedTime()

Returns the time when this table was last modified, in milliseconds since the epoch.

Returns
TypeDescription
Long

getNumActiveLogicalBytes()

public Long getNumActiveLogicalBytes()

Returns the number of active logical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getNumActivePhysicalBytes()

public Long getNumActivePhysicalBytes()

Returns the number of active physical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getNumBytes()

public Long getNumBytes()

Returns the size of this table in bytes

Returns
TypeDescription
Long

getNumLongTermBytes()

public Long getNumLongTermBytes()

Returns the number of bytes considered "long-term storage" for reduced billing purposes. See Also: Long Term Storage Pricing

Returns
TypeDescription
Long

getNumLongTermLogicalBytes()

public Long getNumLongTermLogicalBytes()

Returns the number of long term logical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getNumLongTermPhysicalBytes()

public Long getNumLongTermPhysicalBytes()

Returns the number of long term physical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getNumRows()

public BigInteger getNumRows()

Returns the number of rows of data in this table

Returns
TypeDescription
BigInteger

getNumTimeTravelPhysicalBytes()

public Long getNumTimeTravelPhysicalBytes()

Returns the number of time travel physical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getNumTotalLogicalBytes()

public Long getNumTotalLogicalBytes()

Returns the number of total logical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getNumTotalPhysicalBytes()

public Long getNumTotalPhysicalBytes()

Returns the number of total physical bytes. See Also: Storage Pricing

Returns
TypeDescription
Long

getRequirePartitionFilter()

public Boolean getRequirePartitionFilter()

Returns true if a partition filter (that can be used for partition elimination) is required for queries over this table.

Returns
TypeDescription
Boolean
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.

Returns
TypeDescription
String

getTableConstraints()

public TableConstraints getTableConstraints()
Returns
TypeDescription
TableConstraints

getTableId()

public TableId getTableId()

Returns the table identity.

Returns
TypeDescription
TableId

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public TableInfo.Builder toBuilder()

Returns a builder for the table object.

Returns
TypeDescription
TableInfo.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides