public class BigQueryOutput extends TaskOutput<StagingTableId,com.google.cloud.bigquery.TableId>
Modifier and Type | Method and Description |
---|---|
static BigQueryOutput |
create(String project,
String dataset,
String table) |
static BigQueryOutput |
create(com.google.cloud.bigquery.TableId tableId) |
Optional<com.google.cloud.bigquery.TableId> |
lookup(Task<com.google.cloud.bigquery.TableId> task)
Perform a lookup of the value this task would have produced if it ran.
|
static BigQueryMocking |
mock() |
StagingTableId |
provide(EvalContext evalContext)
Creates a new instance of type
T . |
com.google.cloud.bigquery.TableId |
tableId() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onFail, onSuccess, preRun
public static BigQueryOutput create(String project, String dataset, String table)
public static BigQueryOutput create(com.google.cloud.bigquery.TableId tableId)
public com.google.cloud.bigquery.TableId tableId()
public StagingTableId provide(EvalContext evalContext)
TaskContext
T
. The given EvalContext
will be
the evaluation context for the task.
The task itself can be accessed through EvalContext.currentTask()
.evalContext
- The evaluation context in which the current task is being evaluatedpublic Optional<com.google.cloud.bigquery.TableId> lookup(Task<com.google.cloud.bigquery.TableId> task)
TaskOutput
lookup
in class TaskOutput<StagingTableId,com.google.cloud.bigquery.TableId>
task
- a task with a TaskOutput
to lookup a value forTaskOutput
(e.g. from a previous run)public static BigQueryMocking mock()
Copyright © 2020. All rights reserved.