Codota Logo
IgniteInternalCache.containsKey
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now