Tabnine Logo
IgniteInternalCache.containsKey
Code IndexAdd Tabnine to your IDE (free)

How to use
containsKey
method
in
org.apache.ignite.internal.processors.cache.IgniteInternalCache

Best Java code snippets using org.apache.ignite.internal.processors.cache.IgniteInternalCache.containsKey (Showing top 12 results out of 315)

origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean containsKeys(Collection keys) {
  return delegate.get().containsKey(transform(keys));
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean containsKey(K key) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  if (isAsync()) {
    setFuture(delegate.containsKeyAsync(key));
    return false;
  }
  else
    return delegate.containsKey(key);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean containsKey(Object key) {
  return delegate.get().containsKey(keyTransformer.transform(key));
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public boolean containsKey(K key) {
  if (isAsync()) {
    setFuture(delegate.containsKeyAsync(key));
    return false;
  }
  else
    return delegate.containsKey(key);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean containsKey(K key) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.containsKey(key);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

@Override public <K> boolean containsKey(String cacheName, K key) {
  return ctx.cache().cache(cacheName).containsKey(key);
}
origin: apache/ignite

if (separated && (cache == null || !cache.containsKey(new GridCacheSetHeaderKey(dsName)))) {
  cacheName += "#" + dsType.name() + "_" + dsName;
origin: apache/ignite

/**
 * Success if explicit tx doesn't fail.
 *
 * @param cache Cache instance.
 * @throws Exception If failed.
 */
protected void checkStartTxSuccess(final IgniteInternalCache<Object, Object> cache) throws Exception {
  try (final GridNearTxLocal tx = CU.txStartInternal(cache.context(), cache, PESSIMISTIC, REPEATABLE_READ)) {
    assert tx != null;
    sleepForTxFailure();
    cache.put("key", "val");
    tx.commit();
  }
  assert cache.containsKey("key");
  cache.clear();
}
origin: apache/ignite

long jobPrepare = U.currentTimeMillis();
if (jobs.containsKey(jobId) || jobMetaCache().containsKey(jobId))
  throw new IgniteCheckedException("Failed to submit job. Job with the same ID already exists: " + jobId);
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public boolean containsKey(K key) {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.containsKey(key);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

@Override public <K> boolean containsKey(String cacheName, K key) {
  return ctx.cache().cache(cacheName).containsKey(key);
}
origin: org.apache.ignite/ignite-core

if (separated && (cache == null || !cache.containsKey(new GridCacheSetHeaderKey(dsName)))) {
  cacheName += "#" + dsType.name() + "_" + dsName;
org.apache.ignite.internal.processors.cacheIgniteInternalCachecontainsKey

Popular methods of IgniteInternalCache

  • context
  • get
    Retrieves value mapped to the specified key from cache. Value will only be returned if its entry pas
  • affinity
    Gets affinity service to provide information about data partitioning and distribution.
  • configuration
    Gets configuration bean for this cache.
  • getAndPut
    Stores given key-value pair in cache. If filters are provided, then entries will be stored in cache
  • getAndPutIfAbsent
    Stores given key-value pair in cache only if cache had no previous mapping for it. If cache previous
  • invoke
  • invokeAsync
  • put
    Stores given key-value pair in cache. If filters are provided, then entries will be stored in cache
  • size
  • cache
    Gets base cache for this projection.
  • clear
    Clears key on all nodes that store it's data. That is, caches are cleared on remote nodes and local
  • cache,
  • clear,
  • clearLocallyAll,
  • isEmpty,
  • isIgfsDataCache,
  • keySet,
  • localEntries,
  • localPeek,
  • lock

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Runner (org.openjdk.jmh.runner)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now