Created
October 21, 2019 15:09
-
-
Save dbergqvist/978a202dff49cdd1d16b105b4118ac75 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
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