FlatColumn implements Column
FinalYes
Interfaces
Methods
- __construct() : mixed
- __debugInfo() : array<string|int, mixed>
- boolean() : self
- convertedType() : ConvertedType|null
- date() : self
- dateTime() : self
- ddl() : array<string|int, mixed>
- decimal() : self
- double() : self
- enum() : self
- flatPath() : string
- float() : self
- fromThrift() : self
- int32() : self
- int64() : self
- isList() : bool
- isMap() : bool
- isStruct() : bool
- json() : self
- logicalType() : LogicalType|null
- makeOptional() : self
- makeRequired() : self
- maxDefinitionsLevel() : int
- maxRepetitionsLevel() : int
- name() : string
- parent() : NestedColumn|null
- path() : array<string|int, string>
- precision() : int|null
- repetition() : Repetition|null
- repetitions() : Repetitions
- scale() : int|null
- setParent() : void
- string() : self
- time() : self
- toThrift() : SchemaElement
- type() : PhysicalType
- typeLength() : int|null
- uuid() : self
Methods
__construct()
public
__construct(string $name, PhysicalType $type[, ConvertedType|null $convertedType = null ][, LogicalType|null $logicalType = null ][, Repetition|null $repetition = Repetition::OPTIONAL ][, int|null $precision = null ][, int|null $scale = null ][, int|null $typeLength = null ]) : mixed
Parameters
- $name : string
- $type : PhysicalType
- $convertedType : ConvertedType|null = null
- $logicalType : LogicalType|null = null
- $repetition : Repetition|null = Repetition::OPTIONAL
- $precision : int|null = null
- $scale : int|null = null
- $typeLength : int|null = null
__debugInfo()
public
__debugInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>boolean()
public
static boolean(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfconvertedType()
public
convertedType() : ConvertedType|null
Return values
ConvertedType|nulldate()
public
static date(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfdateTime()
public
static dateTime(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfddl()
public
ddl() : array<string|int, mixed>
Return values
array<string|int, mixed>decimal()
public
static decimal(string $name[, int $precision = 10 ][, int $scale = 2 ][, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $precision : int = 10
- $scale : int = 2
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfdouble()
public
static double(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfenum()
public
static enum(string $string[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $string : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfflatPath()
public
flatPath() : string
Return values
stringfloat()
public
static float(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selffromThrift()
public
static fromThrift(SchemaElement $thrift) : self
Parameters
- $thrift : SchemaElement
Return values
selfint32()
public
static int32(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfint64()
public
static int64(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selfisList()
public
isList() : bool
Return values
boolisMap()
public
isMap() : bool
Return values
boolisStruct()
public
isStruct() : bool
Return values
booljson()
public
static json(string $string[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $string : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selflogicalType()
public
logicalType() : LogicalType|null
Return values
LogicalType|nullmakeOptional()
public
makeOptional() : self
Return values
selfmakeRequired()
public
makeRequired() : self
Return values
selfmaxDefinitionsLevel()
public
maxDefinitionsLevel() : int
Return values
intmaxRepetitionsLevel()
public
maxRepetitionsLevel() : int
Return values
intname()
public
name() : string
Return values
stringparent()
public
parent() : NestedColumn|null
Return values
NestedColumn|nullpath()
public
path() : array<string|int, string>
Return values
array<string|int, string>precision()
public
precision() : int|null
Return values
int|nullrepetition()
public
repetition() : Repetition|null
Return values
Repetition|nullrepetitions()
public
repetitions() : Repetitions
Return values
Repetitionsscale()
public
scale() : int|null
Return values
int|nullsetParent()
public
setParent(NestedColumn $parent) : void
Parameters
- $parent : NestedColumn
string()
public
static string(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selftime()
public
static time(string $name[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $name : string
- $repetition : Repetition = Repetition::OPTIONAL
Return values
selftoThrift()
public
toThrift() : SchemaElement
Return values
SchemaElementtype()
public
type() : PhysicalType
Return values
PhysicalTypetypeLength()
public
typeLength() : int|null
Return values
int|nulluuid()
public
static uuid(string $uuid[, Repetition $repetition = Repetition::OPTIONAL ]) : self
Parameters
- $uuid : string
- $repetition : Repetition = Repetition::OPTIONAL