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

Function appendStorageInfoForNodeGroup

src/function/table/storage_info.cpp:207–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static void appendStorageInfoForNodeGroup(StorageInfoLocalState* localState, DataChunk& outputChunk,
208 StorageInfoOutputData& outputData, NodeGroup* nodeGroup) {
209 auto numChunks = nodeGroup->getNumChunkedGroups();
210 for (auto chunkIdx = 0ul; chunkIdx < numChunks; chunkIdx++) {
211 outputData.chunkIdx = chunkIdx;
212 appendStorageInfoForChunkedGroup(localState, outputChunk, outputData,
213 nodeGroup->getChunkedNodeGroup(chunkIdx));
214 }
215 if (nodeGroup->getFormat() == NodeGroupDataFormat::CSR) {
216 auto& csrNodeGroup = nodeGroup->cast<CSRNodeGroup>();
217 auto persistentChunk = csrNodeGroup.getPersistentChunkedGroup();
218 if (persistentChunk) {
219 outputData.chunkIdx = INVALID_NODE_GROUP_IDX;
220 appendStorageInfoForChunkedGroup(localState, outputChunk, outputData,
221 csrNodeGroup.getPersistentChunkedGroup());
222 }
223 }
224}
225
226static void appendStorageInfoForIndex(StorageInfoLocalState* localState, DataChunk& outputChunk,
227 const Index& index) {

Callers 1

tableFuncFunction · 0.85

Calls 5

getNumChunkedGroupsMethod · 0.80
getChunkedNodeGroupMethod · 0.80
getFormatMethod · 0.45

Tested by

no test coverage detected