Package it.unimi.di.big.mg4j.document
Class WikipediaDocumentSequence.SignedRedirectedStringMap
- java.lang.Object
-
- it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<CharSequence>
-
- it.unimi.di.big.mg4j.document.WikipediaDocumentSequence.SignedRedirectedStringMap
-
- All Implemented Interfaces:
StringMap<CharSequence>,Function<CharSequence,Long>,Object2LongFunction<CharSequence>,Size64,Serializable,Function<CharSequence,Long>,ToLongFunction<CharSequence>
- Enclosing class:
- WikipediaDocumentSequence
public static final class WikipediaDocumentSequence.SignedRedirectedStringMap extends AbstractObject2LongFunction<CharSequence> implements StringMap<CharSequence>
A wrapper around a signed function that remaps entries exceeding a provided threshold using a specified target array.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defRetValue
-
-
Constructor Summary
Constructors Constructor Description SignedRedirectedStringMap(long numberOfDocuments, Object2LongFunction<CharSequence> signedFunction, long[] target)Creates a new signed redirected map.
-
Method Summary
Modifier and Type Method Description booleancontainsKey(Object key)longgetLong(Object key)ObjectBigList<? extends CharSequence>list()intsize()Deprecated.longsize64()-
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defaultReturnValue, defaultReturnValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2LongFunction
applyAsLong, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLong
-
-
-
-
Constructor Detail
-
SignedRedirectedStringMap
public SignedRedirectedStringMap(long numberOfDocuments, Object2LongFunction<CharSequence> signedFunction, long[] target)Creates a new signed redirected map.- Parameters:
numberOfDocuments- the threshold after which thetargetarray will be used to compute the output.signedFunction- the base signed function.target- an array providing the output for items beyondnumberOfDocuments; it must be long as the size ofsignedFunctionminusnumberOfDocuments.
-
-
Method Detail
-
getLong
public long getLong(Object key)
- Specified by:
getLongin interfaceObject2LongFunction<CharSequence>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceFunction<CharSequence,Long>
-
size64
public long size64()
- Specified by:
size64in interfaceSize64- Specified by:
size64in interfaceStringMap<CharSequence>
-
size
@Deprecated public int size()
Deprecated.- Specified by:
sizein interfaceFunction<CharSequence,Long>- Specified by:
sizein interfaceSize64- Specified by:
sizein interfaceStringMap<CharSequence>
-
list
public ObjectBigList<? extends CharSequence> list()
- Specified by:
listin interfaceStringMap<CharSequence>
-
-