org.apache.hadoop.hive.serde2.lazy
Class LazyHiveChar
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyHiveCharObjectInspector,HiveCharWritable>
org.apache.hadoop.hive.serde2.lazy.LazyHiveChar
public class LazyHiveChar
- extends LazyPrimitive<LazyHiveCharObjectInspector,HiveCharWritable>
LazyObject for storing a value of HiveChar.
LazyHiveChar
public LazyHiveChar(LazyHiveCharObjectInspector oi)
LazyHiveChar
public LazyHiveChar(LazyHiveChar copy)
setValue
public void setValue(LazyHiveChar copy)
init
public void init(ByteArrayRef bytes,
int start,
int length)
- Description copied from class:
LazyObjectBase
- Set the data for this LazyObjectBase. We take ByteArrayRef instead of byte[] so
that we will be able to drop the reference to byte[] by a single
assignment. The ByteArrayRef object can be reused across multiple rows.
- Specified by:
init
in class LazyObjectBase
- Parameters:
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"- See Also:
ByteArrayRef
Copyright © 2014 The Apache Software Foundation. All rights reserved.