Flow PHP

LogicalType

Read onlyYes
FinalYes

Constants

BSON  : string = 'BSON'
DATE  : string = 'DATE'
DECIMAL  : string = 'DECIMAL'
ENUM  : string = 'ENUM'
FLOAT16  : string = 'FLOAT16'
INTEGER  : string = 'INTEGER'
JSON  : string = 'JSON'
LIST  : string = 'LIST'
MAP  : string = 'MAP'
STRING  : string = 'STRING'
TIME  : string = 'TIME'
TIMESTAMP  : string = 'TIMESTAMP'
UNKNOWN  : string = 'UNKNOWN'
UUID  : string = 'UUID'

Methods

__construct()  : mixed
bson()  : self
convertedType()  : ConvertedType|null
The converted type a writer annotates this logical type with for older readers (arrow-rs 60 `ConvertedType::from(Option<LogicalType>)`); null where none exists.
date()  : self
decimal()  : self
decimalData()  : Decimal|null
enum()  : self
fromConvertedType()  : self|null
fromThrift()  : self|null
integer()  : self
integerData()  : Integer|null
is()  : bool
json()  : self
list()  : self
map()  : self
name()  : string
string()  : self
time()  : self
timeData()  : Time|null
timestamp()  : self
timestampData()  : Timestamp|null
toThrift()  : LogicalType
unknown()  : self
uuid()  : self

Constants

Methods

__construct()

public __construct(string $name[, Timestamp|null $timestamp = null ][, Time|null $time = null ][, Decimal|null $decimal = null ][, Integer|null $integer = null ]) : mixed
Parameters
$name : string
$timestamp : Timestamp|null = null
$time : Time|null = null
$decimal : Decimal|null = null
$integer : Integer|null = null

bson()

public static bson() : self
Return values
self

convertedType()

The converted type a writer annotates this logical type with for older readers (arrow-rs 60 `ConvertedType::from(Option<LogicalType>)`); null where none exists.

public convertedType() : ConvertedType|null
Return values
ConvertedType|null

date()

public static date() : self
Return values
self

decimal()

public static decimal(int $scale, int $precision) : self
Parameters
$scale : int
$precision : int
Return values
self

enum()

public static enum() : self
Return values
self

fromConvertedType()

public static fromConvertedType(ConvertedType $convertedType, int|null $scale, int|null $precision) : self|null
Parameters
$convertedType : ConvertedType
$scale : int|null
$precision : int|null
Return values
self|null

integer()

public static integer(int $bitWidth, bool $isSigned) : self
Parameters
$bitWidth : int
$isSigned : bool
Return values
self

is()

public is(string $logicalType) : bool
Parameters
$logicalType : string
Return values
bool

json()

public static json() : self
Return values
self

list()

public static list() : self
Return values
self

map()

public static map() : self
Return values
self

string()

public static string() : self
Return values
self

time()

public static time() : self
Return values
self

timestamp()

public static timestamp() : self
Return values
self

unknown()

public static unknown() : self
Return values
self

uuid()

public static uuid() : self
Return values
self
On this page

Search results