congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
F.t
Code IndexAdd Tabnine to your IDE (free)

How to use
t
method
in
org.gridgain.grid.util.typedef.F

Best Java code snippets using org.gridgain.grid.util.typedef.F.t (Showing top 20 results out of 315)

origin: org.gridgain/gridgain-core

  @Override public GridBiTuple<V, GridCacheVersion> apply(V v) {
    return F.t(v, ver);
  }
}));
origin: org.gridgain/gridgain-core

/**
 * Swaps values.
 *
 * @return New tuple with swapped values.
 */
public GridBiTuple<V2, V1> swap() {
  return F.t(val2, val1);
}
origin: org.gridgain/gridgain-core

/**
 * @return Current value and stamp.
 */
public GridBiTuple<T, S> get() {
  return F.t(val, stamp);
}
origin: org.gridgain/gridgain-core

/**
 * @param type Event type.
 * @param topVer Topology version.
 * @param node Node.
 * @param topSnapshot Topology snapshot.
 */
void addEvent(int type, long topVer, GridNode node, Collection<GridNode> topSnapshot) {
  assert node != null;
  evts.add(F.t(type, topVer, node, topSnapshot));
}
origin: org.gridgain/gridgain-core

/**
 * Add key to request.
 *
 * @param key Key to evict.
 * @param ver Entry version.
 * @param near {@code true} if key should be evicted from near cache.
 */
