gluonts.dataset.arrow.file module#
- class gluonts.dataset.arrow.file.ArrowFile(path: pathlib.Path, _start: int = 0, _take: Optional[int] = None)[source]#
Bases:
File
- property batch_offsets#
- decoder: ArrowDecoder#
- path: Path#
- reader: RecordBatchFileReader#
- property schema#
- class gluonts.dataset.arrow.file.ArrowStreamFile(path: pathlib.Path, _start: int = 0, _take: Optional[int] = None)[source]#
Bases:
File
- path: Path#
- class gluonts.dataset.arrow.file.File[source]#
Bases:
object
- SUFFIXES = {'.arrow', '.feather', '.parquet'}#
- static infer(path: Path) Union[ArrowFile, ArrowStreamFile, ParquetFile] [source]#
Return ArrowFile, ArrowStreamFile or ParquetFile by inspecting provided path.
Arrow’s random-access format starts with ARROW1, so we peek the provided file for it.