Skip to main content

reader

Returns a DataSourceReader instance for reading data.

The implementation is required for readable data sources.

Syntax

reader(schema: StructType)

Parameters

Parameter

Type

Description

schema

StructType

The schema of the data to be read.

Returns

DataSourceReader

A reader instance for this data source.