Package org.pipecraft.infra.bq
Class CreateTableDMLQuery
- java.lang.Object
-
- org.pipecraft.infra.bq.CreateTableDMLQuery
-
- All Implemented Interfaces:
BQDMLQuery,BQQuery<Void,Void>,BQResultlessQuery
public class CreateTableDMLQuery extends Object implements BQDMLQuery
Create or replaces an existing temp table in bq, with a given expiration duration.- Author:
- Eyal Schneider
-
-
Constructor Summary
Constructors Constructor Description CreateTableDMLQuery(String dataSetId, String tableName, String schema, Duration expiration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSQL()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pipecraft.infra.bq.BQQuery
getQueryParameters, isLegacySQL, mapAndAggregate
-
Methods inherited from interface org.pipecraft.infra.bq.BQResultlessQuery
aggregate, mapRow
-
-
-
-
Constructor Detail
-
CreateTableDMLQuery
public CreateTableDMLQuery(String dataSetId, String tableName, String schema, Duration expiration)
- Parameters:
dataSetId- a BQ dataset where to place the table.tableName- The name of the table to createschema- The table schema, using legal BQ syntax (e.g. "(a STRING, b INT64)")expiration- The time till table expiration. Measured from query execution (i.e. call to getSQL()). Use null for no expiration.
-
-