public final class Table extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Table() |
Modifier and Type | Method and Description |
---|---|
Table |
clone() |
CloneDefinition |
getCloneDefinition()
[Output-only] Clone definition.
|
Clustering |
getClustering()
[Beta] Clustering specification for the table.
|
Long |
getCreationTime()
[Output-only] The time when this table was created, in milliseconds since the epoch.
|
String |
getDefaultCollation()
[Output-only] The default collation of the table.
|
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.
|
MaterializedViewDefinition |
getMaterializedView()
[Optional] Materialized view definition.
|
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] [TrustedTester] 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()
[TrustedTester] Range partitioning specification for this table.
|
Boolean |
getRequirePartitionFilter()
[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.
|
SnapshotDefinition |
getSnapshotDefinition()
[Output-only] Snapshot definition.
|
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 |
setCloneDefinition(CloneDefinition cloneDefinition)
[Output-only] Clone definition.
|
Table |
setClustering(Clustering clustering)
[Beta] Clustering specification for the table.
|
Table |
setCreationTime(Long creationTime)
[Output-only] The time when this table was created, in milliseconds since the epoch.
|
Table |
setDefaultCollation(String defaultCollation)
[Output-only] The default collation of the table.
|
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 |
setMaterializedView(MaterializedViewDefinition materializedView)
[Optional] Materialized view definition.
|
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] [TrustedTester] 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)
[TrustedTester] Range partitioning specification for this table.
|
Table |
setRequirePartitionFilter(Boolean requirePartitionFilter)
[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 |
setSnapshotDefinition(SnapshotDefinition snapshotDefinition)
[Output-only] Snapshot definition.
|
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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public CloneDefinition getCloneDefinition()
null
for nonepublic Table setCloneDefinition(CloneDefinition cloneDefinition)
cloneDefinition
- cloneDefinition or null
for nonepublic 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 getDefaultCollation()
null
for nonepublic Table setDefaultCollation(String defaultCollation)
defaultCollation
- defaultCollation 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 MaterializedViewDefinition getMaterializedView()
null
for nonepublic Table setMaterializedView(MaterializedViewDefinition materializedView)
materializedView
- materializedView 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
.
[ 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 SnapshotDefinition getSnapshotDefinition()
null
for nonepublic Table setSnapshotDefinition(SnapshotDefinition snapshotDefinition)
snapshotDefinition
- snapshotDefinition 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 GenericJson
public Table clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.