Flow PHP

SchemaInference

Read onlyYes
FinalYes

Properties

$filesToSniff  : int
$sampleSize  : int
$types  : InferredTypes|null
$unionByName  : bool

Methods

__construct()  : mixed
candidates()  : InferredTypes

Properties

Methods

__construct()

public __construct([int<1, max>|-1 $sampleSize = 20480 ][, int<1, max>|-1 $filesToSniff = 10 ][, null|InferredTypes $types = null ][, bool $unionByName = false ]) : mixed
Parameters
$sampleSize : int<1, max>|-1 = 20480
  • rows observed across every sampled source before the schema is frozen; -1 observes all
$filesToSniff : int<1, max>|-1 = 10
  • sources that yielded a row, counted while the row budget is not spent; -1 sniffs all.
$types : null|InferredTypes = null
  • the types inference may produce; null is every type but markup
$unionByName : bool = false
  • false takes the column set from the first source and treats a later source's unseen column as a divergence; true unions the sets and runs no divergence check
On this page

Search results