it.unimi.di.mg4j.index.remote
Class RemotePrefixMap

java.lang.Object
  extended by it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<CharSequence>
      extended by it.unimi.di.mg4j.index.remote.RemoteTermMap
          extended by it.unimi.di.mg4j.index.remote.RemotePrefixMap
All Implemented Interfaces:
Function<CharSequence,Long>, Object2LongFunction<CharSequence>, PrefixMap<MutableString>, StringMap<MutableString>, Serializable

public class RemotePrefixMap
extends RemoteTermMap
implements PrefixMap<MutableString>, Serializable

A remote prefix map.

Author:
Alessandro Arrabito, Sebastiano Vigna
See Also:
Serialized Form

Nested Class Summary
static class RemotePrefixMap.ServerThread
           
 
Field Summary
static byte GET_INTERVAL
           
static byte GET_PREFIX
           
static byte HAS_PREFIXES
           
 
Fields inherited from class it.unimi.di.mg4j.index.remote.RemoteTermMap
address, GET_NUMBER, GET_TERM, HAS_TERMS, list, remoteConnection, size
 
Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defRetValue
 
Constructor Summary
RemotePrefixMap(SocketAddress address, int size)
           
 
Method Summary
 Object2ObjectFunction<Interval,MutableString> prefixMap()
           
 Object2ObjectFunction<CharSequence,Interval> rangeMap()
           
 
Methods inherited from class it.unimi.di.mg4j.index.remote.RemoteTermMap
containsKey, getLong, hasTerms, list, size
 
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
clear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLong
 
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.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
 

Field Detail

GET_INTERVAL

public static final byte GET_INTERVAL
See Also:
Constant Field Values

GET_PREFIX

public static final byte GET_PREFIX
See Also:
Constant Field Values

HAS_PREFIXES

public static final byte HAS_PREFIXES
See Also:
Constant Field Values
Constructor Detail

RemotePrefixMap

public RemotePrefixMap(SocketAddress address,
                       int size)
Method Detail

prefixMap

public Object2ObjectFunction<Interval,MutableString> prefixMap()
Specified by:
prefixMap in interface PrefixMap<MutableString>

rangeMap

public Object2ObjectFunction<CharSequence,Interval> rangeMap()
Specified by:
rangeMap in interface PrefixMap<MutableString>