public final class MaterializedViewDefinition 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 |
---|
MaterializedViewDefinition() |
Modifier and Type | Method and Description |
---|---|
MaterializedViewDefinition |
clone() |
byte[] |
decodeMaxStaleness()
[Optional] Max staleness of data that could be returned when materizlized view is queried
(formatted as Google SQL Interval type).
|
MaterializedViewDefinition |
encodeMaxStaleness(byte[] maxStaleness)
[Optional] Max staleness of data that could be returned when materizlized view is queried
(formatted as Google SQL Interval type).
|
Boolean |
getEnableRefresh()
[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base
table is updated.
|
Long |
getLastRefreshTime()
[Output-only] [TrustedTester] The time when this materialized view was last modified, in
milliseconds since the epoch.
|
String |
getMaxStaleness()
[Optional] Max staleness of data that could be returned when materizlized view is queried
(formatted as Google SQL Interval type).
|
String |
getQuery()
[Required] A query whose result is persisted.
|
Long |
getRefreshIntervalMs()
[Optional] [TrustedTester] The maximum frequency at which this materialized view will be
refreshed.
|
MaterializedViewDefinition |
set(String fieldName,
Object value) |
MaterializedViewDefinition |
setEnableRefresh(Boolean enableRefresh)
[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base
table is updated.
|
MaterializedViewDefinition |
setLastRefreshTime(Long lastRefreshTime)
[Output-only] [TrustedTester] The time when this materialized view was last modified, in
milliseconds since the epoch.
|
MaterializedViewDefinition |
setMaxStaleness(String maxStaleness)
[Optional] Max staleness of data that could be returned when materizlized view is queried
(formatted as Google SQL Interval type).
|
MaterializedViewDefinition |
setQuery(String query)
[Required] A query whose result is persisted.
|
MaterializedViewDefinition |
setRefreshIntervalMs(Long refreshIntervalMs)
[Optional] [TrustedTester] The maximum frequency at which this materialized view will be
refreshed.
|
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 Boolean getEnableRefresh()
null
for nonepublic MaterializedViewDefinition setEnableRefresh(Boolean enableRefresh)
enableRefresh
- enableRefresh or null
for nonepublic Long getLastRefreshTime()
null
for nonepublic MaterializedViewDefinition setLastRefreshTime(Long lastRefreshTime)
lastRefreshTime
- lastRefreshTime or null
for nonepublic String getMaxStaleness()
null
for nonedecodeMaxStaleness()
public byte[] decodeMaxStaleness()
null
for nonegetMaxStaleness()
public MaterializedViewDefinition setMaxStaleness(String maxStaleness)
maxStaleness
- maxStaleness or null
for none#encodeMaxStaleness()
public MaterializedViewDefinition encodeMaxStaleness(byte[] maxStaleness)
The value is encoded Base64 or {@code null} for none.
public String getQuery()
null
for nonepublic MaterializedViewDefinition setQuery(String query)
query
- query or null
for nonepublic Long getRefreshIntervalMs()
null
for nonepublic MaterializedViewDefinition setRefreshIntervalMs(Long refreshIntervalMs)
refreshIntervalMs
- refreshIntervalMs or null
for nonepublic MaterializedViewDefinition set(String fieldName, Object value)
set
in class GenericJson
public MaterializedViewDefinition clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.