public class LazyBoolean extends LazyPrimitive<LazyBooleanObjectInspector,org.apache.hadoop.io.BooleanWritable>
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.
data
isNull, oi
Constructor and Description |
---|
LazyBoolean(LazyBoolean copy) |
LazyBoolean(LazyBooleanObjectInspector oi) |
Modifier and Type | Method and Description |
---|---|
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase.
|
equals, getWritableObject, hashCode, logExceptionMessage, toString
getInspector, getObject, setInspector, setNull
public LazyBoolean(LazyBooleanObjectInspector oi)
public LazyBoolean(LazyBoolean copy)
public void init(ByteArrayRef bytes, int start, int length)
LazyObjectBase
init
in interface LazyObjectBase
init
in class LazyObject<LazyBooleanObjectInspector>
bytes
- The wrapper of the byte[].start
- The start position inside the bytes.length
- The length of the data, starting from "start"ByteArrayRef
Copyright © 2017 The Apache Software Foundation. All rights reserved.