Class: Arrow::TimestampArray
- Inherits:
-
Object
- Object
- Arrow::TimestampArray
- Defined in:
- lib/arrow/timestamp-array.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(unit, values) ⇒ Object
21 22 23 24 25 |
# File 'lib/arrow/timestamp-array.rb', line 21 def new(unit, values) data_type = TimestampDataType.new(unit) builder = TimestampArrayBuilder.new(data_type) builder.build(values) end |
Instance Method Details
#get_value(i) ⇒ Object
28 29 30 |
# File 'lib/arrow/timestamp-array.rb', line 28 def get_value(i) to_time(get_raw_value(i)) end |
#unit ⇒ Object
32 33 34 |
# File 'lib/arrow/timestamp-array.rb', line 32 def unit @unit ||= value_data_type.unit end |