Class: Arrow::Decimal256DataType
- Inherits:
-
Object
- Object
- Arrow::Decimal256DataType
- Defined in:
- lib/arrow/decimal256-data-type.rb
Constant Summary collapse
- MAX_PRECISION =
max_precision
Instance Method Summary collapse
-
#initialize(*args) ⇒ Decimal256DataType
constructor
Creates a new Decimal256DataType.
Constructor Details
#initialize(precision, scale) ⇒ Decimal256DataType #initialize(description) ⇒ Decimal256DataType
Creates a new Arrow::Decimal256DataType.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/arrow/decimal256-data-type.rb', line 57 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 |