it.unimi.dsi.big.util
Class StringMaps.SynchronizedPrefixMap<S extends CharSequence>

java.lang.Object
  extended by it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap<S>
      extended by it.unimi.dsi.big.util.StringMaps.SynchronizedPrefixMap<S>
All Implemented Interfaces:
PrefixMap<S>, StringMap<S>, Function<CharSequence,Long>, Object2LongFunction<CharSequence>, Size64, Serializable
Enclosing class:
StringMaps

protected static class StringMaps.SynchronizedPrefixMap<S extends CharSequence>
extends StringMaps.SynchronizedStringMap<S>
implements PrefixMap<S>, Serializable

See Also:
Serialized Form

Field Summary
protected  PrefixMap<S> map
           
protected  Object2ObjectFunction<LongInterval,S> prefixMap
           
protected  Object2ObjectFunction<CharSequence,LongInterval> rangeMap
           
 
Fields inherited from class it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap
list, stringMap
 
Constructor Summary
StringMaps.SynchronizedPrefixMap(PrefixMap<S> map)
           
 
Method Summary
 Object2ObjectFunction<LongInterval,S> prefixMap()
          Returns a function mapping ranges of strings to common prefixes (optional operation).
 Object2ObjectFunction<CharSequence,LongInterval> rangeMap()
          Returns a function mapping prefixes to ranges of strings.
 
Methods inherited from class it.unimi.dsi.big.util.StringMaps.SynchronizedStringMap
clear, containsKey, defaultReturnValue, defaultReturnValue, get, getLong, list, put, put, remove, removeLong, size, size64
 
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.big.util.StringMap
list
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2LongFunction
defaultReturnValue, defaultReturnValue, getLong, put, removeLong
 
Methods inherited from interface it.unimi.dsi.fastutil.Function
clear, containsKey, get, put, remove, size
 
Methods inherited from interface it.unimi.dsi.fastutil.Size64
size, size64
 

Field Detail

map

protected final PrefixMap<S extends CharSequence> map

prefixMap

protected Object2ObjectFunction<LongInterval,S extends CharSequence> prefixMap

rangeMap

protected Object2ObjectFunction<CharSequence,LongInterval> rangeMap
Constructor Detail

StringMaps.SynchronizedPrefixMap

public StringMaps.SynchronizedPrefixMap(PrefixMap<S> map)
Method Detail

prefixMap

public Object2ObjectFunction<LongInterval,S> prefixMap()
Description copied from interface: PrefixMap
Returns a function mapping ranges of strings to common prefixes (optional operation).

Specified by:
prefixMap in interface PrefixMap<S extends CharSequence>
Returns:
a function mapping ranges of strings to common prefixes, or null if this map does not support prefixes.

rangeMap

public Object2ObjectFunction<CharSequence,LongInterval> rangeMap()
Description copied from interface: PrefixMap
Returns a function mapping prefixes to ranges of strings.

Specified by:
rangeMap in interface PrefixMap<S extends CharSequence>
Returns:
a function mapping prefixes to ranges of strings.