target.apidocs.com.google.api.services.bigquery.model.MaterializedView.html Maven / Gradle / Ivy
MaterializedView (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery.model
Class MaterializedView
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.bigquery.model.MaterializedView
-
public final class MaterializedView
extends com.google.api.client.json.GenericJson
A materialized view considered for a query job.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
MaterializedView()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
MaterializedView
clone()
Boolean
getChosen()
Whether the materialized view is chosen for the query.
Long
getEstimatedBytesSaved()
If present, specifies a best-effort estimation of the bytes saved by using the materialized
view rather than its base tables.
String
getRejectedReason()
If present, specifies the reason why the materialized view was not chosen for the query.
TableReference
getTableReference()
The candidate materialized view.
MaterializedView
set(String fieldName,
Object value)
MaterializedView
setChosen(Boolean chosen)
Whether the materialized view is chosen for the query.
MaterializedView
setEstimatedBytesSaved(Long estimatedBytesSaved)
If present, specifies a best-effort estimation of the bytes saved by using the materialized
view rather than its base tables.
MaterializedView
setRejectedReason(String rejectedReason)
If present, specifies the reason why the materialized view was not chosen for the query.
MaterializedView
setTableReference(TableReference tableReference)
The candidate materialized view.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getChosen
public Boolean getChosen()
Whether the materialized view is chosen for the query. A materialized view can be chosen to
rewrite multiple parts of the same query. If a materialized view is chosen to rewrite any part
of the query, then this field is true, even if the materialized view was not chosen to rewrite
others parts.
- Returns:
- value or
null
for none
-
setChosen
public MaterializedView setChosen(Boolean chosen)
Whether the materialized view is chosen for the query. A materialized view can be chosen to
rewrite multiple parts of the same query. If a materialized view is chosen to rewrite any part
of the query, then this field is true, even if the materialized view was not chosen to rewrite
others parts.
- Parameters:
chosen
- chosen or null
for none
-
getEstimatedBytesSaved
public Long getEstimatedBytesSaved()
If present, specifies a best-effort estimation of the bytes saved by using the materialized
view rather than its base tables.
- Returns:
- value or
null
for none
-
setEstimatedBytesSaved
public MaterializedView setEstimatedBytesSaved(Long estimatedBytesSaved)
If present, specifies a best-effort estimation of the bytes saved by using the materialized
view rather than its base tables.
- Parameters:
estimatedBytesSaved
- estimatedBytesSaved or null
for none
-
getRejectedReason
public String getRejectedReason()
If present, specifies the reason why the materialized view was not chosen for the query.
- Returns:
- value or
null
for none
-
setRejectedReason
public MaterializedView setRejectedReason(String rejectedReason)
If present, specifies the reason why the materialized view was not chosen for the query.
- Parameters:
rejectedReason
- rejectedReason or null
for none
-
getTableReference
public TableReference getTableReference()
The candidate materialized view.
- Returns:
- value or
null
for none
-
setTableReference
public MaterializedView setTableReference(TableReference tableReference)
The candidate materialized view.
- Parameters:
tableReference
- tableReference or null
for none
-
set
public MaterializedView set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public MaterializedView clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.