public abstract static class MaterializedViewDefinition.Builder extends TableDefinition.Builder<MaterializedViewDefinition,MaterializedViewDefinition.Builder>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MaterializedViewDefinition |
build()
Creates a
MaterializedViewDefinition object. |
abstract MaterializedViewDefinition.Builder |
setClustering(Clustering clustering)
Set the clustering configuration for the materialized view.
|
abstract MaterializedViewDefinition.Builder |
setEnableRefresh(Boolean enableRefresh)
Set enable automatic refresh of the materialized view when the base table is updated.
|
abstract MaterializedViewDefinition.Builder |
setQuery(String query)
Sets the query whose result is persisted.
|
abstract MaterializedViewDefinition.Builder |
setRangePartitioning(RangePartitioning rangePartitioning)
Sets the range partitioning configuration for the materialized view.
|
abstract MaterializedViewDefinition.Builder |
setRefreshIntervalMs(Long refreshIntervalMs)
Set a maximum frequency at which this materialized view will be refreshed.
|
abstract MaterializedViewDefinition.Builder |
setSchema(Schema schema)
Sets the table schema.
|
abstract MaterializedViewDefinition.Builder |
setTimePartitioning(TimePartitioning timePartitioning)
Sets the time partitioning configuration for the materialized view.
|
abstract MaterializedViewDefinition.Builder |
setType(TableDefinition.Type type) |
public abstract MaterializedViewDefinition.Builder setQuery(String query)
public abstract MaterializedViewDefinition.Builder setEnableRefresh(Boolean enableRefresh)
public abstract MaterializedViewDefinition.Builder setRefreshIntervalMs(Long refreshIntervalMs)
public abstract MaterializedViewDefinition.Builder setSchema(Schema schema)
setSchema
in class TableDefinition.Builder<MaterializedViewDefinition,MaterializedViewDefinition.Builder>
public abstract MaterializedViewDefinition.Builder setType(TableDefinition.Type type)
setType
in class TableDefinition.Builder<MaterializedViewDefinition,MaterializedViewDefinition.Builder>
public abstract MaterializedViewDefinition.Builder setTimePartitioning(TimePartitioning timePartitioning)
public abstract MaterializedViewDefinition.Builder setRangePartitioning(RangePartitioning rangePartitioning)
public abstract MaterializedViewDefinition.Builder setClustering(Clustering clustering)
public abstract MaterializedViewDefinition build()
MaterializedViewDefinition
object.build
in class TableDefinition.Builder<MaterializedViewDefinition,MaterializedViewDefinition.Builder>
Copyright © 2023 Google LLC. All rights reserved.