/** {@inheritDoc} */ @Override public Map getAllOutTx(Set keys) throws IgniteCheckedException { return delegate.get().getAllOutTx((Set<?>)transform(keys)); }
/** {@inheritDoc} */ @Override public Map<K, V> getAllOutTx(Set<? extends K> keys) { IgniteInternalCache<K, V> delegate = getDelegateSafe(); try { if (isAsync()) { setFuture(delegate.getAllOutTxAsync(keys)); return null; } else return delegate.getAllOutTx(keys); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Override public Map<K, V> getAllOutTx(Set<? extends K> keys) { try { if (isAsync()) { setFuture(delegate.getAllOutTxAsync(keys)); return null; } else return delegate.getAllOutTx(keys); } catch (IgniteCheckedException | IgniteException e) { throw cacheException(e); } }
/** {@inheritDoc} */ @Nullable @Override public Map<K, V> getAllOutTx(Set<? extends K> keys) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.getAllOutTx(keys); } finally { gate.leave(prev); } }
/** * List child files for specified file ID possibly skipping existing transaction. * * @param fileId File to list child files for. * @param skipTx Whether to skip existing transaction. * @return Directory listing for the specified file.* * @throws IgniteCheckedException If failed. */ private Map<String, IgfsListingEntry> directoryListing(IgniteUuid fileId, boolean skipTx) throws IgniteCheckedException { assert fileId != null; IgfsEntryInfo info = skipTx ? id2InfoPrj.getAllOutTx(Collections.singleton(fileId)).get(fileId) : getInfo(fileId); return info == null ? Collections.<String, IgfsListingEntry>emptyMap() : info.listing(); }
/** * List child files for specified file ID possibly skipping existing transaction. * * @param fileId File to list child files for. * @param skipTx Whether to skip existing transaction. * @return Directory listing for the specified file.* * @throws IgniteCheckedException If failed. */ private Map<String, IgfsListingEntry> directoryListing(IgniteUuid fileId, boolean skipTx) throws IgniteCheckedException { assert fileId != null; IgfsEntryInfo info = skipTx ? id2InfoPrj.getAllOutTx(Collections.singleton(fileId)).get(fileId) : getInfo(fileId); return info == null ? Collections.<String, IgfsListingEntry>emptyMap() : info.listing(); }
/** {@inheritDoc} */ @Nullable @Override public Map<K, V> getAllOutTx(Set<? extends K> keys) throws IgniteCheckedException { CacheOperationContext prev = gate.enter(opCtx); try { return delegate.getAllOutTx(keys); } finally { gate.leave(prev); } }