implicit object FixedFileSourceReader extends SourceReader[FixedFileSourceConfig]
Fixed file source reader: reads fixed-width file provided with schema ID corresponding to this file contents.
- Note
In order to read fixed file source it is required to provide map of source schemas.
- Alphabetic
- By Inheritance
- FixedFileSourceReader
- SourceReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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()
-
def
read(config: FixedFileSourceConfig)(implicit settings: AppSettings, spark: SparkSession, fs: FileSystem, schemas: Map[String, SourceSchema], connections: Map[String, DQConnection], checkpoints: Map[String, Checkpoint]): Result[Source]
Safely reads source given source configuration.
Safely reads source given source configuration.
- config
Source configuration
- settings
Implicit application settings object
- spark
Implicit spark session object
- schemas
Map of explicitly defined schemas (schemaId -> SourceSchema)
- connections
Map of existing connection (connectionID -> DQConnection)
- checkpoints
Map of initial checkpoints read from checkpoint directory
- returns
Either a valid Source or a list of source reading errors.
- Definition Classes
- SourceReader
-
def
readStream(config: FixedFileSourceConfig)(implicit settings: AppSettings, spark: SparkSession, fs: FileSystem, schemas: Map[String, SourceSchema], connections: Map[String, DQConnection], checkpoints: Map[String, Checkpoint]): Result[Source]
Safely reads streaming source given source configuration.
Safely reads streaming source given source configuration.
- config
Source configuration (source must be streamable)
- settings
Implicit application settings object
- spark
Implicit spark session object
- schemas
Map of explicitly defined schemas (schemaId -> SourceSchema)
- connections
Map of existing connection (connectionID -> DQConnection)
- checkpoints
Map of initial checkpoints read from checkpoint directory
- returns
Either a valid Source or a list of source reading errors.
- Definition Classes
- SourceReader
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toSource(config: FixedFileSourceConfig, df: DataFrame, readMode: ReadMode, checkpoint: Option[Checkpoint] = None)(implicit settings: AppSettings): Source
Wraps spark dataframe into Source instance.
Wraps spark dataframe into Source instance.
- config
Source configuration
- df
Spark Dataframe
- readMode
Mode in which source is read. Either 'batch' or 'stream'
- checkpoint
Initial source checkpoint (applicable only to streaming sources)
- returns
Source
- Attributes
- protected
- Definition Classes
- SourceReader
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryToRead(config: FixedFileSourceConfig, readMode: ReadMode)(implicit settings: AppSettings, spark: SparkSession, fs: FileSystem, schemas: Map[String, SourceSchema], connections: Map[String, DQConnection], checkpoints: Map[String, Checkpoint]): Source
Tries to read fixed file source given the source configuration.
Tries to read fixed file source given the source configuration.
- config
Fixed file source configuration
- readMode
Mode in which source is read. Either 'batch' or 'stream'
- settings
Implicit application settings object
- spark
Implicit spark session object
- schemas
Map of explicitly defined schemas (schemaId -> SourceSchema)
- connections
Map of existing connection (connectionID -> DQConnection)
- checkpoints
Map of initial checkpoints read from checkpoint directory
- returns
Source
- Definition Classes
- FixedFileSourceReader → SourceReader
- Note
When read in stream mode, Spark will stream newly added files only.
-
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()