Class JsonValue
-
- All Implemented Interfaces:
-
rocks.frieler.kraftsql.expressions.Expression
public final class JsonValue implements Expression<BigQueryEngine, String>
BigQuery's
JSON_VALUE()function.
-
-
Field Summary
Fields Modifier and Type Field Description private final Expression<BigQueryEngine, String>jsonStringprivate final Expression<BigQueryEngine, String>jsonPath
-
Constructor Summary
Constructors Constructor Description JsonValue(Expression<BigQueryEngine, String> jsonString, Expression<BigQueryEngine, String> jsonPath)
-
Method Summary
Modifier and Type Method Description final Expression<BigQueryEngine, String>getJsonString()final Expression<BigQueryEngine, String>getJsonPath()Stringsql()StringdefaultColumnName()Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
JsonValue
JsonValue(Expression<BigQueryEngine, String> jsonString, Expression<BigQueryEngine, String> jsonPath)
- Parameters:
jsonString- the expression to extract the JSON value fromjsonPath- optional JSONPath expression to select a certain node in the JSON document
-
-
Method Detail
-
getJsonString
final Expression<BigQueryEngine, String> getJsonString()
-
getJsonPath
final Expression<BigQueryEngine, String> getJsonPath()
-
defaultColumnName
String defaultColumnName()
-
-
-
-