public class CompactionPolicyTupleTranslator extends AbstractTupleTranslator<CompactionPolicy>
| Modifier and Type | Field and Description |
|---|---|
static int |
COMPACTION_POLICY_DATAVERSE_NAME_FIELD_INDEX |
static int |
COMPACTION_POLICY_NAME_FIELD_INDEX |
static int |
COMPACTION_POLICY_PAYLOAD_TUPLE_FIELD_INDEX |
aString, booleanSerde, fieldValue, int32Serde, recordBuilder, stringSerde, tuple, tupleBuilder| Constructor and Description |
|---|
CompactionPolicyTupleTranslator(boolean getTuple) |
| Modifier and Type | Method and Description |
|---|---|
CompactionPolicy |
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(CompactionPolicy compactionPolicy)
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 COMPACTION_POLICY_DATAVERSE_NAME_FIELD_INDEX
public static final int COMPACTION_POLICY_NAME_FIELD_INDEX
public static final int COMPACTION_POLICY_PAYLOAD_TUPLE_FIELD_INDEX
public CompactionPolicyTupleTranslator(boolean getTuple)
public CompactionPolicy getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference tuple) throws IOException
IMetadataEntityTupleTranslatortuple - Tuple containing a serialized representation of a metadata
entity of type T.IOExceptionpublic org.apache.hyracks.dataflow.common.data.accessors.ITupleReference getTupleFromMetadataEntity(CompactionPolicy compactionPolicy) throws IOException, MetadataException
IMetadataEntityTupleTranslatorcompactionPolicy - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.