Package com.google.cloud.spanner
Class Key.Builder
- java.lang.Object
-
- com.google.cloud.spanner.Key.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Key.Builderappend(double value)Appends aFLOAT64value to the key.Key.Builderappend(long value)Appends anINT64value to the key.Key.Builderappend(com.google.cloud.ByteArray value)Appends aBYTESvalue to the key.Key.Builderappend(com.google.cloud.Date value)Appends aDATEvalue to the keyKey.Builderappend(com.google.cloud.Timestamp value)Appends aTIMESTAMPvalue to the keyKey.Builderappend(Boolean value)Appends aBOOLvalue to the key.Key.Builderappend(Double value)Appends aFLOAT64value to the key.Key.Builderappend(Long value)Appends anINT64value to the key.Key.Builderappend(String value)Appends aSTRINGvalue to the key.Key.Builderappend(BigDecimal value)Appends aNUMERICvalue to the key.Key.BuilderappendObject(Object value)Appends an object following the same conversion rules asKey.of(Object...).Keybuild()
-
-
-
Method Detail
-
append
public Key.Builder append(@Nullable Boolean value)
Appends aBOOLvalue to the key.
-
append
public Key.Builder append(long value)
Appends anINT64value to the key.
-
append
public Key.Builder append(@Nullable Long value)
Appends anINT64value to the key.
-
append
public Key.Builder append(double value)
Appends aFLOAT64value to the key.
-
append
public Key.Builder append(@Nullable Double value)
Appends aFLOAT64value to the key.
-
append
public Key.Builder append(@Nullable BigDecimal value)
Appends aNUMERICvalue to the key.
-
append
public Key.Builder append(@Nullable String value)
Appends aSTRINGvalue to the key.
-
append
public Key.Builder append(@Nullable com.google.cloud.ByteArray value)
Appends aBYTESvalue to the key.
-
append
public Key.Builder append(@Nullable com.google.cloud.Timestamp value)
Appends aTIMESTAMPvalue to the key
-
append
public Key.Builder append(@Nullable com.google.cloud.Date value)
Appends aDATEvalue to the key
-
appendObject
public Key.Builder appendObject(@Nullable Object value)
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
public Key build()
-
-