Expand description
Module containing helper methods for the various file formats See write.rs for write related helper methods
Modules§
- arrow
ArrowFormat
: Apache ArrowFileFormat
abstractions- avro
AvroFormat
Apache AvroFileFormat
abstractions- csv
CsvFormat
, Comma Separated Value (CSV)FileFormat
abstractions- file_
compression_ type - File Compression type abstraction
- json
JsonFormat
: Line delimited JSONFileFormat
abstractions- options
- User facing options for the file formats readers
- parquet
parquet
ParquetFormat
: ParquetFileFormat
abstractions- write
- Module containing helper methods/traits related to enabling write support for the various file formats
Structs§
- Default
File Type - A container of FileFormatFactory which also implements FileType. This enables converting a dyn FileFormat to a dyn FileType. The former trait is a superset of the latter trait, which includes execution time relevant methods. FileType is only used in logical planning and only implements the subset of methods required during logical planning.
Enums§
- Deserializer
Output - Possible outputs of a
BatchDeserializer
. - File
Pushdown Support - An enum to distinguish between different states when determining if certain filters can be pushed down to file scanning
Constants§
- DEFAULT_
SCHEMA_ INFER_ MAX_ RECORD - Default max records to scan to infer the schema
Traits§
- Batch
Deserializer - Trait defining a scheme for deserializing byte streams into structured data.
Implementors of this trait are responsible for converting raw bytes into
RecordBatch
objects. - File
Format - This trait abstracts all the file format specific implementations
from the
TableProvider
. This helps code re-utilization across providers that support the same file formats. - File
Format Factory - Factory for creating
FileFormat
instances based on session and command level options
Functions§
- file_
type_ to_ format - Converts a FileType to a FileFormatFactory. Returns an error if the FileType cannot be downcasted to a DefaultFileType.
- format_
as_ file_ type - Converts a FileFormatFactory to a FileType