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

Method resetNumRowsFromChunks

src/storage/table/chunked_node_group.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void ChunkedNodeGroup::resetNumRowsFromChunks() {
117 DASSERT(residencyState == ResidencyState::ON_DISK);
118 DASSERT(!chunks.empty());
119 numRows = getColumnChunk(0).getNumValues();
120 capacity = numRows;
121 for (auto i = 1u; i < getNumColumns(); i++) {
122 DASSERT(numRows == getColumnChunk(i).getNumValues());
123 }
124}
125
126void ChunkedNodeGroup::resetVersionAndUpdateInfo() {
127 if (versionInfo) {

Callers 2

finalizeCheckpointMethod · 0.80

Calls 3

getNumColumnsFunction · 0.50
emptyMethod · 0.45
getNumValuesMethod · 0.45

Tested by

no test coverage detected