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

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

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

origin: apache/ignite

/** {@inheritDoc} */
@Nullable @Override public Object localPeek(
  Object key,
  CachePeekMode[] peekModes
) throws IgniteCheckedException {
  return delegate.get().localPeek(keyTransformer.transform(key), peekModes);
}
origin: apache/ignite

/** {@inheritDoc} */
@Nullable @Override public V localPeek(K key,
  CachePeekMode[] peekModes)
  throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.localPeek(key, peekModes);
  }
  finally {
    gate.leave(prev);
  }
}
origin: apache/ignite

/** {@inheritDoc} */
@Nullable @Override public V localPeek(K key, CachePeekMode... peekModes) {
  IgniteInternalCache<K, V> delegate = getDelegateSafe();
  try {
    return delegate.localPeek(key, peekModes);
  }
  catch (IgniteException | IgniteCheckedException e) {
    throw cacheException(e);
  }
}
origin: apache/ignite

/**
 * Resolves task name by task name hash.
 *
 * @param taskNameHash Task name hash.
 * @return Task name or {@code null} if not found.
 */
public String resolveTaskName(int taskNameHash) {
  if (taskNameHash == 0)
    return null;
  assert ctx.security().enabled();
  try {
    return taskMetaCache().localPeek(
      new GridTaskNameHashKey(taskNameHash), null);
  }
  catch (IgniteCheckedException e) {
    throw new IgniteException(e);
  }
}
origin: apache/ignite

/** @throws Exception If failed. */
@Test
public void testCreate() throws Exception {
  IgfsPath path = path("/file");
  try (IgfsOutputStream os = igfs.create(path, false)) {
    assert os != null;
    IgfsFileImpl info = (IgfsFileImpl)igfs.info(path);
    for (int i = 0; i < nodesCount(); i++) {
      IgfsEntryInfo fileInfo =
        (IgfsEntryInfo)grid(i).cachex(metaCacheName).localPeek(info.fileId(), null);
      assertNotNull(fileInfo);
      assertNotNull(fileInfo.listing());
    }
  }
  finally {
    igfs.delete(path("/"), true);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Nullable @Override public V localPeek(K key, CachePeekMode... peekModes) {
  try {
    return delegate.localPeek(key, peekModes, null);
  }
  catch (IgniteException | IgniteCheckedException e) {
    throw cacheException(e);
  }
}
origin: org.apache.ignite/ignite-core

/** {@inheritDoc} */
@Nullable @Override public V localPeek(K key,
  CachePeekMode[] peekModes,
  @Nullable IgniteCacheExpiryPolicy plc)
  throws IgniteCheckedException {
  CacheOperationContext prev = gate.enter(opCtx);
  try {
    return delegate.localPeek(key, peekModes, plc);
  }
  finally {
    gate.leave(prev);
  }
}
origin: org.apache.ignite/ignite-core

/**
 * Resolves task name by task name hash.
 *
 * @param taskNameHash Task name hash.
 * @return Task name or {@code null} if not found.
 */
public String resolveTaskName(int taskNameHash) {
  if (taskNameHash == 0)
    return null;
  assert ctx.security().enabled();
  try {
    return taskMetaCache().localPeek(
      new GridTaskNameHashKey(taskNameHash), null, null);
  }
  catch (IgniteCheckedException e) {
    throw new IgniteException(e);
  }
}
org.apache.ignite.internal.processors.cacheIgniteInternalCachelocalPeek

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,
  • lock

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best IntelliJ 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