Class KeyRange.Builder (6.60.0)

public static class KeyRange.Builder

Builder for KeyRange instances.

Inheritance

java.lang.Object > KeyRange.Builder

Methods

build()

public KeyRange build()
Returns
TypeDescription
KeyRange

setEnd(Key key)

public KeyRange.Builder setEnd(Key key)

Sets the end key of the range. This must be set before #build() is called.

Parameter
NameDescription
keyKey
Returns
TypeDescription
KeyRange.Builder

setEndType(KeyRange.Endpoint type)

public KeyRange.Builder setEndType(KeyRange.Endpoint type)

Sets whether the end key is inclusive (CLOSED) or exclusive (OPEN). The default is OPEN.

Parameter
NameDescription
typeKeyRange.Endpoint
Returns
TypeDescription
KeyRange.Builder

setStart(Key key)

public KeyRange.Builder setStart(Key key)

Sets the start key of the range. This must be set before #build() is called.

Parameter
NameDescription
keyKey
Returns
TypeDescription
KeyRange.Builder

setStartType(KeyRange.Endpoint type)

public KeyRange.Builder setStartType(KeyRange.Endpoint type)

Sets whether the start key is inclusive (CLOSED) or exclusive (OPEN). The default is CLOSED.

Parameter
NameDescription
typeKeyRange.Endpoint
Returns
TypeDescription
KeyRange.Builder