public class DatatypeTupleTranslator extends AbstractTupleTranslator<Datatype>
| Modifier and Type | Class and Description |
|---|---|
static class |
DatatypeTupleTranslator.DerivedTypeTag |
| Modifier and Type | Field and Description |
|---|---|
static int |
DATATYPE_DATATYPE_TUPLE_FIELD_INDEX |
static int |
DATATYPE_DATAVERSENAME_TUPLE_FIELD_INDEX |
static int |
DATATYPE_PAYLOAD_TUPLE_FIELD_INDEX |
aString, booleanSerde, fieldValue, int32Serde, recordBuilder, stringSerde, tuple, tupleBuilder| Constructor and Description |
|---|
DatatypeTupleTranslator(JobId jobId,
MetadataNode metadataNode,
boolean getTuple) |
| Modifier and Type | Method and Description |
|---|---|
Datatype |
getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference frameTuple)
Transforms a metadata entity of type T from a given tuple to a Java
object (deserializing the appropriate field(s) in the tuple as
necessary).
|
org.apache.hyracks.dataflow.common.data.accessors.ITupleReference |
getTupleFromMetadataEntity(Datatype dataType)
Serializes the given metadata entity of type T into an appropriate tuple
representation (i.e., some number of fields containing bytes).
|
public static final int DATATYPE_DATAVERSENAME_TUPLE_FIELD_INDEX
public static final int DATATYPE_DATATYPE_TUPLE_FIELD_INDEX
public static final int DATATYPE_PAYLOAD_TUPLE_FIELD_INDEX
public DatatypeTupleTranslator(JobId jobId, MetadataNode metadataNode, boolean getTuple)
public Datatype getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference frameTuple) throws MetadataException, IOException
IMetadataEntityTupleTranslatorframeTuple - Tuple containing a serialized representation of a metadata
entity of type T.MetadataExceptionIOExceptionpublic org.apache.hyracks.dataflow.common.data.accessors.ITupleReference getTupleFromMetadataEntity(Datatype dataType) throws IOException, MetadataException
IMetadataEntityTupleTranslatordataType - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.