@Override public MapOperation createContainsKeyOperation(String name, Data dataKey) { return getDelegate().createContainsKeyOperation(name, dataKey); }
@Override public MapOperation createContainsKeyOperation(String name, Data dataKey) { return getDelegate().createContainsKeyOperation(name, dataKey); }
@Override protected Operation prepareOperation() { MapOperation operation = getMapOperationProvider(parameters.name) .createContainsKeyOperation(parameters.name, parameters.key); operation.setThreadId(parameters.threadId); return operation; }
@Override protected Operation prepareOperation() { MapOperation operation = getMapOperationProvider(parameters.name) .createContainsKeyOperation(parameters.name, parameters.key); operation.setThreadId(parameters.threadId); return operation; }
boolean containsKeyInternal(Data dataKey, Object objectKey, boolean skipNearCacheLookup) { if (!skipNearCacheLookup && nearCacheEnabled) { Object nearCacheKey = serializeKeys ? dataKey : objectKey; Object cachedValue = getCachedValue(nearCacheKey, false); if (cachedValue != NOT_CACHED) { return cachedValue != null; } } MapOperation operation = operationProvider.createContainsKeyOperation(name, dataKey); operation.setThreadId(ThreadUtil.getThreadId()); int partitionId = partitionService.getPartitionId(dataKey); try { Future future = operationService.invokeOnPartition(SERVICE_NAME, operation, partitionId); return (Boolean) future.get(); } catch (Throwable t) { throw rethrow(t); } }
boolean containsKeyInternal(Data dataKey, Object objectKey, boolean skipNearCacheLookup) { if (!skipNearCacheLookup && nearCacheEnabled) { Object nearCacheKey = serializeKeys ? dataKey : objectKey; Object cachedValue = getCachedValue(nearCacheKey, false); if (cachedValue != NOT_CACHED) { return cachedValue != null; } } MapOperation operation = operationProvider.createContainsKeyOperation(name, dataKey); operation.setThreadId(ThreadUtil.getThreadId()); int partitionId = partitionService.getPartitionId(dataKey); try { Future future = operationService.invokeOnPartition(SERVICE_NAME, operation, partitionId); return (Boolean) future.get(); } catch (Throwable t) { throw rethrow(t); } }
protected boolean containsKeyInternal(Object key) { Data keyData = toDataWithStrategy(key); int partitionId = partitionService.getPartitionId(keyData); MapOperation containsKeyOperation = operationProvider.createContainsKeyOperation(name, keyData); containsKeyOperation.setThreadId(getThreadId()); containsKeyOperation.setServiceName(SERVICE_NAME); try { Future future = operationService.invokeOnPartition(SERVICE_NAME, containsKeyOperation, partitionId); return (Boolean) toObject(future.get()); } catch (Throwable t) { throw rethrow(t); } }
protected boolean containsKeyInternal(Object key) { Data keyData = toDataWithStrategy(key); int partitionId = partitionService.getPartitionId(keyData); MapOperation containsKeyOperation = operationProvider.createContainsKeyOperation(name, keyData); containsKeyOperation.setThreadId(getThreadId()); containsKeyOperation.setServiceName(SERVICE_NAME); try { Future future = operationService.invokeOnPartition(SERVICE_NAME, containsKeyOperation, partitionId); Object object = future.get(); if (statisticsEnabled) { LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider(); localMapStatsProvider.getLocalMapStatsImpl(name).incrementOtherOperations(); } return (Boolean) toObject(object); } catch (Throwable t) { throw rethrow(t); } }