protected static class MapJoinBytesTableContainer.DirectKeyValueWriter extends Object implements MapJoinBytesTableContainer.KeyValueHelper
| Modifier | Constructor and Description |
|---|---|
protected |
DirectKeyValueWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getEstimatedMemorySize()
Returns estimated memory size based
JavaDataModel |
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.
|
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.KeyValueHelperSerDeExceptionpublic long getEstimatedMemorySize()
MemoryEstimateJavaDataModelgetEstimatedMemorySize in interface MemoryEstimateCopyright © 2019 The Apache Software Foundation. All Rights Reserved.