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

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

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

origin: apache/ignite

/** {@inheritDoc} */
@Override public Map invokeAll(Map map, Object... args) throws IgniteCheckedException {
  return delegate.get().invokeAll(map, args);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(
  Map<? extends K, ? extends EntryProcessor<K, V, T>> map,
  Object... args) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync()) {
      setFuture(delegate.invokeAllAsync(map, args));
      return null;
    }
    else
      return delegate.invokeAll(map, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys,
  EntryProcessor<K, V, T> entryProcessor,
  Object... args
) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync()) {
      setFuture(delegate.invokeAllAsync(keys, entryProcessor, args));
      return null;
    }
    else
      return delegate.invokeAll(keys, entryProcessor, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public Map invokeAll(Set keys, EntryProcessor entryProcessor, Object... args) throws IgniteCheckedException {
  return delegate.get().invokeAll((Set<?>)transform(keys), entryProcessor, args);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(
  Set<? extends K> keys,
  CacheEntryProcessor<K, V, T> entryProcessor,
  Object... args
) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync()) {
      setFuture(delegate.invokeAllAsync(keys, entryProcessor, args));
      return null;
    }
    else
      return delegate.invokeAll(keys, entryProcessor, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(
  Map<? extends K, ? extends EntryProcessor<K, V, T>> map,
  Object... args) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.invokeAll(map, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys,
  CacheEntryProcessor<K, V, T> entryProcessor,
  Object... args) {
  try {
    if (isAsync()) {
      setFuture(delegate.invokeAllAsync(keys, entryProcessor, args));
      return null;
    }
    else
      return delegate.invokeAll(keys, entryProcessor, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys,
  EntryProcessor<K, V, T> entryProcessor,
  Object... args) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.invokeAll(keys, entryProcessor, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys,
  EntryProcessor<K, V, T> entryProcessor,
  Object... args) {
  try {
    if (isAsync()) {
      setFuture(delegate.invokeAllAsync(keys, entryProcessor, args));
      return null;
    }
    else
      return delegate.invokeAll(keys, entryProcessor, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/**
 * Transfer entry from one directory to another.
 *
 * @param entry Entry to be transferred.
 * @param srcId Source ID.
 * @param srcName Source name.
 * @param destId Destination ID.
 * @param destName Destination name.
 * @throws IgniteCheckedException If failed.
 */
private void transferEntry(IgfsListingEntry entry, IgniteUuid srcId, String srcName,
  IgniteUuid destId, String destName) throws IgniteCheckedException {
  validTxState(true);
  if (F.eq(srcId, destId))
    id2InfoPrj.invoke(srcId, new IgfsMetaDirectoryListingRenameProcessor(srcName, destName));
  else {
    Map<IgniteUuid, EntryProcessor<IgniteUuid, IgfsEntryInfo, Void>> procMap = new HashMap<>();
    procMap.put(srcId, new IgfsMetaDirectoryListingRemoveProcessor(srcName, entry.fileId()));
    procMap.put(destId, new IgfsMetaDirectoryListingAddProcessor(destName, entry));
    id2InfoPrj.invokeAll(procMap);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(
  Map<? extends K, ? extends EntryProcessor<K, V, T>> map,
  Object... args) {
  try {
    if (isAsync()) {
      setFuture(delegate.invokeAllAsync(map, args));
      return null;
    }
    else
      return delegate.invokeAll(map, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

Map<Object, EntryProcessorResult> invokeRes = ((IgniteInternalCache)id2InfoPrj).invokeAll(procMap);
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(
  Map<? extends K, ? extends EntryProcessor<K, V, T>> map,
  Object... args) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.invokeAll(map, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public <T> Map<K, EntryProcessorResult<T>> invokeAll(Set<? extends K> keys,
  EntryProcessor<K, V, T> entryProcessor,
  Object... args) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.invokeAll(keys, entryProcessor, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/**
 * Transfer entry from one directory to another.
 *
 * @param entry Entry to be transferred.
 * @param srcId Source ID.
 * @param srcName Source name.
 * @param destId Destination ID.
 * @param destName Destination name.
 * @throws IgniteCheckedException If failed.
 */
private void transferEntry(IgfsListingEntry entry, IgniteUuid srcId, String srcName,
  IgniteUuid destId, String destName) throws IgniteCheckedException {
  validTxState(true);
  if (F.eq(srcId, destId))
    id2InfoPrj.invoke(srcId, new IgfsMetaDirectoryListingRenameProcessor(srcName, destName));
  else {
    Map<IgniteUuid, EntryProcessor<IgniteUuid, IgfsEntryInfo, Void>> procMap = new HashMap<>();
    procMap.put(srcId, new IgfsMetaDirectoryListingRemoveProcessor(srcName, entry.fileId()));
    procMap.put(destId, new IgfsMetaDirectoryListingAddProcessor(destName, entry));
    id2InfoPrj.invokeAll(procMap);
  }
}
origin: org.apache.ignite/ignite-core

Map<Object, EntryProcessorResult> invokeRes = ((IgniteInternalCache)id2InfoPrj).invokeAll(procMap);
org.apache.ignite.internal.processors.cacheIgniteInternalCacheinvokeAll

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

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JTable (javax.swing)
  • Github Copilot alternatives
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