Class Statement.Builder
java.lang.Object
com.google.cloud.bigtable.data.v2.models.sql.Statement.Builder
- Enclosing class:
- Statement
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aStatementfrom the buildersetBooleanParam(String paramName, Boolean value) Sets a query parameter with the nameparamNameand the BOOL typed valuevaluesetBytesParam(String paramName, com.google.protobuf.ByteString value) Sets a query parameter with the nameparamNameand the Bytes typed valuevaluesetDateParam(String paramName, com.google.cloud.Date value) Sets a query parameter with the nameparamNameand the DATE typed valuevaluesetDoubleParam(String paramName, Double value) Sets a query parameter with the nameparamNameand the FLOAT64 typed valuevaluesetFloatParam(String paramName, Float value) Sets a query parameter with the nameparamNameand the FLOAT32 typed valuevaluesetListParam(String paramName, List<T> value, SqlType.Array<T> arrayType) Sets a query parameter with the nameparamNameand the ARRAY typed valuevalue.setLongParam(String paramName, Long value) Sets a query parameter with the nameparamNameand the INT64 typed valuevaluesetStringParam(String paramName, String value) Sets a query parameter with the nameparamNameand the String typed valuevaluesetTimestampParam(String paramName, org.threeten.bp.Instant value) Sets a query parameter with the nameparamNameand the TIMESTAMP typed valuevalue
-
Method Details
-
build
Builds aStatementfrom the builder -
setStringParam
Sets a query parameter with the nameparamNameand the String typed valuevalue -
setBytesParam
public Statement.Builder setBytesParam(String paramName, @Nullable com.google.protobuf.ByteString value) Sets a query parameter with the nameparamNameand the Bytes typed valuevalue -
setLongParam
Sets a query parameter with the nameparamNameand the INT64 typed valuevalue -
setFloatParam
Sets a query parameter with the nameparamNameand the FLOAT32 typed valuevalue -
setDoubleParam
Sets a query parameter with the nameparamNameand the FLOAT64 typed valuevalue -
setBooleanParam
Sets a query parameter with the nameparamNameand the BOOL typed valuevalue -
setTimestampParam
public Statement.Builder setTimestampParam(String paramName, @Nullable org.threeten.bp.Instant value) Sets a query parameter with the nameparamNameand the TIMESTAMP typed valuevalue -
setDateParam
Sets a query parameter with the nameparamNameand the DATE typed valuevalue -
setListParam
public <T> Statement.Builder setListParam(String paramName, @Nullable List<T> value, SqlType.Array<T> arrayType) Sets a query parameter with the nameparamNameand the ARRAY typed valuevalue. The array element type is specified byarrayTypeand the List elements must be of the corresponding Java type. Null array elements are valid.
-