Class KeyRange.Builder (6.80.1)

public static class KeyRange.Builder

Builder for KeyRange instances.

Inheritance

java.lang.Object > KeyRange.Builder

Methods

build()

public KeyRange build()
Returns
Type Description
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
Name Description
key Key
Returns
Type Description
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
Name Description
type KeyRange.Endpoint
Returns
Type Description
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
Name Description
key Key
Returns
Type Description
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
Name Description
type KeyRange.Endpoint
Returns
Type Description
KeyRange.Builder