public MapIndexConfig(MapIndexConfig config) { attribute = config.getAttribute(); ordered = config.isOrdered(); }
public MapIndexConfig(MapIndexConfig config) { attribute = config.getAttribute(); ordered = config.isOrdered(); }
private static void indexes(XmlGenerator gen, List<MapIndexConfig> indexes) { if (indexes.isEmpty()) { return; } gen.open("indexes"); for (MapIndexConfig index : indexes) { gen.node("index", index.getAttribute(), "ordered", index.isOrdered()); } gen.close(); }
private static void mapIndexConfigXmlGenerator(XmlGenerator gen, List<MapIndexConfig> mapIndexConfigs) { if (!mapIndexConfigs.isEmpty()) { gen.open("indexes"); for (MapIndexConfig indexCfg : mapIndexConfigs) { gen.node("index", indexCfg.getAttribute(), "ordered", indexCfg.isOrdered()); } gen.close(); } }
private static void mapIndexConfigXmlGenerator(XmlGenerator gen, List<MapIndexConfig> mapIndexConfigs) { if (!mapIndexConfigs.isEmpty()) { gen.open("indexes"); for (MapIndexConfig indexCfg : mapIndexConfigs) { gen.node("index", indexCfg.getAttribute(), "ordered", indexCfg.isOrdered()); } gen.close(); } }
private static void indexes(XmlGenerator gen, List<MapIndexConfig> indexes) { if (indexes.isEmpty()) { return; } gen.open("indexes"); for (MapIndexConfig index : indexes) { gen.node("index", index.getAttribute(), "ordered", index.isOrdered()); } gen.close(); }
public static void encode(MapIndexConfig config, ClientMessage clientMessage) { clientMessage.set(config.getAttribute()).set(config.isOrdered()); }
public static void encode(MapIndexConfig config, ClientMessage clientMessage) { clientMessage.set(config.getAttribute()).set(config.isOrdered()); }
public static void encode(MapIndexConfig config, ClientMessage clientMessage) { clientMessage.set(config.getAttribute()).set(config.isOrdered()); }
private void initializeIndexes() { for (MapIndexConfig index : mapConfig.getMapIndexConfigs()) { if (index.getAttribute() != null) { addIndex(index.getAttribute(), index.isOrdered()); } } }
private void initializeIndexes() { for (MapIndexConfig index : mapConfig.getMapIndexConfigs()) { if (index.getAttribute() != null) { addIndex(index.getAttribute(), index.isOrdered()); } } }
public AbstractInternalQueryCache(String cacheId, String cacheName, QueryCacheConfig queryCacheConfig, IMap delegate, QueryCacheContext context) { this.cacheId = cacheId; this.cacheName = cacheName; this.queryCacheConfig = queryCacheConfig; this.mapName = delegate.getName(); this.delegate = delegate; this.context = context; this.serializationService = context.getSerializationService(); // We are not using injected index provider since we're not supporting off-heap indexes in CQC due // to threading incompatibility. If we injected the IndexProvider from the MapServiceContext // the EE side would create HD indexes which is undesired. this.indexes = Indexes.newBuilder(serializationService, COPY_ON_READ).build(); this.includeValue = isIncludeValue(); this.partitioningStrategy = getPartitioningStrategy(); this.recordStore = new DefaultQueryCacheRecordStore(serializationService, indexes, queryCacheConfig, getEvictionListener(), extractors); for (MapIndexConfig indexConfig : queryCacheConfig.getIndexConfigs()) { indexes.addOrGetIndex(indexConfig.getAttribute(), indexConfig.isOrdered()); } }
public AbstractInternalQueryCache(String cacheId, String cacheName, QueryCacheConfig queryCacheConfig, IMap delegate, QueryCacheContext context) { this.cacheId = cacheId; this.cacheName = cacheName; this.queryCacheConfig = queryCacheConfig; this.mapName = delegate.getName(); this.delegate = delegate; this.context = context; this.serializationService = context.getSerializationService(); // We are not using injected index provider since we're not supporting off-heap indexes in CQC due // to threading incompatibility. If we injected the IndexProvider from the MapServiceContext // the EE side would create HD indexes which is undesired. this.indexes = Indexes.newBuilder(serializationService, COPY_ON_READ).build(); this.includeValue = isIncludeValue(); this.partitioningStrategy = getPartitioningStrategy(); this.extractors = Extractors.newBuilder(serializationService).build(); this.recordStore = new DefaultQueryCacheRecordStore(serializationService, indexes, queryCacheConfig, getEvictionListener(), extractors); for (MapIndexConfig indexConfig : queryCacheConfig.getIndexConfigs()) { indexes.addOrGetIndex(indexConfig.getAttribute(), indexConfig.isOrdered()); } }