Flow PHP

JsonExtractor implements BatchableExtractor, Extractor, FileExtractor, InfersSchema, LimitPushDown, MetadataColumnsExtractor, RewindableExtractor uses Batches, PushesLimit, FileReading

FinalYes

Interfaces

BatchableExtractor
Extractor
FileExtractor
InfersSchema
LimitPushDown
MetadataColumnsExtractor
RewindableExtractor

Methods

__construct()  : mixed
extract()  : Generator<Signal|null, void>
inferSchema()  : static
isRepeatable()  : bool
schema()  : Schema
source()  : Path
withPointer()  : self
withSchema()  : static

Methods

__construct()

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

extract()

public extract(FlowContext $context) : Generator<Signal|null, void>
Parameters
$context : FlowContext
Return values
Generator<Signal|null, void>

inferSchema()

public inferSchema(SchemaInferenceBuilder $builder) : static
Parameters
$builder : SchemaInferenceBuilder
Return values
static

isRepeatable()

public isRepeatable() : bool
Return values
bool

withPointer()

public withPointer(string $pointer[, bool $pointerToEntryName = false ]) : self
Parameters
$pointer : string
$pointerToEntryName : bool = false
  • when true pointer will be used as entry name for extracted data
Return values
self

withSchema()

public withSchema(Schema $schema) : static
Parameters
$schema : Schema
Return values
static
On this page

Search results