object SchemaReaders
- Alphabetic
- By Inheritance
- SchemaReaders
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
sealed
trait
SchemaReader[T <: SchemaConfig] extends AnyRef
Base schema reader trait
Base schema reader trait
- T
Type of schema configuration
-
implicit
class
SchemaReaderOps[T <: SchemaConfig] extends AnyRef
Implicit conversion for schema configurations that enables read method for them.
Implicit conversion for schema configurations that enables read method for them.
- T
Type of schema configuration
-
final
case class
SourceSchema(id: String, schema: StructType, columnWidths: Seq[Int] = Seq.empty, rawAvro: Option[String] = None) extends Product with Serializable
Source schema: standard representation for all explicitly defined schemas: all schemas are converted to spark StructType.
Source schema: standard representation for all explicitly defined schemas: all schemas are converted to spark StructType.
- id
Schema ID
- schema
Schema in form of StructType
- columnWidths
Sequence of column widths in order (to support fixed-width file reading)
- rawAvro
Raw avro schema representation (string in JSON format). In case when Avro schema is read from file, the original schema is stored to prevent unnecessary conversions.
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()
-
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
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()
-
implicit
object
AnySchemaReader extends SchemaReader[SchemaConfig]
General schema reader: invokes read method from schema reader that matches provided schema configuration
-
implicit
object
AvroSchemaReader extends SchemaReader[AvroSchemaConfig]
Avro schema reader: reads schema from .avsc file
-
implicit
object
DelimitedSchemaReader extends SchemaReader[DelimitedSchemaConfig]
Delimited schema reader (schema defined explicitly in job configuration file)
-
implicit
object
FixedFullSchemaReader extends SchemaReader[FixedFullSchemaConfig]
Reader for fixed schema with fully defined columns (name, type, width)
-
implicit
object
FixedShortSchemaReader extends SchemaReader[FixedShortSchemaConfig]
Reader for fixed schema with shortly defined columns (name, width)
Reader for fixed schema with shortly defined columns (name, width)
- Note
Type of columns is always a StringType
-
implicit
object
HiveSchemaReader extends SchemaReader[HiveSchemaConfig]
Hive schema reader: retrieves schema for given Hive
schema.table
- implicit object RegistrySchemaReader extends SchemaReader[RegistrySchemaConfig]
- object SourceSchema extends Serializable