Skip to content

Instantly share code, notes, and snippets.

@chbatey
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save chbatey/c8379544ab4d7ceee7f0 to your computer and use it in GitHub Desktop.

Select an option

Save chbatey/c8379544ab4d7ceee7f0 to your computer and use it in GitHub Desktop.
Example priming
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