public final class Table
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the BigQuery API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Table() |
| Modifier and Type | Method and Description |
|---|---|
Table |
clone() |
Clustering |
getClustering()
[Experimental] Clustering specification for the table.
|
Long |
getCreationTime()
[Output-only] The time when this table was created, in milliseconds since the epoch.
|
String |
getDescription()
[Optional] A user-friendly description of this table.
|
EncryptionConfiguration |
getEncryptionConfiguration()
Custom encryption configuration (e.g., Cloud KMS keys).
|
String |
getEtag()
[Output-only] A hash of the table metadata.
|
Long |
getExpirationTime()
[Optional] The time when this table expires, in milliseconds since the epoch.
|
ExternalDataConfiguration |
getExternalDataConfiguration()
[Optional] Describes the data format, location, and other properties of a table stored outside
of BigQuery.
|
String |
getFriendlyName()
[Optional] A descriptive name for this table.
|
String |
getId()
[Output-only] An opaque ID uniquely identifying the table.
|
String |
getKind()
[Output-only] The type of the resource.
|
Map<String,String> |
getLabels()
The labels associated with this table.
|
BigInteger |
getLastModifiedTime()
[Output-only] The time when this table was last modified, in milliseconds since the epoch.
|
String |
getLocation()
[Output-only] The geographic location where the table resides.
|
ModelDefinition |
getModel()
[Output-only, Beta] Present iff this table represents a ML model.
|
Long |
getNumBytes()
[Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
|
Long |
getNumLongTermBytes()
[Output-only] The number of bytes in the table that are considered "long-term storage".
|
Long |
getNumPhysicalBytes()
[Output-only] [Experimental] The physical size of this table in bytes, excluding any data in
the streaming buffer.
|
BigInteger |
getNumRows()
[Output-only] The number of rows of data in this table, excluding any data in the streaming
buffer.
|
RangePartitioning |
getRangePartitioning()
[Experimental] Range partitioning specification for this table.
|
Boolean |
getRequirePartitionFilter()
[Experimental] [Optional] If set to true, queries over this table require a partition filter
that can be used for partition elimination to be specified.
|
TableSchema |
getSchema()
[Optional] Describes the schema of this table.
|
String |
getSelfLink()
[Output-only] A URL that can be used to access this resource again.
|
Streamingbuffer |
getStreamingBuffer()
[Output-only] Contains information regarding this table's streaming buffer, if one is present.
|
TableReference |
getTableReference()
[Required] Reference describing the ID of this table.
|
TimePartitioning |
getTimePartitioning()
Time-based partitioning specification for this table.
|
String |
getType()
[Output-only] Describes the table type.
|
ViewDefinition |
getView()
[Optional] The view definition.
|
boolean |
isRequirePartitionFilter()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Table |
set(String fieldName,
Object value) |
Table |
setClustering(Clustering clustering)
[Experimental] Clustering specification for the table.
|
Table |
setCreationTime(Long creationTime)
[Output-only] The time when this table was created, in milliseconds since the epoch.
|
Table |
setDescription(String description)
[Optional] A user-friendly description of this table.
|
Table |
setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
Custom encryption configuration (e.g., Cloud KMS keys).
|
Table |
setEtag(String etag)
[Output-only] A hash of the table metadata.
|
Table |
setExpirationTime(Long expirationTime)
[Optional] The time when this table expires, in milliseconds since the epoch.
|
Table |
setExternalDataConfiguration(ExternalDataConfiguration externalDataConfiguration)
[Optional] Describes the data format, location, and other properties of a table stored outside
of BigQuery.
|
Table |
setFriendlyName(String friendlyName)
[Optional] A descriptive name for this table.
|
Table |
setId(String id)
[Output-only] An opaque ID uniquely identifying the table.
|
Table |
setKind(String kind)
[Output-only] The type of the resource.
|
Table |
setLabels(Map<String,String> labels)
The labels associated with this table.
|
Table |
setLastModifiedTime(BigInteger lastModifiedTime)
[Output-only] The time when this table was last modified, in milliseconds since the epoch.
|
Table |
setLocation(String location)
[Output-only] The geographic location where the table resides.
|
Table |
setModel(ModelDefinition model)
[Output-only, Beta] Present iff this table represents a ML model.
|
Table |
setNumBytes(Long numBytes)
[Output-only] The size of this table in bytes, excluding any data in the streaming buffer.
|
Table |
setNumLongTermBytes(Long numLongTermBytes)
[Output-only] The number of bytes in the table that are considered "long-term storage".
|
Table |
setNumPhysicalBytes(Long numPhysicalBytes)
[Output-only] [Experimental] The physical size of this table in bytes, excluding any data in
the streaming buffer.
|
Table |
setNumRows(BigInteger numRows)
[Output-only] The number of rows of data in this table, excluding any data in the streaming
buffer.
|
Table |
setRangePartitioning(RangePartitioning rangePartitioning)
[Experimental] Range partitioning specification for this table.
|
Table |
setRequirePartitionFilter(Boolean requirePartitionFilter)
[Experimental] [Optional] If set to true, queries over this table require a partition filter
that can be used for partition elimination to be specified.
|
Table |
setSchema(TableSchema schema)
[Optional] Describes the schema of this table.
|
Table |
setSelfLink(String selfLink)
[Output-only] A URL that can be used to access this resource again.
|
Table |
setStreamingBuffer(Streamingbuffer streamingBuffer)
[Output-only] Contains information regarding this table's streaming buffer, if one is present.
|
Table |
setTableReference(TableReference tableReference)
[Required] Reference describing the ID of this table.
|
Table |
setTimePartitioning(TimePartitioning timePartitioning)
Time-based partitioning specification for this table.
|
Table |
setType(String type)
[Output-only] Describes the table type.
|
Table |
setView(ViewDefinition view)
[Optional] The view definition.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Clustering getClustering()
null for nonepublic Table setClustering(Clustering clustering)
clustering - clustering or null for nonepublic Long getCreationTime()
null for nonepublic Table setCreationTime(Long creationTime)
creationTime - creationTime or null for nonepublic String getDescription()
null for nonepublic Table setDescription(String description)
description - description or null for nonepublic EncryptionConfiguration getEncryptionConfiguration()
null for nonepublic Table setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
encryptionConfiguration - encryptionConfiguration or null for nonepublic String getEtag()
null for nonepublic Table setEtag(String etag)
etag - etag or null for nonepublic Long getExpirationTime()
null for nonepublic Table setExpirationTime(Long expirationTime)
expirationTime - expirationTime or null for nonepublic ExternalDataConfiguration getExternalDataConfiguration()
null for nonepublic Table setExternalDataConfiguration(ExternalDataConfiguration externalDataConfiguration)
externalDataConfiguration - externalDataConfiguration or null for nonepublic String getFriendlyName()
null for nonepublic Table setFriendlyName(String friendlyName)
friendlyName - friendlyName or null for nonepublic String getId()
null for nonepublic Table setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Table setKind(String kind)
kind - kind or null for nonepublic Map<String,String> getLabels()
null for nonepublic Table setLabels(Map<String,String> labels)
labels - labels or null for nonepublic BigInteger getLastModifiedTime()
null for nonepublic Table setLastModifiedTime(BigInteger lastModifiedTime)
lastModifiedTime - lastModifiedTime or null for nonepublic String getLocation()
null for nonepublic Table setLocation(String location)
location - location or null for nonepublic ModelDefinition getModel()
null for nonepublic Table setModel(ModelDefinition model)
model - model or null for nonepublic Long getNumBytes()
null for nonepublic Table setNumBytes(Long numBytes)
numBytes - numBytes or null for nonepublic Long getNumLongTermBytes()
null for nonepublic Table setNumLongTermBytes(Long numLongTermBytes)
numLongTermBytes - numLongTermBytes or null for nonepublic Long getNumPhysicalBytes()
null for nonepublic Table setNumPhysicalBytes(Long numPhysicalBytes)
numPhysicalBytes - numPhysicalBytes or null for nonepublic BigInteger getNumRows()
null for nonepublic Table setNumRows(BigInteger numRows)
numRows - numRows or null for nonepublic RangePartitioning getRangePartitioning()
null for nonepublic Table setRangePartitioning(RangePartitioning rangePartitioning)
rangePartitioning - rangePartitioning or null for nonepublic Boolean getRequirePartitionFilter()
null for nonepublic Table setRequirePartitionFilter(Boolean requirePartitionFilter)
requirePartitionFilter - requirePartitionFilter or null for nonepublic boolean isRequirePartitionFilter()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
[ Experimental] [Optional] If set to true, queries over this table require a partition filter that [ can be used for partition elimination to be specified.
public TableSchema getSchema()
null for nonepublic Table setSchema(TableSchema schema)
schema - schema or null for nonepublic String getSelfLink()
null for nonepublic Table setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic Streamingbuffer getStreamingBuffer()
null for nonepublic Table setStreamingBuffer(Streamingbuffer streamingBuffer)
streamingBuffer - streamingBuffer or null for nonepublic TableReference getTableReference()
null for nonepublic Table setTableReference(TableReference tableReference)
tableReference - tableReference or null for nonepublic TimePartitioning getTimePartitioning()
null for nonepublic Table setTimePartitioning(TimePartitioning timePartitioning)
timePartitioning - timePartitioning or null for nonepublic String getType()
null for nonepublic Table setType(String type)
type - type or null for nonepublic ViewDefinition getView()
null for nonepublic Table setView(ViewDefinition view)
view - view or null for nonepublic Table set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Table clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.