org.apache.hadoop.hive.serde2.lazybinary
Class LazyBinaryString
java.lang.Object
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryObject<OI>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryPrimitive<WritableStringObjectInspector,org.apache.hadoop.io.Text>
org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryString
public class LazyBinaryString
- extends LazyBinaryPrimitive<WritableStringObjectInspector,org.apache.hadoop.io.Text>
The serialization of LazyBinaryString is very simple: start A end bytes[] ->
|---------------------------------|
Section A is just an array of bytes which are exactly the Text contained in
this object.
Method Summary |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyBinaryObject. |
LazyBinaryString
public LazyBinaryString(LazyBinaryString copy)
init
public void init(ByteArrayRef bytes,
int start,
int length)
- Description copied from class:
LazyBinaryObject
- Set the data for this LazyBinaryObject. 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.
Never call this function if the object represent a null!!!
- Specified by:
init
in class LazyBinaryObject<WritableStringObjectInspector>
- 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