CSVExtractor 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
- withBOMRemoval() : self
- withCharactersReadInLine() : self
- withEmptyToNull() : self
- withEnclosure() : self
- withEscape() : self
- withHeader() : self
- withSchema() : static
- withSeparator() : self
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
PathwithBOMRemoval()
public
withBOMRemoval(bool $removeBOM) : self
Parameters
- $removeBOM : bool
Return values
selfwithCharactersReadInLine()
public
withCharactersReadInLine(int $charactersReadInLine) : self
Parameters
- $charactersReadInLine : int
-
- bytes read per step from a remote stream (S3, Azure); never splits a line
Return values
selfwithEmptyToNull()
public
withEmptyToNull(bool $emptyToNull) : self
Parameters
- $emptyToNull : bool
Return values
selfwithEnclosure()
public
withEnclosure(string $enclosure) : self
Parameters
- $enclosure : string
Return values
selfwithEscape()
public
withEscape(string $escape) : self
Parameters
- $escape : string
Return values
selfwithHeader()
public
withHeader(bool $withHeader) : self
Parameters
- $withHeader : bool
Return values
selfwithSchema()
public
withSchema(Schema $schema) : static
Parameters
- $schema : Schema
Return values
staticwithSeparator()
public
withSeparator(string $separator) : self
Parameters
- $separator : string