@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.IOExceptionpublic static DataBag bytesToBag(java.io.DataInput in) throws java.io.IOException
java.io.IOExceptionpublic static java.util.Map<java.lang.String,java.lang.Object> bytesToMap(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static InternalMap bytesToInternalMap(java.io.DataInput in) throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String bytesToCharArray(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String bytesToBigCharArray(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static org.apache.hadoop.io.Writable bytesToWritable(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object readDatum(java.io.DataInput in)
throws java.io.IOException,
ExecException
java.io.IOExceptionExecExceptionpublic static java.lang.Object readDatum(java.io.DataInput in,
byte type)
throws java.io.IOException,
ExecException
java.io.IOExceptionExecExceptionpublic static void writeDatum(java.io.DataOutput out,
java.lang.Object val)
throws java.io.IOException
java.io.IOExceptionCopyright © 2007-2025 The Apache Software Foundation