public class RemoteTermMap extends AbstractObject2LongFunction<CharSequence> implements StringMap<MutableString>, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteTermMap.ServerThread |
| Modifier and Type | Field and Description |
|---|---|
protected SocketAddress |
address
The address of the index server.
|
protected static byte |
GET_NUMBER |
protected static byte |
GET_TERM |
protected static byte |
HAS_TERMS |
protected ObjectList<MutableString> |
list
The cached return value of
StringMap.list(). |
protected RemoteIndexServerConnection |
remoteConnection
The remote connection to the server (initialised lazily).
|
protected int |
size
The size of the map.
|
defRetValue| Constructor and Description |
|---|
RemoteTermMap(SocketAddress address,
int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object o) |
long |
getLong(Object o) |
boolean |
hasTerms() |
ObjectList<MutableString> |
list() |
int |
size() |
clear, defaultReturnValue, defaultReturnValue, get, put, put, remove, removeLongclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultReturnValue, defaultReturnValue, put, removeLongprotected static final byte GET_NUMBER
protected static final byte GET_TERM
protected static final byte HAS_TERMS
protected SocketAddress address
protected final int size
protected transient RemoteIndexServerConnection remoteConnection
protected ObjectList<MutableString> list
StringMap.list().public RemoteTermMap(SocketAddress address, int size)
public int size()
size in interface Function<CharSequence,Long>public boolean hasTerms()
public ObjectList<MutableString> list()
list in interface StringMap<MutableString>public long getLong(Object o)
getLong in interface Object2LongFunction<CharSequence>public boolean containsKey(Object o)
containsKey in interface Function<CharSequence,Long>