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

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

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

origin: apache/ignite

/** {@inheritDoc} */
@Override public void localLoadCache(
  @Nullable IgniteBiPredicate p,
  @Nullable Object... args
) throws IgniteCheckedException {
  delegate.get().localLoadCache(p, args);
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void localLoadCache(@Nullable IgniteBiPredicate<K, V> p, @Nullable Object... args) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    if (isAsync())
      setFuture(delegate.localLoadCacheAsync(p, args));
    else
      delegate.localLoadCache(p, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void localLoadCache(@Nullable IgniteBiPredicate<K, V> p, @Nullable Object... args) {
  try {
    if (isAsync())
      setFuture(delegate.localLoadCacheAsync(p, args));
    else
      delegate.localLoadCache(p, args);
  }
  catch (IgniteCheckedException | IgniteException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public void localLoadCache(IgniteBiPredicate<K, V> p,
  @Nullable Object[] args) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.localLoadCache(p, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) {
  try {
    assert cache != null : "Failed to get a cache [cacheName=" + cacheName + ", topVer=" + topVer + "]";
    if (plc != null)
      cache = cache.withExpiryPolicy(plc);
    cache.localLoadCache(p, loadArgs);
    return null;
  }
  catch (IgniteCheckedException e) {
    throw U.convertException(e);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Override public void localLoadCache(IgniteBiPredicate<K, V> p,
  @Nullable Object[] args) throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    delegate.localLoadCache(p, args);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Nullable @Override public Object localExecute(@Nullable IgniteInternalCache cache) {
  try {
    assert cache != null : "Failed to get a cache [cacheName=" + cacheName + ", topVer=" + topVer + "]";
    if (plc != null)
      cache = cache.withExpiryPolicy(plc);
    cache.localLoadCache(p, loadArgs);
    return null;
  }
  catch (IgniteCheckedException e) {
    throw U.convertException(e);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCachelocalLoadCache

Javadoc

Delegates to CacheStore#loadCache(IgniteBiInClosure,Object...) method to load state from the underlying persistent storage. The loaded values will then be given to the optionally passed in predicate, and, if the predicate returns true, will be stored in cache. If predicate is null, then all loaded values will be stored in cache.

Note that this method does not receive keys as a parameter, so it is up to CacheStore implementation to provide all the data to be loaded.

This method is not transactional and may end up loading a stale value into cache if another thread has updated the value immediately after it has been loaded. It is mostly useful when pre-loading the cache from underlying data store before start, or for read-only caches.

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
  • getContentResolver (Context)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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