Class KeySet.Builder (6.74.1)

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
Name Description
key Key
Returns
Type Description
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
Name Description
range KeyRange
Returns
Type Description
KeySet.Builder

build()

public KeySet build()
Returns
Type Description
KeySet

setAll()

public KeySet.Builder setAll()

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

Returns
Type Description
KeySet.Builder