Class: Google::Apis::BigqueryV2::MaterializedViewDefinition
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::MaterializedViewDefinition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Instance Attribute Summary collapse
-
#allow_non_incremental_definition ⇒ Boolean
(also: #allow_non_incremental_definition?)
[Optional] Allow non incremental materialized view definition.
-
#enable_refresh ⇒ Boolean
(also: #enable_refresh?)
[Optional] [TrustedTester] Enable automatic refresh of the materialized view when the base table is updated.
-
#last_refresh_time ⇒ Fixnum
[Output-only] [TrustedTester] The time when this materialized view was last modified, in milliseconds since the epoch.
-
#max_staleness ⇒ String
[Optional] Max staleness of data that could be returned when materizlized view is queried (formatted as Google SQL Interval type).
-
#query ⇒ String
[Required] A query whose result is persisted.
-
#refresh_interval_ms ⇒ Fixnum
[Optional] [TrustedTester] The maximum frequency at which this materialized view will be refreshed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaterializedViewDefinition
constructor
A new instance of MaterializedViewDefinition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaterializedViewDefinition
Returns a new instance of MaterializedViewDefinition.
5239 5240 5241 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5239 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_non_incremental_definition ⇒ Boolean Also known as: allow_non_incremental_definition?
[Optional] Allow non incremental materialized view definition. The default
value is "false".
Corresponds to the JSON property allow_non_incremental_definition
5205 5206 5207 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5205 def allow_non_incremental_definition @allow_non_incremental_definition end |
#enable_refresh ⇒ Boolean Also known as: enable_refresh?
[Optional] [TrustedTester] Enable automatic refresh of the materialized view
when the base table is updated. The default value is "true".
Corresponds to the JSON property enableRefresh
5212 5213 5214 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5212 def enable_refresh @enable_refresh end |
#last_refresh_time ⇒ Fixnum
[Output-only] [TrustedTester] The time when this materialized view was last
modified, in milliseconds since the epoch.
Corresponds to the JSON property lastRefreshTime
5219 5220 5221 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5219 def last_refresh_time @last_refresh_time end |
#max_staleness ⇒ String
[Optional] Max staleness of data that could be returned when materizlized view
is queried (formatted as Google SQL Interval type).
Corresponds to the JSON property maxStaleness
NOTE: Values are automatically base64 encoded/decoded in the client library.
5226 5227 5228 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5226 def max_staleness @max_staleness end |
#query ⇒ String
[Required] A query whose result is persisted.
Corresponds to the JSON property query
5231 5232 5233 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5231 def query @query end |
#refresh_interval_ms ⇒ Fixnum
[Optional] [TrustedTester] The maximum frequency at which this materialized
view will be refreshed. The default value is "1800000" (30 minutes).
Corresponds to the JSON property refreshIntervalMs
5237 5238 5239 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5237 def refresh_interval_ms @refresh_interval_ms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5244 5245 5246 5247 5248 5249 5250 5251 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 5244 def update!(**args) @allow_non_incremental_definition = args[:allow_non_incremental_definition] if args.key?(:allow_non_incremental_definition) @enable_refresh = args[:enable_refresh] if args.key?(:enable_refresh) @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time) @max_staleness = args[:max_staleness] if args.key?(:max_staleness) @query = args[:query] if args.key?(:query) @refresh_interval_ms = args[:refresh_interval_ms] if args.key?(:refresh_interval_ms) end |