Class KeySet.Builder (6.52.0)

public static class KeySet.Builder

Builder for KeySet instances.

Inheritance

java.lang.Object > KeySet.Builder

Methods

addKey(Key key)

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.

Parameter
NameDescription
keyKey
Returns
TypeDescription
KeySet.Builder

addRange(KeyRange range)

public KeySet.Builder addRange(KeyRange range)

Adds a range to the key set. See KeyRange for details of how to specify ranges.

Parameter
NameDescription
rangeKeyRange
Returns
TypeDescription
KeySet.Builder

build()

public KeySet build()
Returns
TypeDescription
KeySet

setAll()

public KeySet.Builder setAll()

Makes the key set retrieve all rows of a table or index.

Returns
TypeDescription
KeySet.Builder