Skip to content

Instantly share code, notes, and snippets.

@dbergqvist
Created October 21, 2019 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbergqvist/4d1d4c3bd5141067e1a2e31c65a93377 to your computer and use it in GitHub Desktop.
Save dbergqvist/4d1d4c3bd5141067e1a2e31c65a93377 to your computer and use it in GitHub Desktop.
private static final String COLUMN_FAMILY_NAME_STRING = "cf";
private static final String LAT_COLUMN_NAME_STRING = "VehicleLocation.Latitude";
private static final String LONG_COLUMN_NAME_STRING = "VehicleLocation.Longitude";
String rowKey = "MTA/M86-SBS/1496275200000/NYCT_5824";
Row row = dataClient.readRow(TABLE_ID, rowKey,
FILTERS.interleave()
.filter(FILTERS.qualifier().exactMatch(LAT_COLUMN_NAME_STRING))
.filter(FILTERS.qualifier().exactMatch(LONG_COLUMN_NAME_STRING)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment