/** {@inheritDoc} */ @Override public V2 setValue(@Nullable V2 val) { V2 old = val2; set2(val); return old; }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** * Sets both values in the tuple. * * @param val1 First value. * @param val2 Second value. */ public void set(@Nullable V1 val1, @Nullable V2 val2) { set1(val1); set2(val2); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, Object> t = stash.get(); t.set1(U.readString(in)); t.set2(in.readObject()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, GridCacheContext> t = stash.get(); t.set1(U.readString(in)); t.set2((GridCacheContext)in.readObject()); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, String> t = stash.get(); t.set1(U.readString(in)); t.set2(U.readString(in)); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, String> t = stash.get(); t.set1(U.readString(in)); t.set2(U.readString(in)); }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, Object> t = stash.get(); t.set1(U.readString(in)); t.set2(in.readObject()); }
tup.set2(new LinkedList<Field>());
map.put(nodeId, new IgniteBiTuple<Collection<HadoopInputSplit>, int[]>(null, reducers)); else entry.set2(reducers);
/** * Calculates indexes of WAL segments covered by last checkpoint. * * @return list of indexes or empty list if there are no checkpoints. */ private IgniteBiTuple<Long, Long> calculateWalSegmentsCovered() { IgniteBiTuple<Long, Long> tup = new IgniteBiTuple<>(-1L, -1L); Map.Entry<Long, CheckpointEntry> lastEntry = histMap.lastEntry(); if (lastEntry == null) return tup; Map.Entry<Long, CheckpointEntry> previousEntry = histMap.lowerEntry(lastEntry.getKey()); WALPointer lastWALPointer = lastEntry.getValue().checkpointMark(); long lastIdx = 0; long prevIdx = 0; if (lastWALPointer instanceof FileWALPointer) { lastIdx = ((FileWALPointer)lastWALPointer).index(); if (previousEntry != null) prevIdx = ((FileWALPointer)previousEntry.getValue().checkpointMark()).index(); } tup.set1(prevIdx); tup.set2(lastIdx - 1); return tup; }
a.set2(a.get2() + b.get2()); return a;
/** {@inheritDoc} */ @Override public V2 setValue(@Nullable V2 val) { V2 old = val2; set2(val); return old; }
/** {@inheritDoc} */ @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<GridKernalContext, String> t = stash.get(); t.set1((GridKernalContext)in.readObject()); t.set2(in.readUTF()); }
/** {@inheritDoc} */ @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) @Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { IgniteBiTuple<String, String> t = stash.get(); t.set1(U.readString(in)); t.set2(U.readString(in)); }