public final class TimePartitioning
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
Constructor and Description |
---|
TimePartitioning() |
Modifier and Type | Method and Description |
---|---|
TimePartitioning |
clone() |
java.lang.Long |
getExpirationMs()
[Optional] Number of milliseconds for which to keep the storage for partitions in the table.
|
java.lang.String |
getField()
[Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either
'_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type.
|
java.lang.Boolean |
getRequirePartitionFilter() |
java.lang.String |
getType()
[Required] The only type supported is DAY, which will generate one partition per day.
|
TimePartitioning |
set(java.lang.String fieldName,
java.lang.Object value) |
TimePartitioning |
setExpirationMs(java.lang.Long expirationMs)
[Optional] Number of milliseconds for which to keep the storage for partitions in the table.
|
TimePartitioning |
setField(java.lang.String field)
[Beta] [Optional] If not set, the table is partitioned by pseudo column, referenced via either
'_PARTITIONTIME' as TIMESTAMP type, or '_PARTITIONDATE' as DATE type.
|
TimePartitioning |
setRequirePartitionFilter(java.lang.Boolean requirePartitionFilter) |
TimePartitioning |
setType(java.lang.String type)
[Required] The only type supported is DAY, which will generate one partition per day.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Long getExpirationMs()
null
for nonepublic TimePartitioning setExpirationMs(java.lang.Long expirationMs)
expirationMs
- expirationMs or null
for nonepublic java.lang.String getField()
null
for nonepublic TimePartitioning setField(java.lang.String field)
field
- field or null
for nonepublic java.lang.Boolean getRequirePartitionFilter()
null
for nonepublic TimePartitioning setRequirePartitionFilter(java.lang.Boolean requirePartitionFilter)
requirePartitionFilter
- requirePartitionFilter or null
for nonepublic java.lang.String getType()
null
for nonepublic TimePartitioning setType(java.lang.String type)
type
- type or null
for nonepublic TimePartitioning set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public TimePartitioning clone()
clone
in class com.google.api.client.json.GenericJson