MCPcopy Create free account
hub / github.com/bytedance/bolt / getType

Function getType

bolt/type/Type.cpp:1263–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263TypePtr getType(
1264 const std::string& name,
1265 const std::vector<TypeParameter>& parameters,
1266 std::vector<std::string> rowParameterNames) {
1267 if (singletonBuiltInTypes().count(name)) {
1268 return singletonBuiltInTypes().at(name);
1269 }
1270
1271 BOLT_USER_CHECK(
1272 rowParameterNames.empty() ||
1273 rowParameterNames.size() == parameters.size());
1274 if (parametricBuiltinTypes().count(name)) {
1275 return parametricBuiltinTypes().at(name)(
1276 parameters, std::move(rowParameterNames));
1277 }
1278
1279 return getCustomType(name);
1280}
1281
1282size_t getArrowElementSize(const TypePtr& type) {
1283 if (type->isShortDecimal()) {

Callers 11

DwrfRowReaderMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
tryResolveTypeMethod · 0.85
asTypeMethod · 0.85
typeFromStringFunction · 0.85
TESTFunction · 0.85
DuckResultMethod · 0.85
getVectorMethod · 0.85

Calls 5

getCustomTypeFunction · 0.85
countMethod · 0.45
atMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 5

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68