@InterfaceAudience.Private @InterfaceStability.Stable public class DataReaderWriter extends java.lang.Object
BinInterSedes
This class could also be used for storing permanent results, it used
by BinStorage through DefaultTuple class.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UTF8 |
Constructor and Description |
---|
DataReaderWriter() |
Modifier and Type | Method and Description |
---|---|
static DataBag |
bytesToBag(java.io.DataInput in) |
static java.lang.String |
bytesToBigCharArray(java.io.DataInput in) |
static java.lang.String |
bytesToCharArray(java.io.DataInput in) |
static InternalMap |
bytesToInternalMap(java.io.DataInput in) |
static java.util.Map<java.lang.String,java.lang.Object> |
bytesToMap(java.io.DataInput in) |
static Tuple |
bytesToTuple(java.io.DataInput in) |
static org.apache.hadoop.io.Writable |
bytesToWritable(java.io.DataInput in) |
static java.lang.Object |
readDatum(java.io.DataInput in) |
static java.lang.Object |
readDatum(java.io.DataInput in,
byte type) |
static void |
writeDatum(java.io.DataOutput out,
java.lang.Object val) |
public static final java.lang.String UTF8
public static Tuple bytesToTuple(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static DataBag bytesToBag(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static java.util.Map<java.lang.String,java.lang.Object> bytesToMap(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static InternalMap bytesToInternalMap(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static java.lang.String bytesToCharArray(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static java.lang.String bytesToBigCharArray(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static org.apache.hadoop.io.Writable bytesToWritable(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public static java.lang.Object readDatum(java.io.DataInput in) throws java.io.IOException, ExecException
java.io.IOException
ExecException
public static java.lang.Object readDatum(java.io.DataInput in, byte type) throws java.io.IOException, ExecException
java.io.IOException
ExecException
public static void writeDatum(java.io.DataOutput out, java.lang.Object val) throws java.io.IOException
java.io.IOException
Copyright © 2007-2017 The Apache Software Foundation