| Constructor and Description |
|---|
SchemaConverter() |
| Modifier and Type | Method and Description |
|---|---|
io.cdap.cdap.api.data.schema.Schema |
getSchema(Object value,
String name)
Get the schema of the given object
|
io.cdap.cdap.api.data.schema.Schema |
toSchema(String id,
Row row)
Generates a
Schema given a row. |
public io.cdap.cdap.api.data.schema.Schema toSchema(String id, Row row) throws RecordConvertorException
Schema given a row.id - Schema idSchemaio.cdap.cdap.api.data.schema.UnsupportedTypeExceptionorg.json.JSONExceptionRecordConvertorException@Nullable public io.cdap.cdap.api.data.schema.Schema getSchema(Object value, String name) throws RecordConvertorException
value - the value to retrieve schemaname - name of the fieldRecordConvertorExceptionCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.