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

Method layout

cpp/src/arrow/type.cc:1254–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1252}
1253
1254DataTypeLayout UnionType::layout() const {
1255 if (mode() == UnionMode::SPARSE) {
1256 return DataTypeLayout(
1257 {DataTypeLayout::AlwaysNull(), DataTypeLayout::FixedWidth(sizeof(uint8_t))});
1258 } else {
1259 return DataTypeLayout({DataTypeLayout::AlwaysNull(),
1260 DataTypeLayout::FixedWidth(sizeof(uint8_t)),
1261 DataTypeLayout::FixedWidth(sizeof(int32_t))});
1262 }
1263}
1264
1265uint8_t UnionType::max_type_code() const {
1266 return type_codes_.size() == 0

Callers 6

AccumulateLayoutsFunction · 0.45
MakeDataViewMethod · 0.45
ValidateLayoutMethod · 0.45
SetupPreallocationMethod · 0.45
ExecuteMethod · 0.45
TESTFunction · 0.45

Calls 4

DataTypeLayoutFunction · 0.85
AlwaysNullFunction · 0.85
FixedWidthFunction · 0.85
modeFunction · 0.50

Tested by 1

TESTFunction · 0.36