public class IndexTupleTranslator extends AbstractTupleTranslator<Index>
| Modifier and Type | Field and Description |
|---|---|
static String |
GRAM_LENGTH_FIELD_NAME |
static int |
INDEX_DATASETNAME_TUPLE_FIELD_INDEX |
static int |
INDEX_DATAVERSENAME_TUPLE_FIELD_INDEX |
static int |
INDEX_INDEXNAME_TUPLE_FIELD_INDEX |
static String |
INDEX_ISENFORCED_FIELD_NAME |
static int |
INDEX_PAYLOAD_TUPLE_FIELD_INDEX |
static String |
INDEX_SEARCHKEY_TYPE_FIELD_NAME |
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt32> |
intSerde |
aString, booleanSerde, fieldValue, int32Serde, recordBuilder, stringSerde, tuple, tupleBuilder| Constructor and Description |
|---|
IndexTupleTranslator(JobId jobId,
MetadataNode metadataNode,
boolean getTuple) |
| Modifier and Type | Method and Description |
|---|---|
Index |
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(Index instance)
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 INDEX_DATAVERSENAME_TUPLE_FIELD_INDEX
public static final int INDEX_DATASETNAME_TUPLE_FIELD_INDEX
public static final int INDEX_INDEXNAME_TUPLE_FIELD_INDEX
public static final int INDEX_PAYLOAD_TUPLE_FIELD_INDEX
public static final String GRAM_LENGTH_FIELD_NAME
public static final String INDEX_SEARCHKEY_TYPE_FIELD_NAME
public static final String INDEX_ISENFORCED_FIELD_NAME
protected org.apache.hyracks.api.dataflow.value.ISerializerDeserializer<AInt32> intSerde
public IndexTupleTranslator(JobId jobId, MetadataNode metadataNode, boolean getTuple)
public Index getMetadataEntityFromTuple(org.apache.hyracks.dataflow.common.data.accessors.ITupleReference frameTuple) throws IOException, MetadataException
IMetadataEntityTupleTranslatorframeTuple - Tuple containing a serialized representation of a metadata
entity of type T.IOExceptionMetadataExceptionpublic org.apache.hyracks.dataflow.common.data.accessors.ITupleReference getTupleFromMetadataEntity(Index instance) throws IOException, MetadataException
IMetadataEntityTupleTranslatorinstance - Metadata entity to be written into a tuple.IOExceptionMetadataExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.