Package com.google.cloud.spanner
Class KeyRange.Builder
java.lang.Object
com.google.cloud.spanner.KeyRange.Builder
- Enclosing class:
- KeyRange
Builder for
KeyRange instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the end key of the range.setEndType(KeyRange.Endpoint type) Sets whether the end key is inclusive (CLOSED) or exclusive (OPEN).Sets the start key of the range.Sets whether the start key is inclusive (CLOSED) or exclusive (OPEN).
-
Method Details
-
setStart
Sets the start key of the range. This must be set beforebuild()is called. -
setStartType
Sets whether the start key is inclusive (CLOSED) or exclusive (OPEN). The default isCLOSED. -
setEnd
Sets the end key of the range. This must be set beforebuild()is called. -
setEndType
Sets whether the end key is inclusive (CLOSED) or exclusive (OPEN). The default isOPEN. -
build
-