org.apache.pig.backend.hadoop
Class HDataType

java.lang.Object
  extended by org.apache.pig.backend.hadoop.HDataType

public class HDataType
extends Object

A class of helper methods for converting from pig data types to hadoop data types, and vice versa.


Constructor Summary
HDataType()
           
 
Method Summary
static byte findTypeFromNullableWritable(PigNullableWritable o)
           
static PigNullableWritable getWritableComparable(String className)
           
static PigNullableWritable getWritableComparableTypes(byte type)
           
static PigNullableWritable getWritableComparableTypes(Object o, byte keyType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HDataType

public HDataType()
Method Detail

getWritableComparable

public static PigNullableWritable getWritableComparable(String className)
                                                 throws ExecException
Throws:
ExecException

getWritableComparableTypes

public static PigNullableWritable getWritableComparableTypes(Object o,
                                                             byte keyType)
                                                      throws ExecException
Throws:
ExecException

getWritableComparableTypes

public static PigNullableWritable getWritableComparableTypes(byte type)
                                                      throws ExecException
Throws:
ExecException

findTypeFromNullableWritable

public static byte findTypeFromNullableWritable(PigNullableWritable o)
                                         throws ExecException
Throws:
ExecException


Copyright © 2007-2012 The Apache Software Foundation