public class TimeStampedHashMap<A,B> extends Object implements scala.collection.mutable.Map<A,B>, Logging
scala.collection.mutable.Map.WithDefault<A,B>
scala.collection.MapLike.DefaultKeySet, scala.collection.MapLike.DefaultValuesIterable, scala.collection.MapLike.FilteredKeys, scala.collection.MapLike.MappedValues<C>
scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B>
scala.collection.TraversableLike.WithFilter
scala.collection.TraversableOnce.BufferedCanBuildFrom<A,Coll extends scala.collection.TraversableOnce<Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<A>
Constructor and Description |
---|
TimeStampedHashMap(boolean updateTimeStampOnGet) |
Modifier and Type | Method and Description |
---|---|
B |
apply(A key) |
void |
clearOldValues(long threshTime)
Removes old key-value pairs that have timestamp earlier than `threshTime`.
|
void |
clearOldValues(long threshTime,
scala.Function2<A,B,scala.runtime.BoxedUnit> f) |
scala.collection.mutable.Map<A,B> |
empty() |
scala.collection.mutable.Map<A,B> |
filter(scala.Function1<scala.Tuple2<A,B>,Object> p) |
<U> void |
foreach(scala.Function1<scala.Tuple2<A,B>,U> f) |
scala.Option<B> |
get(A key) |
java.util.Set<java.util.Map.Entry<A,TimeStampedValue<B>>> |
getEntrySet() |
scala.Option<Object> |
getTimestamp(A key) |
scala.Option<TimeStampedValue<B>> |
getTimeStampedValue(A key) |
scala.collection.Iterator<scala.Tuple2<A,B>> |
iterator() |
void |
putAll(scala.collection.immutable.Map<A,B> map) |
scala.Option<B> |
putIfAbsent(A key,
B value) |
int |
size() |
scala.collection.immutable.Map<A,B> |
toMap() |
void |
update(A key,
B value) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$minus, $minus, $minus$eq, $minus$minus, $plus, $plus, $plus$eq, $plus$plus, clear, clone, getOrElseUpdate, newBuilder, parCombiner, put, remove, result, retain, transform, updated
addString, contains, default, filterKeys, filterNot, getOrElse, isDefinedAt, isEmpty, keys, keySet, keysIterator, mapValues, stringPrefix, toBuffer, toSeq, toString, values, valuesIterator
andThen$mcDD$sp, andThen$mcDF$sp, andThen$mcDI$sp, andThen$mcDJ$sp, andThen$mcFD$sp, andThen$mcFF$sp, andThen$mcFI$sp, andThen$mcFJ$sp, andThen$mcID$sp, andThen$mcIF$sp, andThen$mcII$sp, andThen$mcIJ$sp, andThen$mcJD$sp, andThen$mcJF$sp, andThen$mcJI$sp, andThen$mcJJ$sp, andThen$mcVD$sp, andThen$mcVF$sp, andThen$mcVI$sp, andThen$mcVJ$sp, andThen$mcZD$sp, andThen$mcZF$sp, andThen$mcZI$sp, andThen$mcZJ$sp, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, compose$mcDD$sp, compose$mcDF$sp, compose$mcDI$sp, compose$mcDJ$sp, compose$mcFD$sp, compose$mcFF$sp, compose$mcFI$sp, compose$mcFJ$sp, compose$mcID$sp, compose$mcIF$sp, compose$mcII$sp, compose$mcIJ$sp, compose$mcJD$sp, compose$mcJF$sp, compose$mcJI$sp, compose$mcJJ$sp, compose$mcVD$sp, compose$mcVF$sp, compose$mcVI$sp, compose$mcVJ$sp, compose$mcZD$sp, compose$mcZF$sp, compose$mcZI$sp, compose$mcZJ$sp
canEqual, copyToArray, drop, dropRight, exists, find, foldRight, forall, grouped, head, reduceRight, sameElements, slice, sliding, sliding, take, takeRight, takeWhile, thisCollection, toCollection, toIterable, toIterator, toStream, view, view, zip, zipAll, zipWithIndex
$plus$plus, $plus$plus$colon, $plus$plus$colon, collect, dropWhile, flatMap, groupBy, hasDefiniteSize, headOption, init, inits, isTraversableAgain, last, lastOption, map, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, span, splitAt, tail, tails, to, toTraversable, withFilter
$colon$bslash, $div$colon, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldLeft, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRightOption, reversed, sum, toArray, toIndexedSeq, toList, toMap, toSet, toVector
mapResult, sizeHint, sizeHint, sizeHint, sizeHintBounded
scala$collection$mutable$Cloneable$$super$clone
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public scala.collection.Iterator<scala.Tuple2<A,B>> iterator()
iterator
in interface scala.collection.GenIterableLike<scala.Tuple2<A,B>,scala.collection.mutable.Map<A,B>>
iterator
in interface scala.collection.IterableLike<scala.Tuple2<A,B>,scala.collection.mutable.Map<A,B>>
iterator
in interface scala.collection.MapLike<A,B,scala.collection.mutable.Map<A,B>>
public java.util.Set<java.util.Map.Entry<A,TimeStampedValue<B>>> getEntrySet()
public int size()
public <U> void foreach(scala.Function1<scala.Tuple2<A,B>,U> f)
foreach
in interface scala.collection.generic.FilterMonadic<scala.Tuple2<A,B>,scala.collection.mutable.Map<A,B>>
foreach
in interface scala.collection.generic.GenericTraversableTemplate<scala.Tuple2<A,B>,scala.collection.GenIterable>
foreach
in interface scala.collection.GenTraversableLike<scala.Tuple2<A,B>,scala.collection.mutable.Map<A,B>>
foreach
in interface scala.collection.GenTraversableOnce<scala.Tuple2<A,B>>
foreach
in interface scala.collection.IterableLike<scala.Tuple2<A,B>,scala.collection.mutable.Map<A,B>>
foreach
in interface scala.collection.TraversableLike<scala.Tuple2<A,B>,scala.collection.mutable.Map<A,B>>
foreach
in interface scala.collection.TraversableOnce<scala.Tuple2<A,B>>
public void clearOldValues(long threshTime, scala.Function2<A,B,scala.runtime.BoxedUnit> f)
public void clearOldValues(long threshTime)
public scala.Option<TimeStampedValue<B>> getTimeStampedValue(A key)
public scala.Option<Object> getTimestamp(A key)