org.apache.hadoop.hive.serde2.objectinspector.primitive
Class JavaStringObjectInspector

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.serde2.objectinspector.primitive.JavaStringObjectInspector
All Implemented Interfaces:
Cloneable, ObjectInspector, SettableStringObjectInspector, StringObjectInspector, PrimitiveObjectInspector

public class JavaStringObjectInspector
extends AbstractPrimitiveJavaObjectInspector
implements SettableStringObjectInspector

A JavaStringObjectInspector inspects a Java String Object.


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(String value)
          Create an object with the value.
 Object create(org.apache.hadoop.io.Text value)
          Create an object with the value.
 String getPrimitiveJavaObject(Object o)
          Get the Java Primitive object.
 org.apache.hadoop.io.Text getPrimitiveWritableObject(Object o)
          Get the Text representation of the data.
 Object set(Object o, String value)
          Set the object with the value.
 Object set(Object o, org.apache.hadoop.io.Text value)
          Set the object with the value.
 
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, getTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector
copyObject, getJavaPrimitiveClass, getPrimitiveCategory, getPrimitiveWritableClass, preferWritable
 
Methods inherited from interface org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
getCategory, getTypeName
 

Method Detail

getPrimitiveWritableObject

public org.apache.hadoop.io.Text getPrimitiveWritableObject(Object o)
Description copied from interface: StringObjectInspector
Get the Text representation of the data.

Specified by:
getPrimitiveWritableObject in interface StringObjectInspector
Specified by:
getPrimitiveWritableObject in interface PrimitiveObjectInspector

getPrimitiveJavaObject

public String getPrimitiveJavaObject(Object o)
Description copied from interface: PrimitiveObjectInspector
Get the Java Primitive object.

Specified by:
getPrimitiveJavaObject in interface StringObjectInspector
Specified by:
getPrimitiveJavaObject in interface PrimitiveObjectInspector
Overrides:
getPrimitiveJavaObject in class AbstractPrimitiveJavaObjectInspector

create

public Object create(org.apache.hadoop.io.Text value)
Description copied from interface: SettableStringObjectInspector
Create an object with the value.

Specified by:
create in interface SettableStringObjectInspector

set

public Object set(Object o,
                  org.apache.hadoop.io.Text value)
Description copied from interface: SettableStringObjectInspector
Set the object with the value. Return the object that has the new value. In most cases the returned value should be the same as o, but in case o is unmodifiable, this will return a new object with new value.

Specified by:
set in interface SettableStringObjectInspector

create

public Object create(String value)
Description copied from interface: SettableStringObjectInspector
Create an object with the value.

Specified by:
create in interface SettableStringObjectInspector

set

public Object set(Object o,
                  String value)
Description copied from interface: SettableStringObjectInspector
Set the object with the value. Return the object that has the new value. In most cases the returned value should be the same as o, but in case o is unmodifiable, this will return a new object with new value.

Specified by:
set in interface SettableStringObjectInspector


Copyright © 2011 The Apache Software Foundation