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
staticisRepeatable()
public
isRepeatable() : bool
Return values
boolschema()
public
schema() : Schema
Return values
Schemasource()
public
source() : Path
Return values
PathwithPointer()
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
selfwithSchema()
public
withSchema(Schema $schema) : static
Parameters
- $schema : Schema