public boolean execute(K key, long value) { put(key, value); return true; } };
/** {@inheritDoc} */ public void putAll( Map<? extends K, ? extends Long> map ) { Set<? extends Map.Entry<? extends K,? extends Long>> set = map.entrySet(); for ( Map.Entry<? extends K,? extends Long> entry : set ) { put( entry.getKey(), entry.getValue() ); } }
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NO_ENTRY_VALUE no_entry_value = in.readLong(); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = ( K ) in.readObject(); long val = in.readLong(); put(key, val); } }
public boolean execute(K key, long value) { put(key, value); return true; } };
@Override public boolean execute(K key, long value) { put(key, value); return true; } };
public boolean execute(K key, long value) { put(key, value); return true; } };
public boolean execute(K key, long value) { put(key, value); return true; } };
/** {@inheritDoc} */ public void putAll( Map<? extends K, ? extends Long> map ) { Set<? extends Map.Entry<? extends K,? extends Long>> set = map.entrySet(); for ( Map.Entry<? extends K,? extends Long> entry : set ) { put( entry.getKey(), entry.getValue() ); } }
/** {@inheritDoc} */ @Override public void putAll( Map<? extends K, ? extends Long> map ) { Set<? extends Map.Entry<? extends K,? extends Long>> set = map.entrySet(); for ( Map.Entry<? extends K,? extends Long> entry : set ) { put( entry.getKey(), entry.getValue() ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends K, ? extends Long> map ) { Set<? extends Map.Entry<? extends K,? extends Long>> set = map.entrySet(); for ( Map.Entry<? extends K,? extends Long> entry : set ) { put( entry.getKey(), entry.getValue() ); } }
/** {@inheritDoc} */ public void putAll( Map<? extends K, ? extends Long> map ) { Set<? extends Map.Entry<? extends K,? extends Long>> set = map.entrySet(); for ( Map.Entry<? extends K,? extends Long> entry : set ) { put( entry.getKey(), entry.getValue() ); } }
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NO_ENTRY_VALUE no_entry_value = in.readLong(); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = ( K ) in.readObject(); long val = in.readLong(); put(key, val); } }
@Override public Object visit(Element element, int amount) { long val = elementMap.get(element); if (val < 0) { val = 1L << elementMap.size(); elementMap.put(element,val); } buf[0] |= val; return null; } });
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NO_ENTRY_VALUE no_entry_value = in.readLong(); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = ( K ) in.readObject(); long val = in.readLong(); put(key, val); } }
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NO_ENTRY_VALUE no_entry_value = in.readLong(); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = ( K ) in.readObject(); long val = in.readLong(); put(key, val); } }
@Override @SuppressWarnings("unchecked") public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // VERSION in.readByte(); // SUPER super.readExternal( in ); // NO_ENTRY_VALUE no_entry_value = in.readLong(); // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while (size-- > 0) { //noinspection unchecked K key = ( K ) in.readObject(); long val = in.readLong(); put(key, val); } }
public void add(TimeSeriesCollection tsc) { final long tsMillis = tsc.getTimestamp().getMillis(); timestamps.add(tsMillis); final Set<GroupName> updateGroups = tsc.getGroups(group -> !groups.containsKey(group) || tsMillis > groups.get(group)); updateGroups.forEach(group -> groups.put(group, tsMillis)); }
public void addAll(TscStreamReductor other) { timestamps.addAll(other.timestamps); other.groups.forEachEntry((group, ts) -> { if (groups.get(group) < ts) groups.put(group, ts); return true; }); } }
sampleIdentities.put(sampleInfo.getSampleIdentity().getGuid(), sampleInfo.getSampleIdentity().getSequenceNumber().get());