Class: Arrow::Decimal128DataType
- Inherits:
-
Object
- Object
- Arrow::Decimal128DataType
- Defined in:
- lib/arrow/decimal128-data-type.rb
Constant Summary collapse
- MAX_PRECISION =
max_precision
Instance Method Summary collapse
-
#initialize(*args) ⇒ Decimal128DataType
constructor
Creates a new Decimal128DataType.
Constructor Details
#initialize(precision, scale) ⇒ Decimal128DataType #initialize(description) ⇒ Decimal128DataType
Creates a new Arrow::Decimal128DataType.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/arrow/decimal128-data-type.rb', line 55 def initialize(*args) n_args = args.size case n_args when 1 description = args[0] precision = description[:precision] scale = description[:scale] when 2 precision, scale = args else = "wrong number of arguments (given, #{n_args}, expected 1..2)" raise ArgumentError, end initialize_raw(precision, scale) end |