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.
Modifier and Type | Class and Description |
---|---|
static class |
HBaseProjectionCriteria.ColumnMetaData |
Constructor and Description |
---|
HBaseProjectionCriteria() |
Modifier and Type | Method and Description |
---|---|
HBaseProjectionCriteria |
addColumn(HBaseProjectionCriteria.ColumnMetaData column)
Only this column from the the columnFamily will be included as result of HBase lookup.
|
HBaseProjectionCriteria |
addColumnFamily(byte[] columnFamily)
all columns from this family 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() |
public HBaseProjectionCriteria addColumnFamily(String columnFamily)
all columns from this family will be included as result of HBase lookup.
public HBaseProjectionCriteria addColumnFamily(byte[] columnFamily)
all columns from this family will be included as result of HBase lookup.
public HBaseProjectionCriteria addColumn(HBaseProjectionCriteria.ColumnMetaData column)
Only this column from the the columnFamily will be included as result of HBase lookup.
public List<HBaseProjectionCriteria.ColumnMetaData> getColumns()
public List<byte[]> getColumnFamilies()
Copyright © 2019 The Apache Software Foundation. All rights reserved.