org.apache.storm.hbase.bolt.mapper
Class HBaseProjectionCriteria
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HBaseProjectionCriteria
public HBaseProjectionCriteria()
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.