@Internal public final class ZetaSqlBeamTranslationUtils extends java.lang.Object
Unsupported ZetaSQL types: INT32, UINT32, UINT64, FLOAT, ENUM, PROTO, GEOGRAPHY TODO[BEAM-10238]: support ZetaSQL types: TIME, DATETIME, NUMERIC
Modifier and Type | Method and Description |
---|---|
static com.google.zetasql.Type |
beamFieldTypeToZetaSqlType(Schema.FieldType fieldType) |
static com.google.zetasql.Value |
beamRowToZetaSqlStructValue(Row row,
Schema schema) |
static com.google.zetasql.StructType |
beamSchemaToZetaSqlStructType(Schema schema) |
static com.google.zetasql.Value |
javaObjectToZetaSqlValue(java.lang.Object object,
Schema.FieldType fieldType) |
static Row |
zetaSqlStructValueToBeamRow(com.google.zetasql.Value structValue,
Schema schema,
boolean verifyValues) |
static Schema.FieldType |
zetaSqlTypeToBeamFieldType(com.google.zetasql.Type type) |
static java.lang.Object |
zetaSqlValueToJavaObject(com.google.zetasql.Value value,
boolean verifyValues) |
static java.lang.Object |
zetaSqlValueToJavaObject(com.google.zetasql.Value value,
Schema.FieldType fieldType,
boolean verifyValues) |
public static com.google.zetasql.Type beamFieldTypeToZetaSqlType(Schema.FieldType fieldType)
public static com.google.zetasql.StructType beamSchemaToZetaSqlStructType(Schema schema)
public static com.google.zetasql.Value javaObjectToZetaSqlValue(java.lang.Object object, Schema.FieldType fieldType)
public static com.google.zetasql.Value beamRowToZetaSqlStructValue(Row row, Schema schema)
public static Schema.FieldType zetaSqlTypeToBeamFieldType(com.google.zetasql.Type type)
public static java.lang.Object zetaSqlValueToJavaObject(com.google.zetasql.Value value, boolean verifyValues)
public static java.lang.Object zetaSqlValueToJavaObject(com.google.zetasql.Value value, Schema.FieldType fieldType, boolean verifyValues)