Created
October 21, 2019 15:08
-
-
Save dbergqvist/3847721eea6a8e7ccdbbf48e0a027c65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scan scan = new Scan(); | |
SingleColumnValueFilter valueFilter = | |
new SingleColumnValueFilter( | |
COLUMN_FAMILY_NAME, | |
Bytes.toBytes("DestinationName"), | |
CompareOp.EQUAL, | |
Bytes.toBytes("Select Bus Service Yorkville East End AV")); | |
scan.setMaxVersions(1) | |
.addColumn(COLUMN_FAMILY_NAME, LAT_COLUMN_NAME) | |
.addColumn(COLUMN_FAMILY_NAME, LONG_COLUMN_NAME); | |
scan.withStartRow(Bytes.toBytes("MTA/M86-SBS/")) | |
.setRowPrefixFilter(Bytes.toBytes("MTA/M86-SBS/")); | |
scan.setFilter(valueFilter); | |
ResultScanner scanner = table.getScanner(scan); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment