org.apache.hadoop.hive.serde2.lazy
Class LazyString
java.lang.Object
org.apache.hadoop.hive.serde2.lazy.LazyPrimitive<String>
org.apache.hadoop.hive.serde2.lazy.LazyString
- All Implemented Interfaces:
- LazyObject
public class LazyString
- extends LazyPrimitive<String>
LazyObject for storing a value of String.
Method Summary |
void |
init(ByteArrayRef bytes,
int start,
int length)
Set the data for this LazyObject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyString
public LazyString()
init
public void init(ByteArrayRef bytes,
int start,
int length)
- Description copied from interface:
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.
- 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 © 2009 The Apache Software Foundation