org.apache.pig.data
Class DataReaderWriter

java.lang.Object
  extended by 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.


Constructor Summary
DataReaderWriter()
           
 
Method Summary
static DataBag bytesToBag(DataInput in)
           
static String bytesToBigCharArray(DataInput in)
           
static String bytesToCharArray(DataInput in)
           
static Map<Object,Object> bytesToMap(DataInput in)
           
static Tuple bytesToTuple(DataInput in)
           
static Object readDatum(DataInput in)
           
static void writeDatum(DataOutput out, Object val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataReaderWriter

public DataReaderWriter()
Method Detail

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<Object,Object> bytesToMap(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

readDatum

public static Object readDatum(DataInput in)
                        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