MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getIndex

Method getIndex

src/storage/table/node_table.cpp:1033–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033std::optional<Index*> NodeTable::getIndex(const std::string& name) const {
1034 for (auto& index : indexes) {
1035 if (StringUtils::caseInsensitiveEquals(index.getName(), name)) {
1036 if (index.isLoaded()) {
1037 return index.getIndex();
1038 }
1039 throw RuntimeException(std::format(
1040 "Index {} is not loaded yet. Please load the index before accessing it.", name));
1041 }
1042 }
1043 return std::nullopt;
1044}
1045
1046void NodeTable::serialize(Serializer& serializer) const {
1047 nodeGroups->serialize(serializer);

Callers 10

initInsertStateMethod · 0.45
insertMethod · 0.45
initUpdateStateMethod · 0.45
updateMethod · 0.45
delete_Method · 0.45
commitMethod · 0.45
tryGetPKIndexMethod · 0.45
tryGetPrimaryKeyIndexMethod · 0.45

Calls 2

isLoadedMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected