@Experimental public class TestTableUtils extends java.lang.Object
Constructor and Description |
---|
TestTableUtils() |
Modifier and Type | Method and Description |
---|---|
static Schema |
buildBeamSqlNullableSchema(java.lang.Object... args) |
static Schema |
buildBeamSqlSchema(java.lang.Object... args)
Create a RowsBuilder with the specified row type info.
|
static java.util.List<Row> |
buildRows(Schema type,
java.util.List<?> rowsValues)
Convenient way to build a
BeamSqlRow s. |
static Schema.Field |
toNullableRecordField(java.lang.Object[] args,
int i) |
static Schema.Field |
toRecordField(java.lang.Object[] args,
int i) |
public static Schema buildBeamSqlSchema(java.lang.Object... args)
For example:
TestUtils.RowsBuilder.of(
Types.INTEGER, "order_id",
Types.INTEGER, "sum_site_id",
Types.VARCHAR, "buyer"
)
args
- pairs of column type and column names.public static Schema buildBeamSqlNullableSchema(java.lang.Object... args)
public static Schema.Field toRecordField(java.lang.Object[] args, int i)
public static Schema.Field toNullableRecordField(java.lang.Object[] args, int i)