org.apache.pig.data.utils
Class SedesHelper

java.lang.Object
  extended by org.apache.pig.data.utils.SedesHelper

@InterfaceAudience.Private
public class SedesHelper
extends Object


Nested Class Summary
static class SedesHelper.Varint
          Encodes signed and unsigned values using a common variable-length scheme, found for example in Google's Protocol Buffers.
 
Constructor Summary
SedesHelper()
           
 
Method Summary
static boolean[] readBooleanArray(DataInput in, int size)
           
static byte[] readBytes(DataInput in, byte type)
           
static String readChararray(DataInput in, byte type)
           
static Tuple readGenericTuple(DataInput in, byte type)
           
static void writeBooleanArray(DataOutput out, boolean[] v)
           
static void writeBooleanArray(DataOutput out, boolean[] v, boolean extra)
           
static void writeBytes(DataOutput out, byte[] buf)
           
static void writeChararray(DataOutput out, String s)
           
static void writeGenericTuple(DataOutput out, Tuple t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SedesHelper

public SedesHelper()
Method Detail

writeBytes

public static void writeBytes(DataOutput out,
                              byte[] buf)
                       throws IOException
Throws:
IOException

readBytes

public static byte[] readBytes(DataInput in,
                               byte type)
                        throws IOException
Throws:
IOException

writeChararray

public static void writeChararray(DataOutput out,
                                  String s)
                           throws IOException
Throws:
IOException

readChararray

public static String readChararray(DataInput in,
                                   byte type)
                            throws IOException
Throws:
IOException

writeGenericTuple

public static void writeGenericTuple(DataOutput out,
                                     Tuple t)
                              throws IOException
Throws:
IOException

readGenericTuple

public static Tuple readGenericTuple(DataInput in,
                                     byte type)
                              throws IOException
Throws:
IOException

writeBooleanArray

public static void writeBooleanArray(DataOutput out,
                                     boolean[] v,
                                     boolean extra)
                              throws IOException
Throws:
IOException

writeBooleanArray

public static void writeBooleanArray(DataOutput out,
                                     boolean[] v)
                              throws IOException
Throws:
IOException

readBooleanArray

public static boolean[] readBooleanArray(DataInput in,
                                         int size)
                                  throws IOException
Throws:
IOException


Copyright © 2007-2012 The Apache Software Foundation