An interface for binding a Value in some context. Users of the Cloud Spanner client
library never create a ValueBinder directly; instead this interface is returned from
other parts of the library involved in Value construction. For example, Mutation.WriteBuilder#set(String) returns a binder to bind a column value, and
Statement#bind(String) returns a binder to bind a parameter to a value.
ValueBinder subclasses typically carry state and are therefore not thread-safe,
although the core implementation itself is thread-safe.
Binds to Value.bytes(value). Use #to(Value) in combination with Value#bytesFromBase64(String) if you already have the value that you want to bind in base64
format. This prevents unnecessary decoding and encoding of base64 strings.
Parameter
Name
Description
value
com.google.cloud.ByteArray
Returns
Type
Description
R
to(Date value)
publicRto(Datevalue)
Binds to Value.date(value)
Parameter
Name
Description
value
com.google.cloud.Date
Returns
Type
Description
R
to(Timestamp value)
publicRto(Timestampvalue)
Binds to Value.timestamp(value)
Parameter
Name
Description
value
com.google.cloud.Timestamp
Returns
Type
Description
R
to(Struct value)
publicRto(Structvalue)
Binds a non-NULL struct value to Value.struct(value)
Binds to Value.bytesArray(values). The given strings must be valid base64 encoded
strings. Use this method instead of #toBytesArray(Iterable) if you already have the
values in base64 format to prevent unnecessary decoding and encoding to/from base64.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]