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.KeyValueHelper
SerDeException
public void writeKey(ByteStream.RandomAccessOutput dest) throws SerDeException
BytesBytesMultiHashMap.KvSource
writeKey
in interface BytesBytesMultiHashMap.KvSource
SerDeException
public void writeValue(ByteStream.RandomAccessOutput dest) throws SerDeException
BytesBytesMultiHashMap.KvSource
writeValue
in interface BytesBytesMultiHashMap.KvSource
SerDeException
public byte updateStateByte(Byte previousValue)
BytesBytesMultiHashMap.KvSource
updateStateByte
in interface BytesBytesMultiHashMap.KvSource
previousValue
- Previous value; null if this is the first call per key.public int getHashFromKey() throws SerDeException
MapJoinBytesTableContainer.KeyValueHelper
getHashFromKey
in interface MapJoinBytesTableContainer.KeyValueHelper
SerDeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.