congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IgniteInternalCache.getAll
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/ignite

/**
 * Get several infos.
 *
 * @param ids IDs.
 * @return Infos map.
 * @throws IgniteCheckedException If failed.
 */
private Map<IgniteUuid, IgfsEntryInfo> getInfos(Collection<IgniteUuid> ids) throws IgniteCheckedException {
  return id2InfoPrj.getAll(ids);
}
origin: apache/ignite

/**
 * @param keys Keys.
 * @return Values map.
 */
public Map<K, V> getAll(Collection<? extends K> keys) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync()) {
      setFuture(delegate.getAllAsync(keys));
      return null;
    }
    else
      return delegate.getAll(keys);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

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

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

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

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

/**
 * @param keys Keys.
 * @return Values map.
 */
public Map<K, V> getAll(Collection<? extends K> keys) {
  try {
    if (isAsync()) {
      setFuture(delegate.getAllAsync(keys));
      return null;
    }
    else
      return delegate.getAll(keys);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

Map<IgfsBlockKey, byte[]> vals = dataCachePrj.getAll(F.asList(colocatedKey, key));
origin: apache/ignite

Map<IgfsBlockKey, byte[]> vals = dataCachePrj.getAll(F.asList(colocatedKey, key));
origin: org.apache.ignite/ignite-core

/**
 * Get several infos.
 *
 * @param ids IDs.
 * @return Infos map.
 * @throws IgniteCheckedException If failed.
 */
private Map<IgniteUuid, IgfsEntryInfo> getInfos(Collection<IgniteUuid> ids) throws IgniteCheckedException {
  return id2InfoPrj.getAll(ids);
}
origin: org.apache.ignite/ignite-core

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

Map<IgfsBlockKey, byte[]> vals = dataCachePrj.getAll(F.asList(colocatedKey, key));
origin: org.apache.ignite/ignite-core

Map<IgfsBlockKey, byte[]> vals = dataCachePrj.getAll(F.asList(colocatedKey, key));
org.apache.ignite.internal.processors.cacheIgniteInternalCachegetAll

Javadoc

Retrieves values mapped to the specified keys from cache. Value will only be returned if its entry passed the optional filter provided. Filter check is atomic, and therefore the returned value is guaranteed to be consistent with the filter. If requested key-value pair is not present in the returned map, then it means that its entry did not pass the provided filter or cache has no mapping for the key.

If some value is not present in cache, then it will be looked up from swap storage. If it's not present in swap, or if swap is disabled, and if read-through is allowed, value will be loaded from CacheStore persistent storage via CacheStore#loadAll(Transaction, Collection, org.apache.ignite.lang.IgniteBiInClosure) method.

Transactions This method is transactional and will enlist the entry into ongoing transaction if there is one.

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

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Option (scala)
  • Top 12 Jupyter Notebook extensions
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