org.apache.hadoop.hive.serde2.lazy
Class LazyObjectBase
java.lang.Object
  
org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
- Direct Known Subclasses: 
 - LazyBinaryObject, LazyObject
 
public abstract class LazyObjectBase
- extends Object
 
 
| 
Method Summary | 
abstract  Object | 
getObject()
 
          If the LazyObjectBase is a primitive Object, then deserialize it and return the
 actual primitive Object. | 
abstract  void | 
init(ByteArrayRef bytes,
     int start,
     int length)
 
          Set the data for this LazyObjectBase. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LazyObjectBase
public LazyObjectBase()
init
public abstract void init(ByteArrayRef bytes,
                          int start,
                          int length)
- 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.
- 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
 
 
getObject
public abstract Object getObject()
- If the LazyObjectBase is a primitive Object, then deserialize it and return the
 actual primitive Object. Otherwise (array, map, struct), return this.
 
 
Copyright © 2013 The Apache Software Foundation