congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IgniteInternalCache.removeAll
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/ignite

  @Override public Void call() throws Exception {
    cache.removeAll(keys);
    return null;
  }
});
origin: apache/ignite

/** {@inheritDoc} */
@Override public void removeAll(Set<? extends K> keys) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync())
      setFuture(delegate.removeAllAsync(keys));
    else
      delegate.removeAll(keys);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void removeAll() {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync())
      setFuture(delegate.removeAllAsync());
    else
      delegate.removeAll();
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void removeAll() throws IgniteCheckedException {
  delegate.get().removeAll();
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void removeAll(Set<? extends K> keys) {
  try {
    if (isAsync())
      setFuture(delegate.removeAllAsync(keys));
    else
      delegate.removeAll(keys);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void removeAll(@Nullable Collection keys) throws IgniteCheckedException {
  delegate.get().removeAll(transform(keys));
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void removeAll() {
  try {
    if (isAsync())
      setFuture(delegate.removeAllAsync());
    else
      delegate.removeAll();
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void removeAll(@Nullable Collection<? extends K> keys) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.removeAll(keys);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void removeAll()
  throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.removeAll();
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

  @Override public void run() {
    while (run) {
      TreeMap<Integer, String> vals = generateValues(keys);
      try {
        // Explicit lock.
        cache.lock(vals.firstKey(), 0);
        try {
          // Put or remove.
          if (ThreadLocalRandom.current().nextDouble(1) < 0.65)
            cache.putAll(vals);
          else
            cache.removeAll(vals.keySet());
        }
        catch (IgniteCheckedException e) {
          U.error(log(), "Failed cache operation.", e);
        }
        finally {
          cache.unlock(vals.firstKey());
        }
        U.sleep(100);
      }
      catch (Throwable e){
        U.error(log(), "Failed unlock.", e);
        err = e;
        return;
      }
    }
  }
};
origin: org.apache.ignite/ignite-core

  @Override public Void call() throws Exception {
    cache.removeAll(keys);
    return null;
  }
});
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void removeAll(@Nullable Collection<? extends K> keys) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.removeAll(keys);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void removeAll()
  throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.removeAll();
  }
  finally {
    gate.leave(prev);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCacheremoveAll

Javadoc

Removes mappings from cache.

USE WITH CARE - if your cache has many entries then transaction will quickly become very heavy and slow.

If write-through is enabled, the values will be removed from CacheStore via IgniteDataStreamer.

Transactions This method is not transactional.

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.
  • containsKey
  • 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.
  • size,
  • cache,
  • clear,
  • clearLocallyAll,
  • isEmpty,
  • isIgfsDataCache,
  • keySet,
  • localEntries,
  • localPeek,
  • lock

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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