K - The key type.V - The value type.public abstract class ReadableMapBinary<K,V> extends Object implements ReadableBinary
Map that is readable.| Constructor and Description |
|---|
ReadableMapBinary(Map<K,V> map)
Construct with a backing map
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary input.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
protected abstract K |
readKey(DataInput in) |
protected abstract V |
readValue(DataInput in) |
public ReadableMapBinary(Map<K,V> map)
map - the backing mappublic void readBinary(DataInput in) throws IOException
ReadableBinaryreadBinary in interface ReadableBinaryin - source to read from.IOException - an error reading inputprotected abstract K readKey(DataInput in) throws IOException
IOExceptionprotected abstract V readValue(DataInput in) throws IOException
IOExceptionpublic byte[] binaryHeader()
ReadableBinarybinaryHeader in interface ReadableBinary