public class StoredCacheData extends Object implements Serializable, CdcCacheEvent
IgnitePageStoreManager. In a nutshell, contains (most importantly)
CacheConfiguration and additional information about cache which is not a part of configuration.
This class is Serializable and is intended to be read-written with JdkMarshaller
in order to be serialization wise agnostic to further additions or removals of fields.| Constructor and Description |
|---|
StoredCacheData(CacheConfiguration<?,?> ccfg)
Constructor.
|
StoredCacheData(StoredCacheData cacheData) |
public StoredCacheData(CacheConfiguration<?,?> ccfg)
ccfg - Cache configuration.public StoredCacheData(StoredCacheData cacheData)
cacheData - Cache data.public void config(CacheConfiguration<?,?> ccfg)
ccfg - Cache configuration.public CacheConfiguration<?,?> config()
public Collection<QueryEntity> queryEntities()
CdcCacheEventQueryEntity.
QueryEntity can be changed by executing DDL on SQL tables.
Note, CacheConfiguration.getQueryEntities() returns initial definition of QueryEntity.queryEntities in interface CdcCacheEventpublic void queryEntities(Collection<QueryEntity> qryEntities)
qryEntities - Query entities.public boolean sql()
true if cache was created with CREATE TABLE.public StoredCacheData sql(boolean sql)
sql - SQL flag - true if cache was created with CREATE TABLE.public GroupKeyEncrypted groupKeyEncrypted()
Null if not encrypted.public void groupKeyEncrypted(GroupKeyEncrypted grpKeyEncrypted)
grpKeyEncrypted - Ciphered encryption key for this cache or cache group.public StoredCacheData cacheConfigurationEnrichment(CacheConfigurationEnrichment ccfgEnrichment)
ccfgEnrichment - Configuration enrichment.public CacheConfigurationEnrichment cacheConfigurationEnrichment()
public boolean hasOldCacheConfigurationFormat()
true if configuration enrichment is available.public StoredCacheData withSplittedCacheConfig(CacheConfigurationSplitter splitter)
splitter - Cache configuration splitter.public StoredCacheData withOldCacheConfig(CacheConfigurationEnricher enricher)
enricher - Cache configuration enricher.public int cacheId()
cacheId in interface CdcCacheEventCacheView.cacheId()public CacheConfiguration<?,?> configuration()
CacheConfiguration.getQueryEntities() value not changed on table schema change.
Current table schema can be obtained by CdcCacheEvent.queryEntities().configuration in interface CdcCacheEvent
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023