protected static class MapJoinBytesTableContainer.DirectKeyValueWriter extends Object implements MapJoinBytesTableContainer.KeyValueHelper
| Modifier | Constructor and Description |
|---|---|
protected |
MapJoinBytesTableContainer.DirectKeyValueWriter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHashFromKey()
Get hash value from the key.
|
void |
setKeyValue(org.apache.hadoop.io.Writable key,
org.apache.hadoop.io.Writable val) |
byte |
updateStateByte(Byte previousValue)
Provide updated value for state byte for a key.
|
void |
writeKey(ByteStream.RandomAccessOutput dest)
Write key into output.
|
void |
writeValue(ByteStream.RandomAccessOutput dest)
Write value into output.
|
protected MapJoinBytesTableContainer.DirectKeyValueWriter()
public void setKeyValue(org.apache.hadoop.io.Writable key,
org.apache.hadoop.io.Writable val)
throws SerDeException
setKeyValue in interface MapJoinBytesTableContainer.KeyValueHelperSerDeExceptionpublic void writeKey(ByteStream.RandomAccessOutput dest) throws SerDeException
BytesBytesMultiHashMap.KvSourcewriteKey in interface BytesBytesMultiHashMap.KvSourceSerDeExceptionpublic void writeValue(ByteStream.RandomAccessOutput dest) throws SerDeException
BytesBytesMultiHashMap.KvSourcewriteValue in interface BytesBytesMultiHashMap.KvSourceSerDeExceptionpublic byte updateStateByte(Byte previousValue)
BytesBytesMultiHashMap.KvSourceupdateStateByte in interface BytesBytesMultiHashMap.KvSourcepreviousValue - Previous value; null if this is the first call per key.public int getHashFromKey()
throws SerDeException
MapJoinBytesTableContainer.KeyValueHelpergetHashFromKey in interface MapJoinBytesTableContainer.KeyValueHelperSerDeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.