org.apache.pig.data
Class DataReaderWriter
java.lang.Object
org.apache.pig.data.DataReaderWriter
public class DataReaderWriter
- extends Object
A class to handle reading and writing of intermediate results of data
types. This class could also be used for storing permanent results.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataReaderWriter
public DataReaderWriter()
bytesToTuple
public static Tuple bytesToTuple(DataInput in)
throws IOException
- Throws:
IOException
bytesToBag
public static DataBag bytesToBag(DataInput in)
throws IOException
- Throws:
IOException
bytesToMap
public static Map<String,Object> bytesToMap(DataInput in)
throws IOException
- Throws:
IOException
bytesToInternalMap
public static InternalMap bytesToInternalMap(DataInput in)
throws IOException
- Throws:
IOException
bytesToCharArray
public static String bytesToCharArray(DataInput in)
throws IOException
- Throws:
IOException
bytesToBigCharArray
public static String bytesToBigCharArray(DataInput in)
throws IOException
- Throws:
IOException
bytesToWritable
public static org.apache.hadoop.io.Writable bytesToWritable(DataInput in)
throws IOException
- Throws:
IOException
readDatum
public static Object readDatum(DataInput in)
throws IOException,
ExecException
- Throws:
IOException
ExecException
readDatum
public static Object readDatum(DataInput in,
byte type)
throws IOException,
ExecException
- Throws:
IOException
ExecException
writeDatum
public static void writeDatum(DataOutput out,
Object val)
throws IOException
- Throws:
IOException
Copyright © ${year} The Apache Software Foundation