Giriş
Açıklaması şöyle
When the CREATE TABLE command is executed, the name of the cache is generated with the following format- SQL_{SCHEMA_NAME}_{TABLE}. Use the CACHE_NAME parameter to override the default name.
Örnek
Şöyle yaparız. Burada CACHE_NAME olarak TradeStatsCache belirtiliyor
CREATE TABLE IF NOT EXISTS PRODSCHEMA.TRADESTATS
(
TRADERECORDCREATIONDATE VARCHAR(100),
PRODUCTTYPE VARCHAR(100),
PRODUCTSUBTYPE VARCHAR(100),
TRADETYPE VARCHAR(100),
TOTALIMPACTEDTRADES BIGINT,
TOTALTRADEOPENEXCEPTION BIGINT,
TOTALTRADECOUNT BIGINT,
UPDATEDAT TIMESTAMP,
PRIMARY KEY (TRADERECORDCREATIONDATE,PRODUCTTYPE,PRODUCTSUBTYPE,TRADETYPE)
) WITH "template=outputDataCacheTemplate,
CACHE_NAME=TradeStatsCache,
AFFINITY_KEY=TRADERECORDCREATIONDATE,
CACHE_GROUP=TRADE_METADATA_AGGREGATES,
KEY_TYPE=com.abc.entities.trade.TradeStatsEntityKey,
VALUE_TYPE=com.abc.entities.trade.TradeStatsEntity";
Hiç yorum yok:
Yorum Gönder