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.BuilderaddKey(Key key)Adds a key to the key set.KeySet.BuilderaddRange(KeyRange range)Adds a range to the key set.KeySetbuild()KeySet.BuildersetAll()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.keyshould 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. SeeKeyRangefor 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()
-
-