Skip to content

Instantly share code, notes, and snippets.

@dbergqvist
Created October 21, 2019 15:09
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/978a202dff49cdd1d16b105b4118ac75 to your computer and use it in GitHub Desktop.
Save dbergqvist/978a202dff49cdd1d16b105b4118ac75 to your computer and use it in GitHub Desktop.
Filters.ChainFilter chain = FILTERS
.chain()
.filter(FILTERS.limit().cellsPerColumn(1))
.filter(FILTERS.condition(
FILTERS.chain()
.filter(FILTERS.limit().cellsPerColumn(1))
.filter(FILTERS.qualifier().exactMatch("DestinationName"))
.filter(FILTERS.value().exactMatch("Select Bus Service Yorkville East End AV")))
.then(FILTERS
.interleave()
.filter(FILTERS.qualifier().exactMatch(LAT_COLUMN_NAME_STRING))
.filter(FILTERS.qualifier().exactMatch(LONG_COLUMN_NAME_STRING))));
Query query = Query.create(TABLE_ID)
.prefix("MTA/M86-SBS/")
.filter(chain);
ServerStream<Row> rows = dataClient.readRows(query);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment