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 aFLOAT64value to the key.append(long value) Appends anINT64value to the key.append(com.google.cloud.ByteArray value) Appends aBYTESvalue to the key.append(com.google.cloud.Date value) Appends aDATEvalue to the keyappend(com.google.cloud.Timestamp value) Appends aTIMESTAMPvalue to the keyappend(com.google.protobuf.ProtocolMessageEnum value) Appends aENUMvalue to the key.Appends aBOOLvalue to the key.Appends aFLOAT64value to the key.Appends anINT64value to the key.Appends aSTRINGvalue to the key.append(BigDecimal value) Appends aNUMERICvalue to the key.appendObject(Object value) Appends an object following the same conversion rules asKey.of(Object...).build()
-
Method Details
-
append
Appends aBOOLvalue to the key. -
append
Appends anINT64value to the key. -
append
Appends anINT64value to the key. -
append
Appends aFLOAT64value to the key. -
append
Appends aFLOAT64value to the key. -
append
Appends aNUMERICvalue to the key. -
append
Appends aENUMvalue to the key. -
append
Appends aSTRINGvalue to the key. -
append
Appends aBYTESvalue to the key. -
append
Appends aTIMESTAMPvalue to the key -
append
Appends aDATEvalue 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
-