Last active
August 29, 2015 14:14
-
-
Save chbatey/c8379544ab4d7ceee7f0 to your computer and use it in GitHub Desktop.
Example priming
This file contains hidden or 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
| String query = "select name from people"; | |
| Map<String, String> row = ImmutableMap.of("name", "Christopher"); | |
| Map<String, String> row = ImmutableMap.of("name", "Alexandra"); | |
| Map<String, ColumnTypes> columnTypes = ImmutableMap.of("name", ColumnTypes.Varchar); | |
| PrimingRequest prime = PrimingRequest.queryBuilder() | |
| .withQuery(query) | |
| .withRows(row) | |
| .withColumnTypes(columnTypes) | |
| .build(); | |
| primingClient.primeQuery(prime); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment