Class MaterializedViewDefinition (2.55.2)
Stay organized with collections
Save and categorize content based on your preferences.
publicabstractclass MaterializedViewDefinitionextendsTableDefinitionInherited Members
Static Methods
newBuilder(String query)
publicstaticMaterializedViewDefinition.BuildernewBuilder(Stringquery)Returns a builder for a BigQuery materialized view definition.
| Parameter | |
|---|---|
| Name | Description |
query |
String the query used to generate the materialized view |
| Returns | |
|---|---|
| Type | Description |
MaterializedViewDefinition.Builder |
|
of(String query)
publicstaticMaterializedViewDefinitionof(Stringquery)Returns a builder for a BigQuery materialized view definition.
| Parameter | |
|---|---|
| Name | Description |
query |
String the query used to generate the materialized view |
| Returns | |
|---|---|
| Type | Description |
MaterializedViewDefinition |
|
Constructors
MaterializedViewDefinition()
publicMaterializedViewDefinition()Methods
getClustering()
publicabstractClusteringgetClustering()Returns the clustering configuration for this table. If null, the table is not
clustered.
| Returns | |
|---|---|
| Type | Description |
Clustering |
|
getEnableRefresh()
publicabstractBooleangetEnableRefresh()Returns enable automatic refresh of the materialized view when the base table is updated. The default value is "true".
| Returns | |
|---|---|
| Type | Description |
Boolean |
|
getLastRefreshTime()
publicabstractLonggetLastRefreshTime()Returns time when this materialized view was last modified, in milliseconds since the epoch.
| Returns | |
|---|---|
| Type | Description |
Long |
|
getQuery()
publicabstractStringgetQuery()Returns a query whose result is persisted.
| Returns | |
|---|---|
| Type | Description |
String |
|
getRangePartitioning()
publicabstractRangePartitioninggetRangePartitioning()Returns the range partitioning configuration for this table. If null, the table is not
range-partitioned.
| Returns | |
|---|---|
| Type | Description |
RangePartitioning |
|
getRefreshIntervalMs()
publicabstractLonggetRefreshIntervalMs()Returns a maximum frequency at which this materialized view will be refreshed. The default value is "1800000" (30 minutes).
| Returns | |
|---|---|
| Type | Description |
Long |
|
getTimePartitioning()
publicabstractTimePartitioninggetTimePartitioning()Returns the time partitioning configuration for this table. If null, the table is not
time-partitioned.
| Returns | |
|---|---|
| Type | Description |
TimePartitioning |
|
toBuilder()
publicabstractMaterializedViewDefinition.BuildertoBuilder()Returns a builder for the MaterializedViewDefinition object.
| Returns | |
|---|---|
| Type | Description |
MaterializedViewDefinition.Builder |
|