public static final class CreateMaterializedViewRequest.Options extends Object
COLLECTION_NAME: Name of a collection which is to contain the newly
created view. If the collection provided is non-existent, the collection
will be automatically created. If empty, then the newly created table
will be a top-level table.
TTL: Sets
the TTL of
the table specified in tableName.
PERSIST: If true, then the materialized view specified in
tableName will be persisted and will not expire unless a ttl is specified. If false, then the materialized view will
be an in-memory table and will expire unless a ttl is specified
otherwise.
Supported values:
The default value is FALSE.
REFRESH_METHOD: Method by which the join can be refreshed when the data
in underlying member tables have changed.
Supported values:
MANUAL:
Refresh only occurs when manually requested by calling GPUdb.alterTable(AlterTableRequest) with an 'action' of
'refresh'
ON_QUERY: For future use.
ON_CHANGE: If possible, incrementally refresh (refresh just those
records added) whenever an insert, update, delete or refresh of input
table is done. A full refresh is done if an incremental refresh is not
possible.
PERIODIC: Refresh table periodically at rate specified by refresh_period
MANUAL.
REFRESH_PERIOD: When refresh_method is periodic,
specifies the period in seconds at which refresh occurs
REFRESH_START_TIME: When refresh_method is periodic,
specifies the first time at which a refresh is to be done. Value is a
datetime string with format 'YYYY-MM-DD HH:MM:SS'.
Map.
A set of string constants for the parameter options.| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_NAME
Name of a collection which is to contain the newly created view.
|
static String |
FALSE |
static String |
MANUAL
Refresh only occurs when manually requested by calling
GPUdb.alterTable(AlterTableRequest) with an 'action' of
'refresh' |
static String |
ON_CHANGE
If possible, incrementally refresh (refresh just those records
added) whenever an insert, update, delete or refresh of input table
is done.
|
static String |
ON_QUERY
For future use.
|
static String |
PERIODIC
Refresh table periodically at rate specified by
refresh_period |
static String |
PERSIST
If
true, then the materialized view specified in tableName will be persisted and will not expire unless a ttl is specified. |
static String |
REFRESH_METHOD
Method by which the join can be refreshed when the data in
underlying member tables have changed.
|
static String |
REFRESH_PERIOD
When
refresh_method is periodic, specifies the
period in seconds at which refresh occurs |
static String |
REFRESH_START_TIME
When
refresh_method is periodic, specifies the first
time at which a refresh is to be done. |
static String |
TRUE |
static String |
TTL
Sets the TTL of the table specified in
tableName. |
public static final String COLLECTION_NAME
public static final String TTL
tableName.public static final String PERSIST
true, then the materialized view specified in tableName will be persisted and will not expire unless a ttl is specified. If false, then the materialized view
will be an in-memory table and will expire unless a ttl is
specified otherwise.
Supported values:
The default value is FALSE.public static final String TRUE
public static final String FALSE
public static final String REFRESH_METHOD
MANUAL: Refresh only occurs when manually requested by calling
GPUdb.alterTable(AlterTableRequest) with an
'action' of 'refresh'
ON_QUERY: For future use.
ON_CHANGE: If possible, incrementally refresh (refresh just those
records added) whenever an insert, update, delete or refresh of
input table is done. A full refresh is done if an incremental
refresh is not possible.
PERIODIC: Refresh table periodically at rate specified by refresh_period
MANUAL.public static final String MANUAL
GPUdb.alterTable(AlterTableRequest) with an 'action' of
'refresh'public static final String ON_QUERY
public static final String ON_CHANGE
public static final String PERIODIC
refresh_periodpublic static final String REFRESH_PERIOD
refresh_method is periodic, specifies the
period in seconds at which refresh occurspublic static final String REFRESH_START_TIME
refresh_method is periodic, specifies the first
time at which a refresh is to be done. Value is a datetime string
with format 'YYYY-MM-DD HH:MM:SS'.Copyright © 2019. All rights reserved.