org.apache.hadoop.hive.serde2.lazydio
Class LazyDioLong
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<LazyLongObjectInspector,org.apache.hadoop.io.LongWritable>
org.apache.hadoop.hive.serde2.lazy.LazyLong
org.apache.hadoop.hive.serde2.lazydio.LazyDioLong
public class LazyDioLong
- extends LazyLong
LazyLongBinary for storing a long value as a LongWritable. This class complements class
LazyLong. It's primary difference is the init(ByteArrayRef, int, int)
method, which
reads the long value stored in the default binary format.
Fields inherited from class org.apache.hadoop.hive.serde2.lazy.LazyObject |
oi |
Method Summary |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObjectBase. |
LazyDioLong
public LazyDioLong(LazyLongObjectInspector oi)
LazyDioLong
public LazyDioLong(LazyDioLong 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.
- Overrides:
init
in class LazyLong
- 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 © 2013 The Apache Software Foundation