LogicalType
Read onlyYes
FinalYes
Constants
- BSON = 'BSON'
- DATE = 'DATE'
- DECIMAL = 'DECIMAL'
- ENUM = 'ENUM'
- INTEGER = 'INTEGER'
- JSON = 'JSON'
- LIST = 'LIST'
- MAP = 'MAP'
- STRING = 'STRING'
- TIME = 'TIME'
- TIMESTAMP = 'TIMESTAMP'
- UNKNOWN = 'UNKNOWN'
- UUID = 'UUID'
Methods
- __construct() : mixed
- bson() : self
- date() : self
- decimal() : self
- decimalData() : Decimal|null
- enum() : self
- fromThrift() : self
- integer() : self
- 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
BSON
public
mixed
BSON
= 'BSON'
DATE
public
mixed
DATE
= 'DATE'
DECIMAL
public
mixed
DECIMAL
= 'DECIMAL'
ENUM
public
mixed
ENUM
= 'ENUM'
INTEGER
public
mixed
INTEGER
= 'INTEGER'
JSON
public
mixed
JSON
= 'JSON'
LIST
public
mixed
LIST
= 'LIST'
MAP
public
mixed
MAP
= 'MAP'
STRING
public
mixed
STRING
= 'STRING'
TIME
public
mixed
TIME
= 'TIME'
TIMESTAMP
public
mixed
TIMESTAMP
= 'TIMESTAMP'
UNKNOWN
public
mixed
UNKNOWN
= 'UNKNOWN'
UUID
public
mixed
UUID
= 'UUID'
Methods
__construct()
public
__construct(string $name[, Timestamp|null $timestamp = null ][, Time|null $time = null ][, Decimal|null $decimal = null ]) : mixed
Parameters
bson()
public
static bson() : self
Return values
selfdate()
public
static date() : self
Return values
selfdecimal()
public
static decimal(int $scale, int $precision) : self
Parameters
- $scale : int
- $precision : int
Return values
selfdecimalData()
public
decimalData() : Decimal|null
Return values
Decimal|nullenum()
public
static enum() : self
Return values
selffromThrift()
public
static fromThrift(LogicalType $logicalType) : self
Parameters
- $logicalType : LogicalType
Return values
selfinteger()
public
static integer() : self
Return values
selfis()
public
is(string $logicalType) : bool
Parameters
- $logicalType : string
Return values
booljson()
public
static json() : self
Return values
selflist()
public
static list() : self
Return values
selfmap()
public
static map() : self
Return values
selfname()
public
name() : string
Return values
stringstring()
public
static string() : self
Return values
selftime()
public
static time() : self
Return values
selftimeData()
public
timeData() : Time|null
Return values
Time|nulltimestamp()
public
static timestamp() : self
Return values
selftimestampData()
public
timestampData() : Timestamp|null
Return values
Timestamp|nulltoThrift()
public
toThrift() : LogicalType
Return values
LogicalTypeunknown()
public
static unknown() : self
Return values
selfuuid()
public
static uuid() : self