org.apache.hadoop.hive.serde2.objectinspector.primitive
Interface StringObjectInspector

All Superinterfaces:
Cloneable, ObjectInspector, PrimitiveObjectInspector, PrimitiveTypeSpec
All Known Subinterfaces:
SettableStringObjectInspector
All Known Implementing Classes:
JavaStringObjectInspector, LazyStringObjectInspector, WritableConstantStringObjectInspector, WritableStringObjectInspector

public interface StringObjectInspector
extends PrimitiveObjectInspector

A StringObjectInspector inspects an Object representing a String.


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
 String getPrimitiveJavaObject(Object o)
          Get the String representation of the data.
 Text getPrimitiveWritableObject(Object o)
          Get the Text representation of the data.
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, getTypeParams, preferWritable, setTypeParams
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getPrimitiveWritableObject

Text getPrimitiveWritableObject(Object o)
Get the Text representation of the data.

Specified by:
getPrimitiveWritableObject in interface PrimitiveObjectInspector

getPrimitiveJavaObject

String getPrimitiveJavaObject(Object o)
Get the String representation of the data.

Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector


Copyright © 2012 The Apache Software Foundation