Skip to content

Instantly share code, notes, and snippets.

@brfrn169
Created July 20, 2022 03:30
Show Gist options
  • Save brfrn169/717ef5d2249f258532c6b436da8d05d4 to your computer and use it in GitHub Desktop.
Save brfrn169/717ef5d2249f258532c6b436da8d05d4 to your computer and use it in GitHub Desktop.
Example of Put with NULL
Put put =
Put.newBuilder()
.namespace("ns")
.table("tbl")
.partitionKey(Key.ofInt("c1", 10))
.clusteringKey(Key.of("c2", "aaa", "c3", 100L))
.booleanValue("c1", null)
.intValue("c2", null)
.bigIntValue("c3", null)
.floatValue("c4", null)
.doubleValue("c5", null)
.textValue("c6", null)
.blobValue("c7", null)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment