Search in sources :

Example 1 with RemoveFromLoadAllOperation

use of com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation in project hazelcast by hazelcast.

the class MapDataSerializerHook method createFactory.

@Override
public DataSerializableFactory createFactory() {
    ConstructorFunction<Integer, IdentifiedDataSerializable>[] constructors = new ConstructorFunction[LEN];
    constructors[PUT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutOperation();
        }
    };
    constructors[GET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new GetOperation();
        }
    };
    constructors[REMOVE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RemoveOperation();
        }
    };
    constructors[PUT_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutBackupOperation();
        }
    };
    constructors[REMOVE_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RemoveBackupOperation();
        }
    };
    constructors[EVICT_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EvictBackupOperation();
        }
    };
    constructors[KEY_SET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapKeySet();
        }
    };
    constructors[VALUES] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapValueCollection();
        }
    };
    constructors[ENTRIES] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapEntries();
        }
    };
    constructors[ENTRY_VIEW] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return (IdentifiedDataSerializable) EntryViews.createSimpleEntryView();
        }
    };
    constructors[QUERY_RESULT_ROW] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new QueryResultRow();
        }
    };
    constructors[QUERY_RESULT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new QueryResult();
        }
    };
    constructors[CONTAINS_KEY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ContainsKeyOperation();
        }
    };
    constructors[KEYS_WITH_CURSOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapKeysWithCursor();
        }
    };
    constructors[ENTRIES_WITH_CURSOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapEntriesWithCursor();
        }
    };
    constructors[SET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new SetOperation();
        }
    };
    constructors[LOAD_MAP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new LoadMapOperation();
        }
    };
    constructors[KEY_LOAD_STATUS] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new KeyLoadStatusOperation();
        }
    };
    constructors[LOAD_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new LoadAllOperation();
        }
    };
    constructors[ENTRY_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EntryBackupOperation();
        }
    };
    constructors[ENTRY_OPERATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EntryOperation();
        }
    };
    constructors[PUT_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutAllOperation();
        }
    };
    constructors[PUT_ALL_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutAllBackupOperation();
        }
    };
    constructors[REMOVE_IF_SAME] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RemoveIfSameOperation();
        }
    };
    constructors[REPLACE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ReplaceOperation();
        }
    };
    constructors[SIZE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapSizeOperation();
        }
    };
    constructors[CLEAR_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ClearBackupOperation();
        }
    };
    constructors[CLEAR_NEAR_CACHE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ClearNearCacheOperation();
        }
    };
    constructors[CLEAR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ClearOperation();
        }
    };
    constructors[DELETE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new DeleteOperation();
        }
    };
    constructors[EVICT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EvictOperation();
        }
    };
    constructors[EVICT_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EvictAllOperation();
        }
    };
    constructors[EVICT_ALL_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EvictAllBackupOperation();
        }
    };
    constructors[GET_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new GetAllOperation();
        }
    };
    constructors[IS_EMPTY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapIsEmptyOperation();
        }
    };
    constructors[MERGE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MergeOperation();
        }
    };
    constructors[IS_PARTITION_LOADED] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new IsPartitionLoadedOperation();
        }
    };
    constructors[PARTITION_WIDE_ENTRY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PartitionWideEntryOperation();
        }
    };
    constructors[PARTITION_WIDE_ENTRY_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PartitionWideEntryBackupOperation();
        }
    };
    constructors[PARTITION_WIDE_PREDICATE_ENTRY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PartitionWideEntryWithPredicateOperation();
        }
    };
    constructors[PARTITION_WIDE_PREDICATE_ENTRY_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PartitionWideEntryWithPredicateBackupOperation();
        }
    };
    constructors[ADD_INDEX] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AddIndexOperation();
        }
    };
    constructors[AWAIT_MAP_FLUSH] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AwaitMapFlushOperation();
        }
    };
    constructors[CONTAINS_VALUE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ContainsValueOperation();
        }
    };
    constructors[GET_ENTRY_VIEW] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new GetEntryViewOperation();
        }
    };
    constructors[FETCH_ENTRIES] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapFetchEntriesOperation();
        }
    };
    constructors[FETCH_KEYS] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapFetchKeysOperation();
        }
    };
    constructors[FLUSH_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapFlushBackupOperation();
        }
    };
    constructors[FLUSH] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapFlushOperation();
        }
    };
    constructors[MULTIPLE_ENTRY_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MultipleEntryBackupOperation();
        }
    };
    constructors[MULTIPLE_ENTRY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MultipleEntryOperation();
        }
    };
    constructors[MULTIPLE_ENTRY_PREDICATE_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MultipleEntryWithPredicateBackupOperation();
        }
    };
    constructors[MULTIPLE_ENTRY_PREDICATE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MultipleEntryWithPredicateOperation();
        }
    };
    constructors[NOTIFY_MAP_FLUSH] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new NotifyMapFlushOperation();
        }
    };
    constructors[PUT_IF_ABSENT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutIfAbsentOperation();
        }
    };
    constructors[PUT_FROM_LOAD_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutFromLoadAllOperation();
        }
    };
    constructors[PUT_FROM_LOAD_ALL_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutFromLoadAllBackupOperation();
        }
    };
    constructors[QUERY_PARTITION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new QueryPartitionOperation();
        }
    };
    constructors[QUERY_OPERATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new QueryOperation();
        }
    };
    constructors[PUT_TRANSIENT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutTransientOperation();
        }
    };
    constructors[REPLACE_IF_SAME] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ReplaceIfSameOperation();
        }
    };
    constructors[TRY_PUT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TryPutOperation();
        }
    };
    constructors[TRY_REMOVE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TryRemoveOperation();
        }
    };
    constructors[TXN_LOCK_AND_GET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnLockAndGetOperation();
        }
    };
    constructors[TXN_DELETE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnDeleteOperation();
        }
    };
    constructors[TXN_PREPARE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnPrepareOperation();
        }
    };
    constructors[TXN_PREPARE_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnPrepareBackupOperation();
        }
    };
    constructors[TXN_ROLLBACK] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnRollbackOperation();
        }
    };
    constructors[TXN_ROLLBACK_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnRollbackBackupOperation();
        }
    };
    constructors[TXN_SET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnSetOperation();
        }
    };
    constructors[TXN_UNLOCK] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnUnlockOperation();
        }
    };
    constructors[TXN_UNLOCK_BACKUP] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TxnUnlockBackupOperation();
        }
    };
    constructors[IS_PARTITION_LOADED_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new IsPartitionLoadedOperationFactory();
        }
    };
    constructors[ADD_INDEX_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AddIndexOperationFactory();
        }
    };
    constructors[CLEAR_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ClearOperationFactory();
        }
    };
    constructors[CONTAINS_VALUE_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ContainsValueOperationFactory();
        }
    };
    constructors[EVICT_ALL_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EvictAllOperationFactory();
        }
    };
    constructors[IS_EMPTY_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new IsEmptyOperationFactory();
        }
    };
    constructors[KEY_LOAD_STATUS_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new KeyLoadStatusOperationFactory();
        }
    };
    constructors[MAP_FLUSH_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapFlushOperationFactory();
        }
    };
    constructors[MAP_GET_ALL_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapGetAllOperationFactory();
        }
    };
    constructors[LOAD_ALL_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapLoadAllOperationFactory();
        }
    };
    constructors[PARTITION_WIDE_ENTRY_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PartitionWideEntryOperationFactory();
        }
    };
    constructors[PARTITION_WIDE_PREDICATE_ENTRY_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PartitionWideEntryWithPredicateOperationFactory();
        }
    };
    constructors[PUT_ALL_PARTITION_AWARE_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutAllPartitionAwareOperationFactory();
        }
    };
    constructors[SIZE_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new SizeOperationFactory();
        }
    };
    constructors[MULTIPLE_ENTRY_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MultipleEntryOperationFactory();
        }
    };
    constructors[ENTRY_EVENT_FILTER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EntryEventFilter();
        }
    };
    constructors[EVENT_LISTENER_FILTER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new EventListenerFilter();
        }
    };
    constructors[PARTITION_LOST_EVENT_FILTER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapPartitionLostEventFilter();
        }
    };
    constructors[NEAR_CACHE_SINGLE_INVALIDATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new SingleNearCacheInvalidation();
        }
    };
    constructors[NEAR_CACHE_BATCH_INVALIDATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new BatchNearCacheInvalidation();
        }
    };
    constructors[ADD_INTERCEPTOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AddInterceptorOperation();
        }
    };
    constructors[MAP_REPLICATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapReplicationOperation();
        }
    };
    constructors[POST_JOIN_MAP_OPERATION] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PostJoinMapOperation();
        }
    };
    constructors[INDEX_INFO] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PostJoinMapOperation.MapIndexInfo.IndexInfo();
        }
    };
    constructors[MAP_INDEX_INFO] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PostJoinMapOperation.MapIndexInfo();
        }
    };
    constructors[INTERCEPTOR_INFO] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PostJoinMapOperation.InterceptorInfo();
        }
    };
    constructors[REMOVE_INTERCEPTOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RemoveInterceptorOperation();
        }
    };
    constructors[QUERY_EVENT_FILTER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new QueryEventFilter();
        }
    };
    constructors[RECORD_INFO] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RecordInfo();
        }
    };
    constructors[RECORD_REPLICATION_INFO] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RecordReplicationInfo();
        }
    };
    constructors[HIGHER_HITS_MERGE_POLICY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new HigherHitsMapMergePolicy();
        }
    };
    constructors[LATEST_UPDATE_MERGE_POLICY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new LatestUpdateMapMergePolicy();
        }
    };
    constructors[PASS_THROUGH_MERGE_POLICY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PassThroughMergePolicy();
        }
    };
    constructors[PUT_IF_ABSENT_MERGE_POLICY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PutIfAbsentMapMergePolicy();
        }
    };
    constructors[UUID_FILTER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new UuidFilter();
        }
    };
    constructors[MAP_TRANSACTION_LOG_RECORD] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapTransactionLogRecord();
        }
    };
    constructors[VERSIONED_VALUE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new VersionedValue();
        }
    };
    constructors[MAP_REPLICATION_STATE_HOLDER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapReplicationStateHolder();
        }
    };
    constructors[WRITE_BEHIND_STATE_HOLDER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new WriteBehindStateHolder();
        }
    };
    constructors[AGGREGATION_RESULT] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AggregationResult();
        }
    };
    constructors[QUERY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new Query();
        }
    };
    constructors[TARGET] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new Target();
        }
    };
    constructors[MAP_INVALIDATION_METADATA] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        @Override
        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapGetInvalidationMetaDataOperation();
        }
    };
    constructors[MAP_INVALIDATION_METADATA_RESPONSE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        @Override
        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapGetInvalidationMetaDataOperation.MetaDataResponse();
        }
    };
    constructors[MAP_NEAR_CACHE_STATE_HOLDER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        @Override
        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapNearCacheStateHolder();
        }
    };
    constructors[MAP_ASSIGN_AND_GET_UUIDS_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        @Override
        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapAssignAndGetUuidsOperationFactory();
        }
    };
    constructors[MAP_ASSIGN_AND_GET_UUIDS] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        @Override
        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MapAssignAndGetUuidsOperation();
        }
    };
    constructors[DESTROY_QUERY_CACHE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new DestroyQueryCacheOperation();
        }
    };
    constructors[MADE_PUBLISHABLE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MadePublishableOperation();
        }
    };
    constructors[MADE_PUBLISHABLE_FACTORY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new MadePublishableOperationFactory();
        }
    };
    constructors[PUBLISHER_CREATE] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new PublisherCreateOperation();
        }
    };
    constructors[READ_AND_RESET_ACCUMULATOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new ReadAndResetAccumulatorOperation();
        }
    };
    constructors[SET_READ_CURSOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new SetReadCursorOperation();
        }
    };
    constructors[ACCUMULATOR_CONSUMER] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new AccumulatorConsumerOperation();
        }
    };
    constructors[LAZY_MAP_ENTRY] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new LazyMapEntry();
        }
    };
    constructors[TRIGGER_LOAD_IF_NEEDED] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new TriggerLoadIfNeededOperation();
        }
    };
    constructors[IS_KEYLOAD_FINISHED] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new IsKeyLoadFinishedOperation();
        }
    };
    constructors[REMOVE_FROM_LOAD_ALL] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return new RemoveFromLoadAllOperation();
        }
    };
    constructors[ENTRY_REMOVING_PROCESSOR] = new ConstructorFunction<Integer, IdentifiedDataSerializable>() {

        public IdentifiedDataSerializable createNew(Integer arg) {
            return EntryRemovingProcessor.ENTRY_REMOVING_PROCESSOR;
        }
    };
    return new ArrayDataSerializableFactory(constructors);
}
Also used : MapGetAllOperationFactory(com.hazelcast.map.impl.operation.MapGetAllOperationFactory) Query(com.hazelcast.map.impl.query.Query) QueryResultRow(com.hazelcast.map.impl.query.QueryResultRow) ClearBackupOperation(com.hazelcast.map.impl.operation.ClearBackupOperation) MapReplicationOperation(com.hazelcast.map.impl.operation.MapReplicationOperation) IsKeyLoadFinishedOperation(com.hazelcast.map.impl.operation.IsKeyLoadFinishedOperation) RemoveFromLoadAllOperation(com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation) KeyLoadStatusOperation(com.hazelcast.map.impl.operation.KeyLoadStatusOperation) SingleNearCacheInvalidation(com.hazelcast.internal.nearcache.impl.invalidation.SingleNearCacheInvalidation) ClearOperationFactory(com.hazelcast.map.impl.operation.ClearOperationFactory) IdentifiedDataSerializable(com.hazelcast.nio.serialization.IdentifiedDataSerializable) MergeOperation(com.hazelcast.map.impl.operation.MergeOperation) TxnRollbackOperation(com.hazelcast.map.impl.tx.TxnRollbackOperation) IsEmptyOperationFactory(com.hazelcast.map.impl.operation.IsEmptyOperationFactory) PassThroughMergePolicy(com.hazelcast.map.merge.PassThroughMergePolicy) MadePublishableOperationFactory(com.hazelcast.map.impl.querycache.subscriber.operation.MadePublishableOperationFactory) RecordInfo(com.hazelcast.map.impl.record.RecordInfo) TxnDeleteOperation(com.hazelcast.map.impl.tx.TxnDeleteOperation) PutFromLoadAllOperation(com.hazelcast.map.impl.operation.PutFromLoadAllOperation) LoadAllOperation(com.hazelcast.map.impl.operation.LoadAllOperation) RemoveFromLoadAllOperation(com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation) MapGetInvalidationMetaDataOperation(com.hazelcast.map.impl.operation.MapGetInvalidationMetaDataOperation) PublisherCreateOperation(com.hazelcast.map.impl.querycache.subscriber.operation.PublisherCreateOperation) MapFlushOperationFactory(com.hazelcast.map.impl.operation.MapFlushOperationFactory) MapAssignAndGetUuidsOperation(com.hazelcast.client.impl.protocol.task.map.MapAssignAndGetUuidsOperation) RecordReplicationInfo(com.hazelcast.map.impl.record.RecordReplicationInfo) AggregationResult(com.hazelcast.map.impl.query.AggregationResult) PutAllOperation(com.hazelcast.map.impl.operation.PutAllOperation) WriteBehindStateHolder(com.hazelcast.map.impl.operation.WriteBehindStateHolder) AccumulatorConsumerOperation(com.hazelcast.map.impl.operation.AccumulatorConsumerOperation) SetReadCursorOperation(com.hazelcast.map.impl.querycache.subscriber.operation.SetReadCursorOperation) MultipleEntryWithPredicateBackupOperation(com.hazelcast.map.impl.operation.MultipleEntryWithPredicateBackupOperation) MapEntriesWithCursor(com.hazelcast.map.impl.iterator.MapEntriesWithCursor) PutFromLoadAllOperation(com.hazelcast.map.impl.operation.PutFromLoadAllOperation) QueryResult(com.hazelcast.map.impl.query.QueryResult) ReplaceIfSameOperation(com.hazelcast.map.impl.operation.ReplaceIfSameOperation) UuidFilter(com.hazelcast.map.impl.nearcache.invalidation.UuidFilter) Target(com.hazelcast.map.impl.query.Target) PartitionWideEntryBackupOperation(com.hazelcast.map.impl.operation.PartitionWideEntryBackupOperation) EntryBackupOperation(com.hazelcast.map.impl.operation.EntryBackupOperation) MultipleEntryBackupOperation(com.hazelcast.map.impl.operation.MultipleEntryBackupOperation) PartitionWideEntryBackupOperation(com.hazelcast.map.impl.operation.PartitionWideEntryBackupOperation) PutIfAbsentMapMergePolicy(com.hazelcast.map.merge.PutIfAbsentMapMergePolicy) IsPartitionLoadedOperation(com.hazelcast.map.impl.operation.IsPartitionLoadedOperation) RemoveInterceptorOperation(com.hazelcast.map.impl.operation.RemoveInterceptorOperation) HigherHitsMapMergePolicy(com.hazelcast.map.merge.HigherHitsMapMergePolicy) AwaitMapFlushOperation(com.hazelcast.map.impl.operation.AwaitMapFlushOperation) RemoveIfSameOperation(com.hazelcast.map.impl.operation.RemoveIfSameOperation) PartitionWideEntryOperation(com.hazelcast.map.impl.operation.PartitionWideEntryOperation) MapKeysWithCursor(com.hazelcast.map.impl.iterator.MapKeysWithCursor) MapAssignAndGetUuidsOperationFactory(com.hazelcast.client.impl.protocol.task.map.MapAssignAndGetUuidsOperationFactory) AddIndexOperation(com.hazelcast.map.impl.operation.AddIndexOperation) MapFetchKeysOperation(com.hazelcast.map.impl.operation.MapFetchKeysOperation) TxnSetOperation(com.hazelcast.map.impl.tx.TxnSetOperation) MapSizeOperation(com.hazelcast.map.impl.operation.MapSizeOperation) EvictAllBackupOperation(com.hazelcast.map.impl.operation.EvictAllBackupOperation) ClearNearCacheOperation(com.hazelcast.map.impl.operation.ClearNearCacheOperation) EvictOperation(com.hazelcast.map.impl.operation.EvictOperation) ContainsValueOperation(com.hazelcast.map.impl.operation.ContainsValueOperation) PutAllPartitionAwareOperationFactory(com.hazelcast.map.impl.operation.PutAllPartitionAwareOperationFactory) AddInterceptorOperation(com.hazelcast.map.impl.operation.AddInterceptorOperation) ContainsKeyOperation(com.hazelcast.map.impl.operation.ContainsKeyOperation) TxnLockAndGetOperation(com.hazelcast.map.impl.tx.TxnLockAndGetOperation) GetOperation(com.hazelcast.map.impl.operation.GetOperation) SizeOperationFactory(com.hazelcast.map.impl.operation.SizeOperationFactory) BatchNearCacheInvalidation(com.hazelcast.internal.nearcache.impl.invalidation.BatchNearCacheInvalidation) MapFlushOperation(com.hazelcast.map.impl.operation.MapFlushOperation) NotifyMapFlushOperation(com.hazelcast.map.impl.operation.NotifyMapFlushOperation) AwaitMapFlushOperation(com.hazelcast.map.impl.operation.AwaitMapFlushOperation) TxnUnlockOperation(com.hazelcast.map.impl.tx.TxnUnlockOperation) MapFetchEntriesOperation(com.hazelcast.map.impl.operation.MapFetchEntriesOperation) DeleteOperation(com.hazelcast.map.impl.operation.DeleteOperation) TxnDeleteOperation(com.hazelcast.map.impl.tx.TxnDeleteOperation) TxnPrepareOperation(com.hazelcast.map.impl.tx.TxnPrepareOperation) ReadAndResetAccumulatorOperation(com.hazelcast.map.impl.querycache.subscriber.operation.ReadAndResetAccumulatorOperation) EntryOperation(com.hazelcast.map.impl.operation.EntryOperation) MultipleEntryOperation(com.hazelcast.map.impl.operation.MultipleEntryOperation) PartitionWideEntryOperation(com.hazelcast.map.impl.operation.PartitionWideEntryOperation) MultipleEntryBackupOperation(com.hazelcast.map.impl.operation.MultipleEntryBackupOperation) KeyLoadStatusOperationFactory(com.hazelcast.map.impl.operation.KeyLoadStatusOperationFactory) MapNearCacheStateHolder(com.hazelcast.map.impl.operation.MapNearCacheStateHolder) VersionedValue(com.hazelcast.map.impl.tx.VersionedValue) PartitionWideEntryWithPredicateBackupOperation(com.hazelcast.map.impl.operation.PartitionWideEntryWithPredicateBackupOperation) TxnUnlockBackupOperation(com.hazelcast.map.impl.tx.TxnUnlockBackupOperation) MadePublishableOperation(com.hazelcast.map.impl.querycache.subscriber.operation.MadePublishableOperation) TryRemoveOperation(com.hazelcast.map.impl.operation.TryRemoveOperation) RemoveOperation(com.hazelcast.map.impl.operation.RemoveOperation) PartitionWideEntryOperationFactory(com.hazelcast.map.impl.operation.PartitionWideEntryOperationFactory) LatestUpdateMapMergePolicy(com.hazelcast.map.merge.LatestUpdateMapMergePolicy) MapTransactionLogRecord(com.hazelcast.map.impl.tx.MapTransactionLogRecord) TxnRollbackBackupOperation(com.hazelcast.map.impl.tx.TxnRollbackBackupOperation) RemoveBackupOperation(com.hazelcast.map.impl.operation.RemoveBackupOperation) PutAllBackupOperation(com.hazelcast.map.impl.operation.PutAllBackupOperation) GetAllOperation(com.hazelcast.map.impl.operation.GetAllOperation) MultipleEntryWithPredicateOperation(com.hazelcast.map.impl.operation.MultipleEntryWithPredicateOperation) ContainsValueOperationFactory(com.hazelcast.map.impl.operation.ContainsValueOperationFactory) MultipleEntryOperationFactory(com.hazelcast.map.impl.operation.MultipleEntryOperationFactory) EvictAllOperation(com.hazelcast.map.impl.operation.EvictAllOperation) TxnPrepareBackupOperation(com.hazelcast.map.impl.tx.TxnPrepareBackupOperation) TriggerLoadIfNeededOperation(com.hazelcast.map.impl.operation.TriggerLoadIfNeededOperation) IsPartitionLoadedOperationFactory(com.hazelcast.map.impl.operation.IsPartitionLoadedOperationFactory) ReplaceOperation(com.hazelcast.map.impl.operation.ReplaceOperation) QueryEventFilter(com.hazelcast.map.impl.query.QueryEventFilter) TryRemoveOperation(com.hazelcast.map.impl.operation.TryRemoveOperation) PutFromLoadAllBackupOperation(com.hazelcast.map.impl.operation.PutFromLoadAllBackupOperation) DestroyQueryCacheOperation(com.hazelcast.map.impl.querycache.subscriber.operation.DestroyQueryCacheOperation) PutBackupOperation(com.hazelcast.map.impl.operation.PutBackupOperation) PartitionWideEntryWithPredicateOperation(com.hazelcast.map.impl.operation.PartitionWideEntryWithPredicateOperation) PutTransientOperation(com.hazelcast.map.impl.operation.PutTransientOperation) EvictBackupOperation(com.hazelcast.map.impl.operation.EvictBackupOperation) TryPutOperation(com.hazelcast.map.impl.operation.TryPutOperation) PostJoinMapOperation(com.hazelcast.map.impl.operation.PostJoinMapOperation) QueryOperation(com.hazelcast.map.impl.query.QueryOperation) NotifyMapFlushOperation(com.hazelcast.map.impl.operation.NotifyMapFlushOperation) PutIfAbsentOperation(com.hazelcast.map.impl.operation.PutIfAbsentOperation) SetOperation(com.hazelcast.map.impl.operation.SetOperation) TxnSetOperation(com.hazelcast.map.impl.tx.TxnSetOperation) PutOperation(com.hazelcast.map.impl.operation.PutOperation) TryPutOperation(com.hazelcast.map.impl.operation.TryPutOperation) PartitionWideEntryWithPredicateOperationFactory(com.hazelcast.map.impl.operation.PartitionWideEntryWithPredicateOperationFactory) MapReplicationStateHolder(com.hazelcast.map.impl.operation.MapReplicationStateHolder) MapFlushBackupOperation(com.hazelcast.map.impl.operation.MapFlushBackupOperation) EvictAllOperationFactory(com.hazelcast.map.impl.operation.EvictAllOperationFactory) QueryPartitionOperation(com.hazelcast.map.impl.query.QueryPartitionOperation) ClearOperation(com.hazelcast.map.impl.operation.ClearOperation) MapIsEmptyOperation(com.hazelcast.map.impl.operation.MapIsEmptyOperation) MultipleEntryOperation(com.hazelcast.map.impl.operation.MultipleEntryOperation) ConstructorFunction(com.hazelcast.util.ConstructorFunction) GetEntryViewOperation(com.hazelcast.map.impl.operation.GetEntryViewOperation) TxnLockAndGetOperation(com.hazelcast.map.impl.tx.TxnLockAndGetOperation) MapLoadAllOperationFactory(com.hazelcast.map.impl.operation.MapLoadAllOperationFactory) AddIndexOperationFactory(com.hazelcast.map.impl.operation.AddIndexOperationFactory) LoadMapOperation(com.hazelcast.map.impl.operation.LoadMapOperation) ArrayDataSerializableFactory(com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)

