MCPcopy Create free account
hub / github.com/apache/arrow / value_offset

Function value_offset

cpp/src/arrow/array/array_nested.h:573–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571 using offset_type = TypeClass::offset_type;
572
573 explicit FixedSizeListArray(const std::shared_ptr<ArrayData>& data);
574
575 FixedSizeListArray(const std::shared_ptr<DataType>& type, int64_t length,
576 const std::shared_ptr<Array>& values,
577 const std::shared_ptr<Buffer>& null_bitmap = NULLPTR,
578 int64_t null_count = kUnknownNullCount, int64_t offset = 0);
579
580 const FixedSizeListType* list_type() const;
581
582 /// \brief Return array object containing the list's values
583 const std::shared_ptr<Array>& values() const;
584
585 const std::shared_ptr<DataType>& value_type() const;
586
587 // The following functions will not perform boundschecking
588 int64_t value_offset(int64_t i) const {
589 i += data_->offset;
590 return list_size_ * i;
591 }
592 /// \brief Return the fixed-size of the values
593 ///
594 /// No matter the value of the index parameter, the result is the same.

Callers 2

value_sliceMethod · 0.85
value_sliceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected