object SchemaConverters
* On top level, the converters provide three high level interface. 1. toSqlType: This function takes an avro schema and returns a sql schema. 2. createConverterToSQL: Returns a function that is used to convert avro types to their corresponding sparkSQL representations. 3. convertTypeToAvro: This function constructs converter function for a given sparkSQL datatype. This is used in writing Avro records out to disk
- Annotations
- @Private()
- Alphabetic
- By Inheritance
- SchemaConverters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class SchemaType(dataType: DataType, nullable: Boolean) extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createConverterToAvro(dataType: DataType, structName: String, recordNamespace: String): (Any) ⇒ Any
This function constructs converter function for a given sparkSQL datatype.
This function constructs converter function for a given sparkSQL datatype. This is used in writing Avro records out to disk
-
def
createConverterToSQL(schema: Schema): (Any) ⇒ Any
Returns a function that is used to convert avro types to their corresponding sparkSQL representations.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toSqlType(avroSchema: Schema): SchemaType
This function takes an avro schema and returns a sql schema.
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()