Class: ArrowFormat::Org::Apache::Arrow::Flatbuf::Interval
- Inherits:
-
FlatBuffers::Table
- Object
- FlatBuffers::Table
- ArrowFormat::Org::Apache::Arrow::Flatbuf::Interval
- Defined in:
- lib/arrow-format/org/apache/arrow/flatbuf/interval.rb
Constant Summary collapse
- FIELDS =
{ unit: ::FlatBuffers::Field.new(:unit, 0, 4, :short, 0), }
- Data =
define_data_class
Instance Method Summary collapse
Instance Method Details
#unit ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/arrow-format/org/apache/arrow/flatbuf/interval.rb', line 22 def unit field_offset = @view.unpack_virtual_offset(4) if field_offset.zero? enum_value = 0 else enum_value = @view.unpack_short(field_offset) end ::ArrowFormat::Org::Apache::Arrow::Flatbuf::IntervalUnit.try_convert(enum_value) || enum_value end |