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

Function resetOutputIfNecessary

src/function/table/storage_info.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69static void resetOutputIfNecessary(const StorageInfoLocalState* localState,
70 DataChunk& outputChunk) {
71 if (outputChunk.state->getSelVector().getSelSize() == DEFAULT_VECTOR_CAPACITY) {
72 localState->dataChunkCollection->append(outputChunk);
73 outputChunk.resetAuxiliaryBuffer();
74 outputChunk.state->getSelVectorUnsafe().setSelSize(0);
75 }
76}
77
78static void appendStorageInfoForChunkData(StorageInfoLocalState* localState, DataChunk& outputChunk,
79 StorageInfoOutputData& outputData, const Column& column, const ColumnChunkData& chunkData,

Callers 2

Calls 4

getSelSizeMethod · 0.80
setSelSizeMethod · 0.80
appendMethod · 0.45
resetAuxiliaryBufferMethod · 0.45

Tested by

no test coverage detected