Class BigQueryUtils.SchemaConversionOptions
- java.lang.Object
-
- org.apache.beam.sdk.io.gcp.bigquery.BigQueryUtils.SchemaConversionOptions
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- BigQueryUtils
public abstract static class BigQueryUtils.SchemaConversionOptions extends java.lang.Object implements java.io.SerializableOptions for how to convert BigQuery schemas to Beam schemas.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBigQueryUtils.SchemaConversionOptions.BuilderBuilder forBigQueryUtils.SchemaConversionOptions.
-
Constructor Summary
Constructors Constructor Description SchemaConversionOptions()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BigQueryUtils.SchemaConversionOptions.Builderbuilder()abstract booleangetInferMaps()/** Controls whether to use the map or row FieldType for a TableSchema field that appears to represent a map (it is an array of structs containing onlykeyandvaluefields).abstract TimestampPrecisiongetPicosecondTimestampMapping()Controls how BigQueryTIMESTAMP(12)(picosecond precision) columns are mapped to Beam schema types.
-
-
-
Method Detail
-
getInferMaps
public abstract boolean getInferMaps()
/** Controls whether to use the map or row FieldType for a TableSchema field that appears to represent a map (it is an array of structs containing onlykeyandvaluefields).
-
getPicosecondTimestampMapping
public abstract TimestampPrecision getPicosecondTimestampMapping()
Controls how BigQueryTIMESTAMP(12)(picosecond precision) columns are mapped to Beam schema types.Standard TIMESTAMP(6) columns are mapped to FieldType.DATETIME, which only support up to millisecond precision. This option allows mapping TIMESTAMP(12) columns to logical types Timestamp.MILLIS, Timestamp.MICROS, Timestamp.NANOS or preserve full picosecond precision as a STRING type.
This option has no effect on
TIMESTAMP(6)(microsecond) columns.Defaults to
TimestampPrecision.NANOS.
-
builder
public static BigQueryUtils.SchemaConversionOptions.Builder builder()
-
-