|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazyObjectBase
org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive<LazySimpleStructObjectInspector>
org.apache.hadoop.hive.serde2.lazy.LazyStruct
org.apache.hadoop.hive.hbase.LazyHBaseRow
public class LazyHBaseRow
LazyObject for storing an HBase row. The field of an HBase row can be primitive or non-primitive.
| Constructor Summary | |
|---|---|
LazyHBaseRow(LazySimpleStructObjectInspector oi)
Construct a LazyHBaseRow object with the ObjectInspector. |
|
| Method Summary | |
|---|---|
Object |
getField(int fieldID)
Get one field out of the HBase row. |
ArrayList<Object> |
getFieldsAsList()
Get the values of the fields as an ArrayList. |
Object |
getObject()
|
void |
init(org.apache.hadoop.hbase.client.Result r,
List<org.apache.hadoop.hive.hbase.HBaseSerDe.ColumnMapping> columnsMapping)
Set the HBase row data(a Result writable) for this LazyStruct. |
void |
init(org.apache.hadoop.hbase.client.Result r,
List<org.apache.hadoop.hive.hbase.HBaseSerDe.ColumnMapping> columnsMapping,
Object compositeKeyObj)
Set the HBase row data(a Result writable) for this LazyStruct. |
| Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyStruct |
|---|
getRawDataSerializedSize, init |
| Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive |
|---|
hashCode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyHBaseRow(LazySimpleStructObjectInspector oi)
| Method Detail |
|---|
public void init(org.apache.hadoop.hbase.client.Result r,
List<org.apache.hadoop.hive.hbase.HBaseSerDe.ColumnMapping> columnsMapping)
LazyHBaseRow#init(Result)
public void init(org.apache.hadoop.hbase.client.Result r,
List<org.apache.hadoop.hive.hbase.HBaseSerDe.ColumnMapping> columnsMapping,
Object compositeKeyObj)
compositeKeyClass - custom implementation to interpret the composite keyLazyHBaseRow#init(Result)public Object getField(int fieldID)
getField in class LazyStructfieldID - The field ID
public ArrayList<Object> getFieldsAsList()
getFieldsAsList in class LazyStructpublic Object getObject()
getObject in class LazyStruct
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||