K - The key type.V - The value type.public abstract class WriteableMapBinary<K,V> extends Object implements WriteableBinary
Map that is writeable.| Constructor and Description |
|---|
WriteableMapBinary(Map<K,V> map)
Construct with the given map.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
binaryHeader()
Header for binary output.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
protected abstract void |
writeKey(K key,
DataOutput out) |
protected abstract void |
writeValue(V value2,
DataOutput out) |
public WriteableMapBinary(Map<K,V> map)
map - The map.public void writeBinary(DataOutput out) throws IOException
WriteableBinarywriteBinary in interface WriteableBinaryout - sink to write toIOException - an error writing to outprotected abstract void writeKey(K key, DataOutput out) throws IOException
IOExceptionprotected abstract void writeValue(V value2, DataOutput out) throws IOException
IOExceptionpublic byte[] binaryHeader()
WriteableBinarybinaryHeader in interface WriteableBinary