Package com.google.cloud.spanner
Class KeySet.Builder
- java.lang.Object
-
- com.google.cloud.spanner.KeySet.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeySet.Builder
addKey(Key key)
Adds a key to the key set.KeySet.Builder
addRange(KeyRange range)
Adds a range to the key set.KeySet
build()
KeySet.Builder
setAll()
Makes the key set retrieve all rows of a table or index.
-
-
-
Method Detail
-
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. SeeKeyRange
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()
-
-