@Internal public class TextJsonTable extends TextTable
TextJsonTable
is a BeamSqlTable
that reads text files and converts them according
to the JSON format.
Support format is "json"
.
Check ObjectMapper
javadoc for more info on reading and writing JSON.
schema
Constructor and Description |
---|
TextJsonTable(Schema schema,
java.lang.String filePattern,
org.apache.beam.sdk.extensions.sql.meta.provider.text.TextTableProvider.JsonToRow readConverter,
org.apache.beam.sdk.extensions.sql.meta.provider.text.TextTableProvider.RowToJson writerConverter) |
buildIOReader, buildIOWriter, getFilePattern, getTableStatistics, isBounded
getSchema
buildIOReader, constructFilter, supportsProjects
public TextJsonTable(Schema schema, java.lang.String filePattern, org.apache.beam.sdk.extensions.sql.meta.provider.text.TextTableProvider.JsonToRow readConverter, org.apache.beam.sdk.extensions.sql.meta.provider.text.TextTableProvider.RowToJson writerConverter)