Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2012 18:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4227003 to your computer and use it in GitHub Desktop.
Save anonymous/4227003 to your computer and use it in GitHub Desktop.
Example Filter in a simple Scan
Scan scan = new Scan();
scan.setFilter(new MyFilter(appId)); // get only rows for the app with appId
Htable table = new HTable(config, Bytes.UTF8(tableName); // for this table
ResultScanner results = table.getScanner(scan); // apply the scan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment