public class RecordkeyAdapter
extends java.lang.Object
List<OneField>
.Constructor and Description |
---|
RecordkeyAdapter()
Constructs a RecordkeyAdapter.
|
Modifier and Type | Method and Description |
---|---|
int |
appendRecordkeyField(java.util.List<OneField> recFields,
InputData input,
OneRow onerow)
Adds the recordkey to the end of the passed in recFields list.
|
org.apache.hadoop.io.Writable |
convertKeyValue(java.lang.Object key)
Converts given key object to its matching Writable.
|
public int appendRecordkeyField(java.util.List<OneField> recFields, InputData input, OneRow onerow) throws java.lang.NoSuchFieldException
This method also verifies cases in which record keys are not supported by the underlying source type, and therefore "illegally" requested.
recFields
- existing list of record (non-key) fields and their
values.input
- all input parameters coming from the client requestonerow
- a row object which is used here in order to find out if the
given type supports recordkeys or not.java.lang.NoSuchFieldException
- when the given record type does not support
recordkeyspublic org.apache.hadoop.io.Writable convertKeyValue(java.lang.Object key)
key
- object to convert