Class TokenizationBigQueryIO
- java.lang.Object
-
- org.apache.beam.examples.complete.datatokenization.transforms.io.TokenizationBigQueryIO
-
public class TokenizationBigQueryIO extends java.lang.ObjectTheTokenizationBigQueryIOclass for writing data from template to BigTable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenizationBigQueryIO.RowToTableRowFnTheTokenizationBigQueryIO.RowToTableRowFnclass converts a row to tableRow usingBigQueryUtils.toTableRow().
-
Constructor Summary
Constructors Constructor Description TokenizationBigQueryIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FailsafeElement<java.lang.String,java.lang.String>wrapBigQueryInsertError(org.apache.beam.sdk.io.gcp.bigquery.BigQueryInsertError insertError)Method to wrap aBigQueryInsertErrorinto aFailsafeElement.static org.apache.beam.sdk.io.gcp.bigquery.WriteResultwrite(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row> input, java.lang.String bigQueryTableName, com.google.api.services.bigquery.model.TableSchema schema)
-
-
-
Method Detail
-
write
public static org.apache.beam.sdk.io.gcp.bigquery.WriteResult write(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row> input, java.lang.String bigQueryTableName, com.google.api.services.bigquery.model.TableSchema schema)
-
wrapBigQueryInsertError
public static FailsafeElement<java.lang.String,java.lang.String> wrapBigQueryInsertError(org.apache.beam.sdk.io.gcp.bigquery.BigQueryInsertError insertError)
Method to wrap aBigQueryInsertErrorinto aFailsafeElement.- Parameters:
insertError- BigQueryInsert error.- Returns:
- FailsafeElement object.
-
-