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

Method appendColumn

src/processor/result/factorized_table_schema.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void FactorizedTableSchema::appendColumn(ColumnSchema column) {
24 numBytesForDataPerTuple += column.getNumBytes();
25 columns.push_back(std::move(column));
26 colOffsets.push_back(
27 colOffsets.empty() ? 0 : colOffsets.back() + getColumn(columns.size() - 2)->getNumBytes());
28 numBytesForNullMapPerTuple = NullBuffer::getNumBytesForNullValues(getNumColumns());
29 numBytesPerTuple = numBytesForDataPerTuple + numBytesForNullMapPerTuple;
30}
31
32bool FactorizedTableSchema::operator==(const FactorizedTableSchema& other) const {
33 if (columns.size() != other.columns.size()) {

Callers 12

createFTableSchemaMethod · 0.80
createFlatTableSchemaMethod · 0.80
getTableSchemaForKeysMethod · 0.80
getFactorizedTableSchemaFunction · 0.80
getFactorizedTableSchemaFunction · 0.80
mapOrderByMethod · 0.80
createResultCollectorMethod · 0.80
mapDummyScanMethod · 0.80
createHashBuildInfoMethod · 0.80

Calls 6

getNumBytesMethod · 0.80
getColumnFunction · 0.50
getNumColumnsFunction · 0.50
push_backMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected