public interface IMetadataEntityTupleTranslator<T>
| Modifier and Type | Method and Description |
|---|---|
T |
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(T metadataEntity)
Serializes the given metadata entity of type T into an appropriate tuple
representation (i.e., some number of fields containing bytes).
|
T getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference tuple) throws MetadataException, IOException
tuple - Tuple containing a serialized representation of a metadata
entity of type T.MetadataExceptionIOExceptionorg.apache.hyracks.dataflow.common.data.accessors.ITupleReference getTupleFromMetadataEntity(T metadataEntity) throws MetadataException, IOException
metadataEntity - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.