Package com.hazelcast.map.impl

Examples of com.hazelcast.map.impl.RecordStore


        final InternalPartition partition = partitionService.getPartition(partitionId, false);
        if (!partition.isOwnerOrBackup(thisAddress)) {
            return null;
        }
        final PartitionContainer partitionContainer = mapServiceContext.getPartitionContainer(partitionId);
        final RecordStore recordStore = partitionContainer.getExistingRecordStore(name);
        if (recordStore == null) {
            return null;
        }
        return recordStore.readBackupData(key);
    }
View Full Code Here


    public MapFlushOperation() {
    }

    public void run() {
        RecordStore recordStore = mapService.getMapServiceContext().getRecordStore(getPartitionId(), name);
        recordStore.flush();
    }
View Full Code Here

    public MapValuesOperation() {
    }

    public void run() {
        final MapServiceContext mapServiceContext = mapService.getMapServiceContext();
        final RecordStore recordStore = mapServiceContext.getRecordStore(getPartitionId(), name);
        values = recordStore.valuesData();
        if (mapContainer.getMapConfig().isStatisticsEnabled()) {
            mapServiceContext.getLocalMapStatsProvider()
                    .getLocalMapStatsImpl(name).incrementOtherOperations();
        }
    }
View Full Code Here

    public void run() {
        // near-cache clear will be called multiple times by each clear operation,
        // but it's still preferred to send a separate operation to clear near-cache.
        mapService.getMapServiceContext().getNearCacheProvider().clearNearCache(name);

        final RecordStore recordStore = mapService.getMapServiceContext().getExistingRecordStore(getPartitionId(), name);
        //if there is no recordStore, then there is nothing to clear.
        if (recordStore == null) {
            shouldBackup = false;
            return;
        }

        numberOfClearedEntries = recordStore.clear();
    }
View Full Code Here

        if (keyValueSequence == null || keyValueSequence.isEmpty()) {
            return;
        }
        final int partitionId = getPartitionId();
        final MapService mapService = this.mapService;
        final RecordStore recordStore = mapService.getMapServiceContext().getRecordStore(partitionId, name);
        for (int i = 0; i < keyValueSequence.size(); i += 2) {
            final Data key = keyValueSequence.get(i);
            final Data value = keyValueSequence.get(i + 1);
            final Object object = mapService.getMapServiceContext().toObject(value);
            recordStore.putFromLoad(key, object);
        }
    }
View Full Code Here

    public PartitionCheckIfLoadedOperation() {
    }

    public void run() {
        RecordStore recordStore = mapService.getMapServiceContext().getRecordStore(getPartitionId(), name);
        isFinished = recordStore.isLoaded();
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.map.impl.RecordStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.