org.apache.storm.hbase.bolt.mapper
Class HBaseProjectionCriteria

java.lang.Object
  extended by org.apache.storm.hbase.bolt.mapper.HBaseProjectionCriteria
All Implemented Interfaces:
Serializable

public class HBaseProjectionCriteria
extends Object
implements Serializable

Allows the user to specify the projection criteria. If only columnFamily is specified all columns from that family will be returned. If a column is specified only that column from that family will be returned.

See Also:
Serialized Form

Nested Class Summary
static class HBaseProjectionCriteria.ColumnMetaData
           
 
Constructor Summary
HBaseProjectionCriteria()
           
 
Method Summary
 HBaseProjectionCriteria addColumn(HBaseProjectionCriteria.ColumnMetaData column)
          Only this column from the the columnFamily will be included as result of HBase lookup.
 HBaseProjectionCriteria addColumnFamily(String columnFamily)
          all columns from this family will be included as result of HBase lookup.
 List<byte[]> getColumnFamilies()
           
 List<HBaseProjectionCriteria.ColumnMetaData> getColumns()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseProjectionCriteria

public HBaseProjectionCriteria()
Method Detail

addColumnFamily

public HBaseProjectionCriteria addColumnFamily(String columnFamily)
all columns from this family will be included as result of HBase lookup.

Parameters:
columnFamily -
Returns:

addColumn

public HBaseProjectionCriteria addColumn(HBaseProjectionCriteria.ColumnMetaData column)
Only this column from the the columnFamily will be included as result of HBase lookup.

Parameters:
column -
Returns:

getColumns

public List<HBaseProjectionCriteria.ColumnMetaData> getColumns()

getColumnFamilies

public List<byte[]> getColumnFamilies()


Copyright © 2016 The Apache Software Foundation. All Rights Reserved.