public interface StringMap<S extends CharSequence> extends it.unimi.dsi.fastutil.objects.Object2LongFunction<CharSequence>, Serializable
String maps represent mappings from strings (actually, any subclass of
to numbers; they can support reverse
mapping, too. The latter has usually sense only if the map is minimal and perfect (e.g., a bijection of a set
of string with an initial segment of the natural numbers of the same size). String maps are useful for
terms of an MG4J
inverted index, URLs of a WebGraph-compressed
web snapshot, and so on.
Warning: the return value of
list() is a
This in principle is not sensible, as string maps return longs (they extend
ObjectList has only integer index
support. At some point in the future, this problem will be addressed with a full-blown hierarchy
of long lists (and corresponding iterators)
|Modifier and Type||Method and Description|
Returns a list view of the domain of this string map (optional operation).
defaultReturnValue, defaultReturnValue, getLong, put, removeLong
it.unimi.dsi.fastutil.objects.ObjectList<? extends S> list()
Note that the list view acts as an inverse of the mapping implemented by this map.
nullif this map does not support this operation.
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.