Package com.google.cloud.spanner
Class Key.Builder
java.lang.Object
com.google.cloud.spanner.Key.Builder
- Enclosing class:
- Key
Builder for
Key
instances.-
Method Summary
Modifier and TypeMethodDescriptionappend
(double value) Appends aFLOAT64
value to the key.append
(long value) Appends anINT64
value to the key.append
(com.google.cloud.ByteArray value) Appends aBYTES
value to the key.append
(com.google.cloud.Date value) Appends aDATE
value to the keyappend
(com.google.cloud.Timestamp value) Appends aTIMESTAMP
value to the keyAppends aBOOL
value to the key.Appends aFLOAT64
value to the key.Appends anINT64
value to the key.Appends aSTRING
value to the key.append
(BigDecimal value) Appends aNUMERIC
value to the key.appendObject
(Object value) Appends an object following the same conversion rules asKey.of(Object...)
.build()
-
Method Details
-
append
Appends aBOOL
value to the key. -
append
Appends anINT64
value to the key. -
append
Appends anINT64
value to the key. -
append
Appends aFLOAT64
value to the key. -
append
Appends aFLOAT64
value to the key. -
append
Appends aNUMERIC
value to the key. -
append
Appends aSTRING
value to the key. -
append
Appends aBYTES
value to the key. -
append
Appends aTIMESTAMP
value to the key -
append
Appends aDATE
value to the key -
appendObject
Appends an object following the same conversion rules asKey.of(Object...)
. When using theBuilder
, most code should prefer using the strongly typedappend(...)
methods, for both performance and the benefit of compile-time checking. -
build
-