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
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to outprotected abstract void writeKey(K key, DataOutput out) throws IOException
IOException
protected abstract void writeValue(V value2, DataOutput out) throws IOException
IOException
public byte[] binaryHeader()
WriteableBinary
binaryHeader
in interface WriteableBinary