org.apache.hadoop.hive.ql.io.parquet.serde.primitive
Class ParquetShortInspector

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
      extended by org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
          extended by org.apache.hadoop.hive.ql.io.parquet.serde.primitive.ParquetShortInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, SettableShortObjectInspector, ShortObjectInspector, PrimitiveObjectInspector

public class ParquetShortInspector
extends AbstractPrimitiveJavaObjectInspector
implements SettableShortObjectInspector

The ParquetShortInspector can inspect both ShortWritables and IntWritables into shorts.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
PrimitiveObjectInspector.PrimitiveCategory
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspector.Category
 
Method Summary
 Object create(short val)
           
 short get(Object o)
           
 Object getPrimitiveJavaObject(Object o)
           
 Object getPrimitiveWritableObject(Object o)
           
 Object set(Object o, short val)
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
copyObject, preferWritable
 
Methods inherited from class org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
getCategory, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, getTypeName, precision, scale
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeInfo, precision, preferWritable, scale
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getPrimitiveWritableObject

public Object getPrimitiveWritableObject(Object o)
Specified by:
getPrimitiveWritableObject in interface PrimitiveObjectInspector

getPrimitiveJavaObject

public Object getPrimitiveJavaObject(Object o)
Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector
Overrides:
getPrimitiveJavaObject in class AbstractPrimitiveJavaObjectInspector

create

public Object create(short val)
Specified by:
create in interface SettableShortObjectInspector

set

public Object set(Object o,
                  short val)
Specified by:
set in interface SettableShortObjectInspector

get

public short get(Object o)
Specified by:
get in interface ShortObjectInspector


Copyright © 2014 The Apache Software Foundation. All rights reserved.