Modifier and Type | Class and Description |
---|---|
static interface |
TestBigQuery.PollingAssertion
Interface to implement a polling assertion.
|
static interface |
TestBigQuery.RowsAssertion
Interface for creating a polling eventual assertion.
|
Modifier and Type | Method and Description |
---|---|
Statement |
apply(Statement base,
Description description) |
TestBigQuery.RowsAssertion |
assertThatAllRows(Schema rowSchema) |
static TestBigQuery |
create(Schema tableSchema)
Creates an instance of this rule.
|
java.util.List<Row> |
getFlatJsonRows(Schema rowSchema)
|
TableReference |
tableReference() |
java.lang.String |
tableSpec() |
public static TestBigQuery create(Schema tableSchema)
Loads GCP configuration from TestPipelineOptions
.
public Statement apply(Statement base, Description description)
public java.lang.String tableSpec()
public TableReference tableReference()
public java.util.List<Row> getFlatJsonRows(Schema rowSchema)
Rows
with given Schema
.
Current implementation only supports flat Rows
and target Schemas
with Schema.FieldType.STRING
fields only.
public TestBigQuery.RowsAssertion assertThatAllRows(Schema rowSchema)