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
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputprotected abstract K readKey(DataInput in) throws IOException
IOException
protected abstract V readValue(DataInput in) throws IOException
IOException
public byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary