public class AvroSchemaConverter extends Object
| Constructor and Description |
|---|
AvroSchemaConverter() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.generic.GenericData.Record |
sparkRowToAvroGenericData(org.apache.spark.sql.catalyst.InternalRow row,
org.apache.spark.sql.types.StructType sparkSchema,
org.apache.avro.Schema avroSchema) |
static org.apache.avro.Schema |
sparkSchemaToAvroSchema(org.apache.spark.sql.types.StructType sparkSchema) |
public static org.apache.avro.Schema sparkSchemaToAvroSchema(org.apache.spark.sql.types.StructType sparkSchema)
public static org.apache.avro.generic.GenericData.Record sparkRowToAvroGenericData(org.apache.spark.sql.catalyst.InternalRow row,
org.apache.spark.sql.types.StructType sparkSchema,
org.apache.avro.Schema avroSchema)
Copyright © 2024. All rights reserved.