reader
BaseReader
¶
Bases: ABC, LoggerMixin
Abstract base class for reading data into a Spark DataFrame.
This class provides a common interface for different types of data readers.
Attributes:
| Name | Type | Description |
|---|---|---|
_spark |
SparkSession
|
The Spark session used for creating DataFrames. |
Source code in src/cloe_nessy/integration/reader/reader.py
read(*args, **kwargs)
abstractmethod
¶
Abstract method to return a batch data frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
Any
|
Arbitrary non-keyword arguments for reading data. |
()
|
**kwargs
|
Any
|
Arbitrary keyword arguments for reading data. |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
DataFrame |
DataFrame
|
The Spark DataFrame containing the read data. |