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

Method Visit

cpp/src/arrow/util/byte_size.cc:149–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 }
148
149 Status Visit(const FixedWidthType& type) const {
150 static_assert(sizeof(uint8_t*) <= sizeof(uint64_t),
151 "Undefined behavior if pointer larger than uint64_t");
152 RETURN_NOT_OK(VisitBitmap(input.buffers[0]));
153 RETURN_NOT_OK(VisitFixedWidthArray(*input.buffers[1], type));
154 if (input.dictionary) {
155 // This is slightly imprecise because we always assume the entire dictionary is
156 // referenced. If this array has an offset it may only be referencing a portion of
157 // the dictionary
158 GetByteRangesArray dict_visitor{*input.dictionary,
159 input.dictionary->offset,
160 input.dictionary->length,
161 range_starts,
162 range_offsets,
163 range_lengths};
164 return VisitTypeInline(*input.dictionary->type, &dict_visitor);
165 }
166 return Status::OK();
167 }
168
169 Status Visit(const NullType& type) const { return Status::OK(); }
170

Callers

nothing calls this directly

Calls 12

VisitTypeInlineFunction · 0.85
storage_typeMethod · 0.80
FindPhysicalRangeFunction · 0.70
OKFunction · 0.50
TypeErrorFunction · 0.50
list_sizeMethod · 0.45
value_typeMethod · 0.45
num_fieldsMethod · 0.45
typeMethod · 0.45
fieldMethod · 0.45
sizeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected