Skip to content

Does happybase support filters? #11

@shengjie-min

Description

@shengjie-min

I noticed that in the document:

scan(row_start=None, row_stop=None, row_prefix=None, columns=None, filter=None, timestamp=None, include_timestamp=False, batch_size=1000, limit=None)

The filter argument may be a filter string that will be applied at the server by the region servers.

Does the filter here mean column filters? what does "filter string" mean? in hbase shell, you use filter like this:

scan 'table', { COLUMNS => 'family:qualifier', FILTER =>
SingleColumnValueFilter.new
(Bytes.toBytes('family'),
Bytes.toBytes('qualifier'),
CompareFilter::CompareOp.valueOf('EQUAL'),
SubstringComparator.new('somevalue'))
}

How does it work using happybase ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions