public class TableInfo extends Object implements Serializable
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.Modifier and Type | Class and Description |
---|---|
static class |
TableInfo.Builder
A builder for
TableInfo objects. |
Modifier and Type | Method and 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> |
getDefinition()
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 |
getNumBytes()
Returns the size of this table in bytes
|
Long |
getNumLongTermBytes()
Returns the number of bytes considered "long-term storage" for reduced billing purposes.
|
BigInteger |
getNumRows()
Returns the number of rows of data in this table
|
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 a
TableInfo object given table identity and definition. |
static TableInfo |
of(TableId tableId,
TableDefinition definition)
Returns a
TableInfo object given table identity and definition. |
TableInfo.Builder |
toBuilder()
Returns a builder for the table object.
|
String |
toString() |
public String getEtag()
public String getGeneratedId()
public String getSelfLink()
public TableId getTableId()
public String getFriendlyName()
public String getDescription()
public Long getCreationTime()
public Long getExpirationTime()
public Long getLastModifiedTime()
public EncryptionConfiguration getEncryptionConfiguration()
public <T extends TableDefinition> T getDefinition()
public Long getNumBytes()
public Long getNumLongTermBytes()
public BigInteger getNumRows()
@BetaApi public Map<String,String> getLabels()
Unstable, because labels are experimental.
public Boolean getRequirePartitionFilter()
public String getDefaultCollation()
public CloneDefinition getCloneDefinition()
public TableConstraints getTableConstraints()
public TableInfo.Builder toBuilder()
public static TableInfo.Builder newBuilder(TableId tableId, TableDefinition definition)
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.public static TableInfo of(TableId tableId, TableDefinition definition)
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.Copyright © 2023 Google LLC. All rights reserved.