org.apache.hadoop.hive.serde2.objectinspector.primitive
Class JavaBinaryObjectInspector
java.lang.Object
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.AbstractPrimitiveJavaObjectInspector
org.apache.hadoop.hive.serde2.objectinspector.primitive.JavaBinaryObjectInspector
- All Implemented Interfaces:
- Cloneable, ObjectInspector, BinaryObjectInspector, SettableBinaryObjectInspector, PrimitiveObjectInspector
public class JavaBinaryObjectInspector
- extends AbstractPrimitiveJavaObjectInspector
- implements SettableBinaryObjectInspector
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyObject
public ByteArrayRef 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
- Overrides:
copyObject
in class AbstractPrimitiveJavaObjectInspector
getPrimitiveWritableObject
public org.apache.hadoop.io.BytesWritable 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 BinaryObjectInspector
- Specified by:
getPrimitiveWritableObject
in interface PrimitiveObjectInspector
getPrimitiveJavaObject
public ByteArrayRef getPrimitiveJavaObject(Object o)
- Description copied from interface:
PrimitiveObjectInspector
- Get the Java Primitive object.
- Specified by:
getPrimitiveJavaObject
in interface BinaryObjectInspector
- Specified by:
getPrimitiveJavaObject
in interface PrimitiveObjectInspector
- Overrides:
getPrimitiveJavaObject
in class AbstractPrimitiveJavaObjectInspector
set
public ByteArrayRef set(Object o,
ByteArrayRef bb)
- Specified by:
set
in interface SettableBinaryObjectInspector
set
public ByteArrayRef set(Object o,
org.apache.hadoop.io.BytesWritable bw)
- Specified by:
set
in interface SettableBinaryObjectInspector
create
public ByteArrayRef create(ByteArrayRef bb)
- Specified by:
create
in interface SettableBinaryObjectInspector
create
public ByteArrayRef create(org.apache.hadoop.io.BytesWritable bw)
- Specified by:
create
in interface SettableBinaryObjectInspector
Copyright © 2011 The Apache Software Foundation