Class TestTableUtils
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.provider.test.TestTableUtils
Utility functions for mock classes.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic SchemabuildBeamSqlNullableSchema(Object... args) static SchemabuildBeamSqlSchema(Object... args) Create a RowsBuilder with the specified row type info.Convenient way to build aBeamSqlRows.static Schema.FieldtoNullableRecordField(Object[] args, int i) static Schema.FieldtoRecordField(Object[] args, int i)  
- 
Constructor Details
- 
TestTableUtils
public TestTableUtils() 
 - 
 - 
Method Details
- 
buildBeamSqlSchema
Create a RowsBuilder with the specified row type info.For example:
TestUtils.RowsBuilder.of( Types.INTEGER, "order_id", Types.INTEGER, "sum_site_id", Types.VARCHAR, "buyer" )- Parameters:
 args- pairs of column type and column names.
 - 
buildBeamSqlNullableSchema
 - 
toRecordField
 - 
toNullableRecordField
 - 
buildRows
Convenient way to build aBeamSqlRows.e.g.
buildRows( schema, 1, 1, 1, // the first row 2, 2, 2, // the second row ... ) 
 -