void addKey(K key, GridCacheVersion ver, boolean near) {
  assert key != null;
  assert ver != null;
  entries.add(F.t(key, ver, near));
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public GridFuture<GridCacheReturn<V>> putxAsync0(K key, V val, @Nullable GridCacheEntryEx<K, V> cached,
  long ttl, GridPredicate<GridCacheEntry<K, V>>[] filter) {
  return putAllAsync(F.t(key, val), true, cached, ttl, filter);
}
origin: org.gridgain/gridgain-core

/**
 * @param mode Call mode.
 * @param job Job.
 */
private T7(GridClosureCallMode mode, Callable<R> job) {
  super(U.peerDeployAware(job));
  t = F.t(mode, job);
}
origin: org.gridgain/gridgain-core

/**
 * @param entry Entry.
 * @param updRes Entry update result.
 * @param entries All entries.
 */
private void addDeleted(GridDhtCacheEntry<K, V> entry, GridCacheUpdateAtomicResult<K, V> updRes,
  Collection<GridDhtCacheEntry<K, V>> entries) {
  if (updRes.removeVersion() != null) {
    if (deleted == null)
      deleted = new ArrayList<>(entries.size());
    deleted.add(F.t(entry, updRes.removeVersion()));
  }
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public GridFuture<V> putAsync(K key, V val, @Nullable GridCacheEntryEx<K, V> cached, long ttl,
  GridPredicate<GridCacheEntry<K, V>>[] filter) {
  return putAllAsync(F.t(key, val), true, cached, ttl, filter).
    chain((GridClosure<GridFuture<GridCacheReturn<V>>, V>) RET2VAL);
}
origin: org.gridgain/gridgain-core

/**
 * Gracefully stops worker by adding STOP_INFO to queue.
 */
private void stop() {
  delReqs.offer(F.t(new GridFutureAdapter<>(ggfsCtx.kernalContext()), stopInfo));
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public GridFuture<Boolean> putxAsync(K key, V val, @Nullable GridCacheEntryEx<K, V> cached,
  long ttl, GridPredicate<GridCacheEntry<K, V>>[] filter) {
  return putAllAsync(F.t(key, val), false, cached, ttl, filter)
    .chain((GridClosure<GridFuture<GridCacheReturn<V>>, Boolean>)RET2FLAG);
}
origin: org.gridgain/gridgain-ggfs

/** {@inheritDoc} */
@Nullable @Override public GridBiTuple<Long, Long> reduce(List<GridComputeJobResult> results) throws GridException {
  long used = 0;
  long max = 0;
  for (GridComputeJobResult res : results) {
    GridBiTuple<Long, Long> data = res.getData();
    if (data != null) {
      used += data.get1();
      max += data.get2();
    }
  }
  return F.t(used, max);
}
origin: org.gridgain/gridgain-core

/**
 * @param key Key to read from swap storage.
 * @return Value from swap storage.
 * @throws GridException In case of any errors.
 */
@Nullable private GridTuple<V> peekSwap(K key) throws GridException {
  GridCacheSwapEntry<V> e = ctx.swap().read(key);
  return e != null ? F.t(e.value()) : null;
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public boolean putx(K key, V val, @Nullable GridCacheEntryEx<K, V> cached, long ttl,
  GridPredicate<GridCacheEntry<K, V>>[] filter) throws GridException {
  return putAllAsync0(F.t(key, val), null, null, false, cached, ttl, filter).get().success();
}
origin: org.gridgain/gridgain-ggfs

  @Nullable @Override public GridBiTuple<Long, Long> execute() throws GridException {
    GridGgfs ggfs = ((GridKernal)g).context().ggfs().ggfs(ggfsName);
    if (ggfs == null)
      return F.t(0L, 0L);
    GridGgfsMetrics metrics = ggfs.metrics();
    long loc = metrics.localSpaceSize();
    return F.t(loc, metrics.maxSpaceSize());
  }
});
origin: org.gridgain/gridgain-core

  @Override public void apply(UUID nodeId, GridCacheDgcRequest<K, V> req) {
    if (log.isDebugEnabled())
      log.debug("Received DGC request [rmtNodeId=" + nodeId + ", req=" + req + ']');
    reqWorker.addDgcRequest(F.t(nodeId, req));
  }
};
origin: org.gridgain/gridgain-core

/**
 * @param key Key to read from persistent store.
 * @return Value from persistent store.
 * @throws GridException In case of any errors.
 */
@Nullable private GridTuple<V> peekDb(K key) throws GridException {
  V val = ctx.store().loadFromStore(ctx.tm().localTxx(), key);
  return val != null ? F.t(val) : null;
}
origin: org.gridgain/gridgain-core

  @Override public void apply(UUID nodeId, GridCacheDgcResponse<K, V> res) {
    if (log.isDebugEnabled())
      log.debug("Received DGC response [rmtNodeId=" + nodeId + ", res=" + res + ']');
    resWorker.addDgcResponse(F.t(nodeId, res));
  }
};
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public boolean putx(K key, V val, GridPredicate<GridCacheEntry<K, V>>[] filter)
  throws GridException {
  return putAllAsync0(F.t(key, val), null, null, false, null, -1, filter).get().success();
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public void finishUnmarshal(GridCacheContext<K, V> ctx, ClassLoader ldr) throws GridException {
  super.finishUnmarshal(ctx, ldr);
  if (ownedValsBytes != null && ownedVals == null) {
    ownedVals = new HashMap<>();
    for (byte[] bytes : ownedValsBytes) {
      GridTuple4<K, GridCacheVersion, byte[], Boolean> tup = ctx.marshaller().unmarshal(bytes, ldr);
      V val = tup.get4() ? (V)tup.get3() : ctx.marshaller().<V>unmarshal(tup.get3(), ldr);
      ownedVals.put(tup.get1(), F.t(tup.get2(), val, tup.get4() ? null : tup.get3()));
    }
  }
}
org.gridgain.grid.util.typedefFt

Popular methods of F

  • eq
  • isEmpty
  • viewReadOnly
  • addIfAbsent
  • asList
  • concat
  • first
  • firstEntry
  • forEach
  • identity
  • node2id
  • nodeIds
  • node2id,
  • nodeIds,
  • sumInt,
  • transform,
  • view,
  • alwaysFalse,
  • alwaysTrue,
  • and,
  • asArray

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now