public class FeedTupleTranslator extends AbstractTupleTranslator<Feed>
| Modifier and Type | Field and Description |
|---|---|
static int |
FEED_DATAVERSE_NAME_FIELD_INDEX |
static int |
FEED_NAME_FIELD_INDEX |
static int |
FEED_PAYLOAD_TUPLE_FIELD_INDEX |
aString, booleanSerde, fieldValue, int32Serde, recordBuilder, stringSerde, tuple, tupleBuilder| Constructor and Description |
|---|
FeedTupleTranslator(boolean getTuple) |
| Modifier and Type | Method and Description |
|---|---|
Feed |
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(Feed feed)
Serializes the given metadata entity of type T into an appropriate tuple
representation (i.e., some number of fields containing bytes).
|
void |
writePropertyTypeRecord(String name,
String value,
DataOutput out) |
public static final int FEED_DATAVERSE_NAME_FIELD_INDEX
public static final int FEED_NAME_FIELD_INDEX
public static final int FEED_PAYLOAD_TUPLE_FIELD_INDEX
public Feed 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(Feed feed) throws IOException, MetadataException
IMetadataEntityTupleTranslatorfeed - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionpublic void writePropertyTypeRecord(String name, String value, DataOutput out) throws org.apache.hyracks.api.exceptions.HyracksDataException
org.apache.hyracks.api.exceptions.HyracksDataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.