| Constructor and Description |
|---|
SchemaConverter() |
| Modifier and Type | Method and Description |
|---|---|
io.cdap.cdap.api.data.schema.Schema |
getSchema(Object value,
String name)
Generates the CDAP Schema for the given object
|
io.cdap.cdap.api.data.schema.Schema |
getSchema(Object value,
String name,
String recordPrefix)
Generates the CDAP Schema for 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 fieldRecordConvertorException@Nullable public io.cdap.cdap.api.data.schema.Schema getSchema(Object value, String name, @Nullable String recordPrefix) throws RecordConvertorException
value - the value to retrieve schemaname - name of the fieldrecordPrefix - prefix to append at the beginning of a custom recordRecordConvertorExceptionCopyright © 2022 CDAP Licensed under the Apache License, Version 2.0.