org.apache.hadoop.hive.serde2.lazy
Class LazyBoolean
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<LazyBooleanObjectInspector,org.apache.hadoop.io.BooleanWritable>
org.apache.hadoop.hive.serde2.lazy.LazyBoolean
public class LazyBoolean
- extends LazyPrimitive<LazyBooleanObjectInspector,org.apache.hadoop.io.BooleanWritable>
LazyObject for storing a value of boolean.
Part of the code is adapted from Apache Harmony Project.
As with the specification, this implementation relied on code laid out in Henry S. Warren, Jr.'s Hacker's
Delight, (Addison Wesley, 2002) as well as The Aggregate's Magic Algorithms.
Method Summary |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObject. |
LazyBoolean
public LazyBoolean(LazyBooleanObjectInspector oi)
LazyBoolean
public LazyBoolean(LazyBoolean copy)
init
public void init(ByteArrayRef bytes,
int start,
int length)
- Description copied from class:
LazyObject
- Set the data for this LazyObject. 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 LazyObject<LazyBooleanObjectInspector>
- 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 © 2010 The Apache Software Foundation