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

Method GetView

cpp/src/arrow/array/array_binary.cc:108–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108std::string_view BinaryViewArray::GetView(int64_t i) const {
109 const std::shared_ptr<Buffer>* data_buffers = data_->buffers.data() + 2;
110 return util::FromBinaryView(raw_values_[i], data_buffers);
111}
112
113StringViewArray::StringViewArray(std::shared_ptr<ArrayData> data) {
114 ARROW_CHECK_EQ(data->type->id(), Type::STRING_VIEW);

Callers 15

WriteArrayObjectsFunction · 0.45
operator()Method · 0.45
operator*Method · 0.45
operator[]Method · 0.45
WritePrimitiveValuesMethod · 0.45
WriteDataValuesMethod · 0.45
WriteDataValuesMethod · 0.45

Calls 2

FromBinaryViewFunction · 0.85
dataMethod · 0.45

Tested by 10

ASSERT_OK_AND_ASSIGNFunction · 0.36
TESTFunction · 0.36
DecodeStringDictionaryFunction · 0.36
CheckStringArrayFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
GenerateInputDataMethod · 0.36
CheckReadValuesMethod · 0.36
CheckReadValuesMethod · 0.36