[HBase] Get all columns from a column family no matter qualifier
Hi!
I am trying to get data from a column family called DHCP from HBase. For the moment something like this:
I've searched the code and this is what Talend does:
org.apache.hadoop.hbase.client.Scan scan_tHBaseInput_1 = new org.apache.hadoop.hbase.client.Scan();
scan_tHBaseInput_1.addColumn(org.apache.hadoop.hbase.util.Bytes.toBytes("DHCP"), org.apache.hadoop.hbase.util.Bytes.toBytes("myQualifier1"));
That is to say that I'll get all columns with qualifier "myQualifier1" of column family "DHCP". That's ok.
But what if instead of getting the columns with qualifier "myQualifier1" I want to get all columns from family "DHCP" regardless of the qualifier? According to Apache Hadoop Hbase API I should be using addFamily(byte[] family) instead of addColum(byte[] family, byte[] qualifier]). How could I configure tHBaseInput_1 that way?
Thank you in advance.
Hi
I understand your request, however this component does not support dynamic schema now. To get all columns from a family, you need to define a dynamic schema. Please report a feature request on our
bugtracker.
Best regards
Shong