org.apache.hadoop.hive.serde2.objectinspector.primitive
Class PrimitiveObjectInspectorUtils.PrimitiveTypeEntry

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils.PrimitiveTypeEntry
All Implemented Interfaces:
Cloneable, PrimitiveTypeSpec
Enclosing class:
PrimitiveObjectInspectorUtils

public static class PrimitiveObjectInspectorUtils.PrimitiveTypeEntry
extends Object
implements Cloneable, PrimitiveTypeSpec

TypeEntry stores information about a Hive Primitive TypeInfo.


Field Summary
 PrimitiveObjectInspector.PrimitiveCategory primitiveCategory
          The category of the PrimitiveType.
 Class<?> primitiveJavaClass
          primitiveJavaClass refers to java classes like Integer, Double, String etc.
 Class<?> primitiveJavaType
          primitiveJavaType refers to java types like int, double, etc.
 Class<?> primitiveWritableClass
          writableClass refers to hadoop Writable classes like IntWritable, DoubleWritable, Text etc.
 String typeName
          typeName is the name of the type as in DDL.
 BaseTypeParams typeParams
           
 Class<?> typeParamsClass
           
 
Method Summary
 PrimitiveObjectInspectorUtils.PrimitiveTypeEntry addParameters(String[] parameters)
           
 Object clone()
           
static BaseTypeParams createTypeParams(String typeName, String[] parameters)
           
 PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
           
 BaseTypeParams getTypeParams()
           
 boolean isParameterized()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

primitiveCategory

public PrimitiveObjectInspector.PrimitiveCategory primitiveCategory
The category of the PrimitiveType.


primitiveJavaType

public Class<?> primitiveJavaType
primitiveJavaType refers to java types like int, double, etc.


primitiveJavaClass

public Class<?> primitiveJavaClass
primitiveJavaClass refers to java classes like Integer, Double, String etc.


primitiveWritableClass

public Class<?> primitiveWritableClass
writableClass refers to hadoop Writable classes like IntWritable, DoubleWritable, Text etc.


typeName

public String typeName
typeName is the name of the type as in DDL.


typeParamsClass

public Class<?> typeParamsClass

typeParams

public BaseTypeParams typeParams
Method Detail

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

addParameters

public PrimitiveObjectInspectorUtils.PrimitiveTypeEntry addParameters(String[] parameters)

isParameterized

public boolean isParameterized()

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

createTypeParams

public static BaseTypeParams createTypeParams(String typeName,
                                              String[] parameters)
                                       throws SerDeException
Throws:
SerDeException

getPrimitiveCategory

public PrimitiveObjectInspector.PrimitiveCategory getPrimitiveCategory()
Specified by:
getPrimitiveCategory in interface PrimitiveTypeSpec
Returns:
PrimitiveCategory referred to by the PrimitiveTypeSpec

getTypeParams

public BaseTypeParams getTypeParams()
Specified by:
getTypeParams in interface PrimitiveTypeSpec
Returns:
Type params referred to by the PrimitiveTypeSpec


Copyright © 2012 The Apache Software Foundation