Flow PHP

JsonLoader implements Closure, Discardable, FileLoader, Loader, PartitioningLoader

FinalYes

Interfaces

Closure
Discardable
FileLoader
Loader
PartitioningLoader

Methods

__construct()  : mixed
closure()  : void
destination()  : Path
discard()  : void
load()  : void
partitionBy()  : static
saveMode()  : static
withDateFormat()  : self
withDateTimeFormat()  : self
withFlags()  : self
withRowsInNewLines()  : self
write()  : void

Methods

__construct()

public __construct(Path $path[, Filesystem $filesystem = new NativeLocalFilesystem() ]) : mixed
Parameters
$path : Path
$filesystem : Filesystem = new NativeLocalFilesystem()

closure()

public closure(FlowContext $context) : void
Parameters
$context : FlowContext

destination()

public destination() : Path
Return values
Path

discard()

public discard(FlowContext $context) : void
Parameters
$context : FlowContext

load()

public load(Rows $rows, FlowContext $context) : void
Parameters
$rows : Rows
$context : FlowContext

partitionBy()

public partitionBy(Partitioning $partitioning) : static
Parameters
$partitioning : Partitioning
Return values
static

saveMode()

public saveMode(SaveMode $mode) : static
Parameters
$mode : SaveMode
Return values
static

withDateFormat()

public withDateFormat(string $dateFormat) : self
Parameters
$dateFormat : string
Return values
self

withDateTimeFormat()

public withDateTimeFormat(string $dateTimeFormat) : self
Parameters
$dateTimeFormat : string
Return values
self

withFlags()

public withFlags(int $flags) : self
Parameters
$flags : int
Return values
self

withRowsInNewLines()

public withRowsInNewLines(bool $putRowsInNewLines) : self
Parameters
$putRowsInNewLines : bool
Return values
self

write()

public write(Rows $nextRows, array<string|int, Partition$partitions, FlowContext $context) : void
Parameters
$nextRows : Rows
$partitions : array<string|int, Partition>
$context : FlowContext
On this page

Search results