package avro
- Alphabetic
- By Inheritance
- avro
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class AvroDataToCatalyst(child: Expression, jsonFormatSchema: String, options: Map[String, String]) extends UnaryExpression with ExpectsInputTypes with Product with Serializable
-
class
AvroDeserializer extends AnyRef
A deserializer to deserialize data in avro format to data in catalyst format.
-
class
AvroOptions extends Logging with Serializable
Options for Avro Reader and Writer stored in case insensitive manner.
-
class
AvroSerializer extends Logging
A serializer to serialize data in catalyst format to data in avro format.
- case class CatalystDataToAvro(child: Expression, jsonFormatSchema: Option[String]) extends UnaryExpression with Product with Serializable
- class IncompatibleSchemaException extends Exception
- class SparkAvroKeyOutputFormat extends AvroKeyOutputFormat[GenericRecord]
Value Members
- object AvroOptions extends Serializable
- object AvroUtils extends Logging
-
object
SchemaConverters
This object contains method that are used to convert sparkSQL schemas to avro schemas and vice versa.
- object functions
Deprecated Value Members
-
def
from_avro(data: Column, jsonFormatSchema: String): Column
Converts a binary column of avro format into its corresponding catalyst value.
Converts a binary column of avro format into its corresponding catalyst value. The specified schema must match the read data, otherwise the behavior is undefined: it may fail or return arbitrary result.
- data
the binary column.
- jsonFormatSchema
the avro schema in JSON string format.
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) Please use 'org.apache.spark.sql.avro.functions.from_avro' instead.
- Since
2.4.0
-
def
to_avro(data: Column): Column
Converts a column into binary of avro format.
Converts a column into binary of avro format.
- data
the data column.
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) Please use 'org.apache.spark.sql.avro.functions.to_avro' instead.
- Since
2.4.0