functions.php
Functions
from_parquet()
from_parquet(Path|string $path[, array<string|int, string> $columns = [] ][, Options $options = new Options() ][, ByteOrder $byte_order = ByteOrder::LITTLE_ENDIAN ][, null|int $offset = null ][, ParquetEngine|null $engine = null ][, Filesystem $filesystem = new NativeLocalFilesystem() ]) : ParquetExtractor
Parameters
- $path : Path|string
- $columns : array<string|int, string> = []
-
- list of columns to read from parquet file - @deprecated use
withColumnsmethod instead
- list of columns to read from parquet file - @deprecated use
- $options : Options = new Options()
-
- @deprecated use
withOptionsmethod instead
- @deprecated use
- $byte_order : ByteOrder = ByteOrder::LITTLE_ENDIAN
-
- @deprecated use
withByteOrdermethod instead
- @deprecated use
- $offset : null|int = null
-
- @deprecated use
withOffsetmethod instead
- @deprecated use
- $engine : ParquetEngine|null = null
- $filesystem : Filesystem = new NativeLocalFilesystem()
Return values
ParquetExtractorto_parquet()
to_parquet(Path|string $path[, null|Options $options = null ][, Compressions $compressions = Compressions::SNAPPY ][, null|Schema $schema = null ][, ParquetEngine|null $engine = null ][, Filesystem $filesystem = new NativeLocalFilesystem() ]) : ParquetLoader
Parameters
- $path : Path|string
- $options : null|Options = null
-
- @deprecated use
withOptionsmethod instead
- @deprecated use
- $compressions : Compressions = Compressions::SNAPPY
-
- @deprecated use
withCompressionsmethod instead
- @deprecated use
- $schema : null|Schema = null
-
- @deprecated use
withSchemamethod instead
- @deprecated use
- $engine : ParquetEngine|null = null
- $filesystem : Filesystem = new NativeLocalFilesystem()
Return values
ParquetLoaderarray_to_generator()
array_to_generator(array<string|int, T> $data) : Generator<string|int, T>
Parameters
- $data : array<string|int, T>
Tags
Return values
Generator<string|int, T>empty_generator()
use Flow\Parquet\empty_generator() instead
empty_generator() : Generator
Return values
Generatorschema_to_parquet()
schema_to_parquet(Schema $schema) : Schema
Parameters
- $schema : Schema
Return values
Schemaschema_from_parquet()
schema_from_parquet(Schema $schema) : Schema
Parameters
- $schema : Schema