public class ExternalFileTupleTranslator extends AbstractTupleTranslator<ExternalFile>
| Modifier and Type | Field and Description |
|---|---|
protected AMutableDateTime |
aDateTime |
protected AMutableInt32 |
aInt32 |
protected AMutableInt64 |
aInt64 |
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<ADateTime> |
dateTimeSerde |
static int |
EXTERNAL_FILE_DATASETNAME_TUPLE_FIELD_INDEX |
static int |
EXTERNAL_FILE_DATAVERSENAME_TUPLE_FIELD_INDEX |
static int |
EXTERNAL_FILE_NUMBER_TUPLE_FIELD_INDEX |
static int |
EXTERNAL_FILE_PAYLOAD_TUPLE_FIELD_INDEX |
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt32> |
intSerde |
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt64> |
longSerde |
aString, booleanSerde, fieldValue, int32Serde, recordBuilder, stringSerde, tuple, tupleBuilder| Constructor and Description |
|---|
ExternalFileTupleTranslator(boolean getTuple) |
| Modifier and Type | Method and Description |
|---|---|
ExternalFile |
getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference tuple)
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(ExternalFile externalFile)
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 EXTERNAL_FILE_DATAVERSENAME_TUPLE_FIELD_INDEX
public static final int EXTERNAL_FILE_DATASETNAME_TUPLE_FIELD_INDEX
public static final int EXTERNAL_FILE_NUMBER_TUPLE_FIELD_INDEX
public static final int EXTERNAL_FILE_PAYLOAD_TUPLE_FIELD_INDEX
protected AMutableInt32 aInt32
protected AMutableDateTime aDateTime
protected AMutableInt64 aInt64
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt32> intSerde
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<ADateTime> dateTimeSerde
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt64> longSerde
public ExternalFile getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference tuple) throws MetadataException, IOException
IMetadataEntityTupleTranslatortuple - Tuple containing a serialized representation of a metadata
entity of type T.MetadataExceptionIOExceptionpublic org.apache.hyracks.dataflow.common.data.accessors.ITupleReference getTupleFromMetadataEntity(ExternalFile externalFile) throws MetadataException, IOException
IMetadataEntityTupleTranslatorexternalFile - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.