public class DatasetTupleTranslator extends AbstractTupleTranslator<Dataset>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt32> |
aInt32Serde |
static int |
DATASET_DATASETNAME_TUPLE_FIELD_INDEX |
static int |
DATASET_DATAVERSENAME_TUPLE_FIELD_INDEX |
static int |
DATASET_PAYLOAD_TUPLE_FIELD_INDEX |
aString, booleanSerde, fieldValue, int32Serde, recordBuilder, stringSerde, tuple, tupleBuilder| Constructor and Description |
|---|
DatasetTupleTranslator(boolean getTuple) |
| Modifier and Type | Method and Description |
|---|---|
Dataset |
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(Dataset dataset)
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 DATASET_DATAVERSENAME_TUPLE_FIELD_INDEX
public static final int DATASET_DATASETNAME_TUPLE_FIELD_INDEX
public static final int DATASET_PAYLOAD_TUPLE_FIELD_INDEX
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt32> aInt32Serde
public Dataset getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference frameTuple) throws IOException
IMetadataEntityTupleTranslatorframeTuple - Tuple containing a serialized representation of a metadata
entity of type T.IOExceptionpublic org.apache.hyracks.dataflow.common.data.accessors.ITupleReference getTupleFromMetadataEntity(Dataset dataset) throws IOException, MetadataException
IMetadataEntityTupleTranslatordataset - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.