Class: Arrow::FixedSizeListDataType
- Inherits:
-
Object
- Object
- Arrow::FixedSizeListDataType
- Includes:
- ListFieldResolvable
- Defined in:
- lib/arrow/fixed-size-list-data-type.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ FixedSizeListDataType
constructor
Creates a new FixedSizeListDataType.
Constructor Details
#initialize(field, size) ⇒ FixedSizeListDataType #initialize(description) ⇒ FixedSizeListDataType #initialize(data_type, size) ⇒ FixedSizeListDataType
Creates a new Arrow::FixedSizeListDataType.
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/arrow/fixed-size-list-data-type.rb', line 102 def initialize(*args) n_args = args.size case n_args when 1 description = args[0] size = description.delete(:size) initialize_raw(resolve_field(description), size) when 2 field, size = args initialize_raw(resolve_field(field), size) else = "wrong number of arguments (given #{n_args}, expected 1..2)" raise ArgumentError, end end |