Package | Description |
---|---|
com.google.cloud.bigquery |
A client for BigQuery – A fully managed, petabyte scale, low cost enterprise data warehouse for
analytics.
|
Modifier and Type | Method and Description |
---|---|
static <T> QueryParameterValue |
QueryParameterValue.array(T[] array,
Class<T> clazz)
Creates a
QueryParameterValue object with a type of ARRAY, and an array element type
based on the given class. |
static <T> QueryParameterValue |
QueryParameterValue.array(T[] array,
StandardSQLTypeName type)
Creates a
QueryParameterValue object with a type of ARRAY the given array element type. |
static QueryParameterValue |
QueryParameterValue.bigNumeric(BigDecimal value)
Creates a
QueryParameterValue object with a type of BIGNUMERIC. |
static QueryParameterValue |
QueryParameterValue.bool(Boolean value)
Creates a
QueryParameterValue object with a type of BOOL. |
abstract QueryParameterValue |
QueryParameterValue.Builder.build()
Creates a
QueryParameterValue object. |
static QueryParameterValue |
QueryParameterValue.bytes(byte[] value)
Creates a
QueryParameterValue object with a type of BYTES. |
static QueryParameterValue |
QueryParameterValue.date(String value)
Creates a
QueryParameterValue object with a type of DATE. |
static QueryParameterValue |
QueryParameterValue.dateTime(String value)
Creates a
QueryParameterValue object with a type of DATETIME. |
static QueryParameterValue |
QueryParameterValue.float64(Double value)
Creates a
QueryParameterValue object with a type of FLOAT64. |
static QueryParameterValue |
QueryParameterValue.float64(Float value)
Creates a
QueryParameterValue object with a type of FLOAT64. |
static QueryParameterValue |
QueryParameterValue.geography(String value)
Creates a
QueryParameterValue object with a type of GEOGRAPHY. |
abstract QueryParameterValue |
Parameter.getValue()
Returns the value for a query parameter along with its type.
|
static QueryParameterValue |
QueryParameterValue.int64(Integer value)
Creates a
QueryParameterValue object with a type of INT64. |
static QueryParameterValue |
QueryParameterValue.int64(Long value)
Creates a
QueryParameterValue object with a type of INT64. |
static QueryParameterValue |
QueryParameterValue.interval(org.threeten.extra.PeriodDuration value)
Creates a
QueryParameterValue object with a type of INTERVAL. |
static QueryParameterValue |
QueryParameterValue.interval(String value)
Creates a
QueryParameterValue object with a type of INTERVAL. |
static QueryParameterValue |
QueryParameterValue.json(com.google.gson.JsonObject value)
Creates a
QueryParameterValue object with a type of JSON. |
static QueryParameterValue |
QueryParameterValue.json(String value)
Creates a
QueryParameterValue object with a type of JSON. |
static QueryParameterValue |
QueryParameterValue.numeric(BigDecimal value)
Creates a
QueryParameterValue object with a type of NUMERIC. |
static <T> QueryParameterValue |
QueryParameterValue.of(T value,
Class<T> type)
Creates a
QueryParameterValue object with the given value and type. |
static <T> QueryParameterValue |
QueryParameterValue.of(T value,
StandardSQLTypeName type)
Creates a
QueryParameterValue object with the given value and type. |
static QueryParameterValue |
QueryParameterValue.string(String value)
Creates a
QueryParameterValue object with a type of STRING. |
static QueryParameterValue |
QueryParameterValue.struct(Map<String,QueryParameterValue> struct)
Creates a map with
QueryParameterValue object and a type of STRUCT the given struct
element type. |
static QueryParameterValue |
QueryParameterValue.time(String value)
Creates a
QueryParameterValue object with a type of TIME. |
static QueryParameterValue |
QueryParameterValue.timestamp(Long value)
Creates a
QueryParameterValue object with a type of TIMESTAMP. |
static QueryParameterValue |
QueryParameterValue.timestamp(String value)
Creates a
QueryParameterValue object with a type of TIMESTAMP. |
Modifier and Type | Method and Description |
---|---|
List<QueryParameterValue> |
QueryParameterValue.getArrayValues()
Returns the array values of this parameter.
|
Map<String,QueryParameterValue> |
QueryJobConfiguration.getNamedParameters()
Returns the named query parameters to use for the query.
|
List<QueryParameterValue> |
QueryJobConfiguration.getPositionalParameters()
Returns the positional query parameters to use for the query.
|
Map<String,QueryParameterValue> |
QueryParameterValue.getStructTypes()
Returns the data type of the struct elements.
|
Map<String,QueryParameterValue> |
QueryParameterValue.getStructValues()
Returns the struct values of this parameter.
|
Modifier and Type | Method and Description |
---|---|
QueryJobConfiguration.Builder |
QueryJobConfiguration.Builder.addNamedParameter(String name,
QueryParameterValue value)
Adds a named query parameter to the set of query parameters.
|
QueryJobConfiguration.Builder |
QueryJobConfiguration.Builder.addPositionalParameter(QueryParameterValue value)
Adds a positional query parameter to the list of query parameters.
|
abstract Parameter.Builder |
Parameter.Builder.setValue(QueryParameterValue parameter)
Sets the the value for a query parameter along with its type.
|
Modifier and Type | Method and Description |
---|---|
QueryParameterValue.Builder |
QueryParameterValue.Builder.setArrayValues(List<QueryParameterValue> arrayValues)
Sets array values.
|
QueryJobConfiguration.Builder |
QueryJobConfiguration.Builder.setNamedParameters(Map<String,QueryParameterValue> values)
Sets the query parameters to a set of named query parameters to use in the query.
|
QueryJobConfiguration.Builder |
QueryJobConfiguration.Builder.setPositionalParameters(Iterable<QueryParameterValue> values)
Sets the query parameters to a list of positional query parameters to use in the query.
|
QueryParameterValue.Builder |
QueryParameterValue.Builder.setStructTypes(Map<String,QueryParameterValue> structTypes)
Sets the data type of the struct elements.
|
QueryParameterValue.Builder |
QueryParameterValue.Builder.setStructValues(Map<String,QueryParameterValue> structValues)
Sets struct values.
|
static QueryParameterValue |
QueryParameterValue.struct(Map<String,QueryParameterValue> struct)
Creates a map with
QueryParameterValue object and a type of STRUCT the given struct
element type. |
Copyright © 2023 Google LLC. All rights reserved.