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