public class SchemaConverters
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SchemaConverters.SchemaType
Internal wrapper for SQL data type and nullability.
|
static class |
SchemaConverters.SchemaType$ |
Constructor and Description |
---|
SchemaConverters() |
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.Schema |
toAvroType(DataType catalystType,
boolean nullable,
String recordName,
String nameSpace)
Converts a Spark SQL schema to a corresponding Avro schema.
|
static SchemaConverters.SchemaType |
toSqlType(org.apache.avro.Schema avroSchema)
Converts an Avro schema to a corresponding Spark SQL schema.
|
static SchemaConverters.SchemaType |
toSqlType(org.apache.avro.Schema avroSchema,
scala.collection.immutable.Map<String,String> options) |
public static SchemaConverters.SchemaType toSqlType(org.apache.avro.Schema avroSchema)
avroSchema
- (undocumented)public static SchemaConverters.SchemaType toSqlType(org.apache.avro.Schema avroSchema, scala.collection.immutable.Map<String,String> options)
public static org.apache.avro.Schema toAvroType(DataType catalystType, boolean nullable, String recordName, String nameSpace)
catalystType
- (undocumented)nullable
- (undocumented)recordName
- (undocumented)nameSpace
- (undocumented)