Charlot
Charlot

Reputation: 151

fastest method to query values by row keys in hbase

faster method to query the rows in hbase that row-keys are in rowKeys?

rowKeys is an array like:

rowKeys=[1,2,4,5,6,34,223,113]

(like sql in)

Upvotes: 0

Views: 604

Answers (1)

maksimov
maksimov

Reputation: 5811

In Java you can build your IN clause as a FilterList of RowFilter's - with MUST_PASS_ONE flag.

See example here.

Upvotes: 1

Related Questions