org.apache.hadoop.hive.hbase
Class LazyHBaseCellMap

java.lang.Object
  extended by org.apache.hadoop.hive.serde2.lazy.LazyObjectBase
      extended by org.apache.hadoop.hive.serde2.lazy.LazyObject<OI>
          extended by org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive<LazyMapObjectInspector>
              extended by org.apache.hadoop.hive.serde2.lazy.LazyMap
                  extended by org.apache.hadoop.hive.hbase.LazyHBaseCellMap

public class LazyHBaseCellMap
extends LazyMap

LazyHBaseCellMap refines LazyMap with HBase column mapping.


Constructor Summary
LazyHBaseCellMap(LazyMapObjectInspector oi)
          Construct a LazyCellMap object with the ObjectInspector.
 
Method Summary
 Map<Object,Object> getMap()
           
 int getMapSize()
           
 Object getMapValueElement(Object key)
          Get the value in the map for the given key.
 void init(org.apache.hadoop.hbase.client.Result r, byte[] columnFamilyBytes, List<Boolean> binaryStorage)
           
 void init(org.apache.hadoop.hbase.client.Result r, byte[] columnFamilyBytes, List<Boolean> binaryStorage, byte[] qualPrefix)
           
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyMap
init
 
Methods inherited from class org.apache.hadoop.hive.serde2.lazy.LazyNonPrimitive
getObject, hashCode
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyHBaseCellMap

public LazyHBaseCellMap(LazyMapObjectInspector oi)
Construct a LazyCellMap object with the ObjectInspector.

Parameters:
oi -
Method Detail

init

public void init(org.apache.hadoop.hbase.client.Result r,
                 byte[] columnFamilyBytes,
                 List<Boolean> binaryStorage)

init

public void init(org.apache.hadoop.hbase.client.Result r,
                 byte[] columnFamilyBytes,
                 List<Boolean> binaryStorage,
                 byte[] qualPrefix)

getMapValueElement

public Object getMapValueElement(Object key)
Get the value in the map for the given key.

Overrides:
getMapValueElement in class LazyMap
Parameters:
key -
Returns:

getMap

public Map<Object,Object> getMap()
Overrides:
getMap in class LazyMap

getMapSize

public int getMapSize()
Overrides:
getMapSize in class LazyMap


Copyright © 2014 The Apache Software Foundation. All rights reserved.