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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Table() |
Modifier and Type | Method and Description |
---|---|
Table |
clone() |
byte[] |
decodeMaxStaleness()
[Optional] Max staleness of data that could be returned when table or materialized view is
queried (formatted as Google SQL Interval type).
|
Table |
encodeMaxStaleness(byte[] maxStaleness)
[Optional] Max staleness of data that could be returned when table or materialized view is
queried (formatted as Google SQL Interval type).
|
BigLakeConfiguration |
getBiglakeConfiguration()
[Optional] Specifies the configuration of a BigLake managed table.
|
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 |
getDefaultRoundingMode()
[Output-only] The default rounding mode 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.
|
String |
getMaxStaleness()
[Optional] Max staleness of data that could be returned when table or materialized view is
queried (formatted as Google SQL Interval type).
|
ModelDefinition |
getModel()
[Output-only, Beta] Present iff this table represents a ML model.
|
Long |
getNumActiveLogicalBytes()
[Output-only] Number of logical bytes that are less than 90 days old.
|
Long |
getNumActivePhysicalBytes()
[Output-only] Number of physical bytes less than 90 days old.
|
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 |
getNumLongTermLogicalBytes()
[Output-only] Number of logical bytes that are more than 90 days old.
|
Long |
getNumLongTermPhysicalBytes()
[Output-only] Number of physical bytes more than 90 days old.
|
Long |
getNumPartitions()
[Output-only] The number of partitions present in the table or materialized view.
|
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.
|
Long |
getNumTimeTravelPhysicalBytes()
[Output-only] Number of physical bytes used by time travel storage (deleted or changed data).
|
Long |
getNumTotalLogicalBytes()
[Output-only] Total number of logical bytes in the table or materialized view.
|
Long |
getNumTotalPhysicalBytes()
[Output-only] The physical size of this table in bytes.
|
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.
|
Map<String,String> |
getResourceTags()
[Optional] The tags associated with this table.
|
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.
|
TableConstraints |
getTableConstraints()
[Optional] The table constraints on the table.
|
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 |
setBiglakeConfiguration(BigLakeConfiguration biglakeConfiguration)
[Optional] Specifies the configuration of a BigLake managed table.
|
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 |
setDefaultRoundingMode(String defaultRoundingMode)
[Output-only] The default rounding mode 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 |
setMaxStaleness(String maxStaleness)
[Optional] Max staleness of data that could be returned when table or materialized view is
queried (formatted as Google SQL Interval type).
|
Table |
setModel(ModelDefinition model)
[Output-only, Beta] Present iff this table represents a ML model.
|
Table |
setNumActiveLogicalBytes(Long numActiveLogicalBytes)
[Output-only] Number of logical bytes that are less than 90 days old.
|
Table |
setNumActivePhysicalBytes(Long numActivePhysicalBytes)
[Output-only] Number of physical bytes less than 90 days old.
|
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 |
setNumLongTermLogicalBytes(Long numLongTermLogicalBytes)
[Output-only] Number of logical bytes that are more than 90 days old.
|
Table |
setNumLongTermPhysicalBytes(Long numLongTermPhysicalBytes)
[Output-only] Number of physical bytes more than 90 days old.
|
Table |
setNumPartitions(Long numPartitions)
[Output-only] The number of partitions present in the table or materialized view.
|
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 |
setNumTimeTravelPhysicalBytes(Long numTimeTravelPhysicalBytes)
[Output-only] Number of physical bytes used by time travel storage (deleted or changed data).
|
Table |
setNumTotalLogicalBytes(Long numTotalLogicalBytes)
[Output-only] Total number of logical bytes in the table or materialized view.
|
Table |
setNumTotalPhysicalBytes(Long numTotalPhysicalBytes)
[Output-only] The physical size of this table in bytes.
|
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 |
setResourceTags(Map<String,String> resourceTags)
[Optional] The tags associated with this table.
|
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 |
setTableConstraints(TableConstraints tableConstraints)
[Optional] The table constraints on the table.
|
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 BigLakeConfiguration getBiglakeConfiguration()
null
for nonepublic Table setBiglakeConfiguration(BigLakeConfiguration biglakeConfiguration)
biglakeConfiguration
- biglakeConfiguration or null
for nonepublic 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 getDefaultRoundingMode()
null
for nonepublic Table setDefaultRoundingMode(String defaultRoundingMode)
defaultRoundingMode
- defaultRoundingMode 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 String getMaxStaleness()
null
for nonedecodeMaxStaleness()
public byte[] decodeMaxStaleness()
null
for nonegetMaxStaleness()
public Table setMaxStaleness(String maxStaleness)
maxStaleness
- maxStaleness or null
for none#encodeMaxStaleness()
public Table encodeMaxStaleness(byte[] maxStaleness)
The value is encoded Base64 or {@code null} for none.
public ModelDefinition getModel()
null
for nonepublic Table setModel(ModelDefinition model)
model
- model or null
for nonepublic Long getNumActiveLogicalBytes()
null
for nonepublic Table setNumActiveLogicalBytes(Long numActiveLogicalBytes)
numActiveLogicalBytes
- numActiveLogicalBytes or null
for nonepublic Long getNumActivePhysicalBytes()
null
for nonepublic Table setNumActivePhysicalBytes(Long numActivePhysicalBytes)
numActivePhysicalBytes
- numActivePhysicalBytes 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 getNumLongTermLogicalBytes()
null
for nonepublic Table setNumLongTermLogicalBytes(Long numLongTermLogicalBytes)
numLongTermLogicalBytes
- numLongTermLogicalBytes or null
for nonepublic Long getNumLongTermPhysicalBytes()
null
for nonepublic Table setNumLongTermPhysicalBytes(Long numLongTermPhysicalBytes)
numLongTermPhysicalBytes
- numLongTermPhysicalBytes or null
for nonepublic Long getNumPartitions()
null
for nonepublic Table setNumPartitions(Long numPartitions)
numPartitions
- numPartitions 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 Long getNumTimeTravelPhysicalBytes()
null
for nonepublic Table setNumTimeTravelPhysicalBytes(Long numTimeTravelPhysicalBytes)
numTimeTravelPhysicalBytes
- numTimeTravelPhysicalBytes or null
for nonepublic Long getNumTotalLogicalBytes()
null
for nonepublic Table setNumTotalLogicalBytes(Long numTotalLogicalBytes)
numTotalLogicalBytes
- numTotalLogicalBytes or null
for nonepublic Long getNumTotalPhysicalBytes()
null
for nonepublic Table setNumTotalPhysicalBytes(Long numTotalPhysicalBytes)
numTotalPhysicalBytes
- numTotalPhysicalBytes 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 Map<String,String> getResourceTags()
null
for nonepublic Table setResourceTags(Map<String,String> resourceTags)
resourceTags
- resourceTags or null
for nonepublic 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 TableConstraints getTableConstraints()
null
for nonepublic Table setTableConstraints(TableConstraints tableConstraints)
tableConstraints
- tableConstraints 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.GenericJson
public Table clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.