Example 2 with RemoveFromLoadAllOperation

use of com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation in project hazelcast by hazelcast.

the class BasicRecordStoreLoader method removeExistingKeys.

private Future removeExistingKeys(List<Data> keys) {
    OperationService operationService = mapServiceContext.getNodeEngine().getOperationService();
    final Operation operation = new RemoveFromLoadAllOperation(name, keys);
    return operationService.invokeOnPartition(MapService.SERVICE_NAME, operation, partitionId);
}
Also used : RemoveFromLoadAllOperation(com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation) OperationService(com.hazelcast.spi.OperationService) MapOperation(com.hazelcast.map.impl.operation.MapOperation) Operation(com.hazelcast.spi.Operation) RemoveFromLoadAllOperation(com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation)

Aggregations

RemoveFromLoadAllOperation (com.hazelcast.map.impl.operation.RemoveFromLoadAllOperation)2 MapAssignAndGetUuidsOperation (com.hazelcast.client.impl.protocol.task.map.MapAssignAndGetUuidsOperation)1 MapAssignAndGetUuidsOperationFactory (com.hazelcast.client.impl.protocol.task.map.MapAssignAndGetUuidsOperationFactory)1 BatchNearCacheInvalidation (com.hazelcast.internal.nearcache.impl.invalidation.BatchNearCacheInvalidation)1 SingleNearCacheInvalidation (com.hazelcast.internal.nearcache.impl.invalidation.SingleNearCacheInvalidation)1 ArrayDataSerializableFactory (com.hazelcast.internal.serialization.impl.ArrayDataSerializableFactory)1 MapEntriesWithCursor (com.hazelcast.map.impl.iterator.MapEntriesWithCursor)1 MapKeysWithCursor (com.hazelcast.map.impl.iterator.MapKeysWithCursor)1 UuidFilter (com.hazelcast.map.impl.nearcache.invalidation.UuidFilter)1 AccumulatorConsumerOperation (com.hazelcast.map.impl.operation.AccumulatorConsumerOperation)1 AddIndexOperation (com.hazelcast.map.impl.operation.AddIndexOperation)1 AddIndexOperationFactory (com.hazelcast.map.impl.operation.AddIndexOperationFactory)1 AddInterceptorOperation (com.hazelcast.map.impl.operation.AddInterceptorOperation)1 AwaitMapFlushOperation (com.hazelcast.map.impl.operation.AwaitMapFlushOperation)1 ClearBackupOperation (com.hazelcast.map.impl.operation.ClearBackupOperation)1 ClearNearCacheOperation (com.hazelcast.map.impl.operation.ClearNearCacheOperation)1 ClearOperation (com.hazelcast.map.impl.operation.ClearOperation)1 ClearOperationFactory (com.hazelcast.map.impl.operation.ClearOperationFactory)1 ContainsKeyOperation (com.hazelcast.map.impl.operation.ContainsKeyOperation)1 ContainsValueOperation (com.hazelcast.map.impl.operation.ContainsValueOperation)1