Class KeySet.Builder

java.lang.Object
com.google.cloud.spanner.KeySet.Builder
Enclosing class:
KeySet

public static class KeySet.Builder extends Object
Builder for KeySet instances.
  • Method Details

    • addKey

      public KeySet.Builder addKey(Key key)
      Adds a key to the key set. key should contain exactly as many elements as there are columns in the primary or index key with this this key set is used.
    • addRange

      public KeySet.Builder addRange(KeyRange range)
      Adds a range to the key set. See KeyRange for details of how to specify ranges.
    • setAll

      public KeySet.Builder setAll()
      Makes the key set retrieve all rows of a table or index.
    • build

      public KeySet build()