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) |
Long |
getCreationTime()
Returns the time when this table was created, in milliseconds since the epoch.
|
<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.
|
String |
getSelfLink()
Returns an URL that can be used to access the resource again.
|
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()
@BetaApi public Map<String,String> getLabels()
Unstable, because labels are experimental.
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 © 2018 Google. All rights reserved.