DecimalType
Decimal logical type annotation.
Scale must be zero or a positive integer less than or equal to the precision. Precision must be a non-zero positive integer.
To maintain forward-compatibility in v1, implementations using this logical type must also set scale and precision on the annotated SchemaElement.
Allowed for physical types: INT32, INT64, FIXED_LEN_BYTE_ARRAY, and BYTE_ARRAY.
Properties
- $_TSPEC : mixed
- $isValidate : mixed
- $precision : int
- $scale : int
Methods
- __construct() : mixed
- getName() : mixed
- read() : mixed
- write() : mixed
Properties
$_TSPEC
public
static mixed
$_TSPEC
= [1 => ['var' => 'scale', 'isRequired' => true, 'type' => \Thrift\Type\TType::I32], 2 => ['var' => 'precision', 'isRequired' => true, 'type' => \Thrift\Type\TType::I32]]
$isValidate
public
static mixed
$isValidate
= false
$precision
public
int
$precision
$scale
public
int
$scale
Methods
__construct()
public
__construct([mixed $vals = null ]) : mixed
Parameters
- $vals : mixed = null
getName()
public
getName() : mixed
read()
public
read(mixed $input) : mixed
Parameters
- $input : mixed
write()
public
write(mixed $output) : mixed
Parameters
- $output : mixed