org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive
Class LazyStringObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.AbstractPrimitiveLazyObjectInspector<org.apache.hadoop.io.Text>
org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.LazyStringObjectInspector
- All Implemented Interfaces:
- ObjectInspector, StringObjectInspector, PrimitiveObjectInspector
public class LazyStringObjectInspector
- extends AbstractPrimitiveLazyObjectInspector<org.apache.hadoop.io.Text>
- implements StringObjectInspector
A WritableStringObjectInspector inspects a Text Object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyObject
public Object copyObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Get a copy of the Object in the same class, so the return value can be
stored independently of the parameter.
If the Object is a Primitive Java Object, we just return the parameter
since Primitive Java Object is immutable.
- Specified by:
copyObject
in interface PrimitiveObjectInspector
getPrimitiveWritableObject
public org.apache.hadoop.io.Text getPrimitiveWritableObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Return the data in an instance of primitive writable Object. If the
Object is already a primitive writable Object, just return o.
- Specified by:
getPrimitiveWritableObject
in interface StringObjectInspector
- Specified by:
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
- Overrides:
getPrimitiveWritableObject
in class AbstractPrimitiveLazyObjectInspector<org.apache.hadoop.io.Text>
getPrimitiveJavaObject
public String getPrimitiveJavaObject(Object o)
- Description copied from interface:
StringObjectInspector
- Get the String representation of the data.
- Specified by:
getPrimitiveJavaObject
in interface StringObjectInspector
- Specified by:
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
isEscaped
public boolean isEscaped()
getEscapeChar
public byte getEscapeChar()
Copyright © 2009 The Apache Software Foundation