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 a partition.
|
java.lang.String |
getField()
[Experimental] [Optional] If not set, the table is partitioned by pseudo column
'_PARTITIONTIME'; if set, the table is partitioned by this field.
|
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 a partition.
|
TimePartitioning |
setField(java.lang.String field)
[Experimental] [Optional] If not set, the table is partitioned by pseudo column
'_PARTITIONTIME'; if set, the table is partitioned by this field.
|
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
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.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