2

I have setup Hbase 0.98 with huge data. Being noSQL database, HBase allows each row to have different set of columns in a column family. To filter a specific column, I can use this command

scan 'tb_webpage',{COLUMNS => 't:ad'}

What if I have to invert the condition, i.e. get all rows where "ad" does NOT exist as a column in a column family?

mazaneicha
  • 8,794
  • 4
  • 33
  • 52
Hafiz Muhammad Shafiq
  • 8,168
  • 12
  • 63
  • 121

1 Answers1

1

Use QualifierFilter,

scan 'tb_webpage',{FILTER => "QualifierFilter(!=, 'binary:ad')"}
franklinsijo
  • 17,784
  • 4
  • 45
  • 63