MCPcopy Create free account
hub / github.com/bytedance/bolt / isReusableEncoding

Function isReusableEncoding

bolt/vector/BaseVector.cpp:846–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844 auto avgRowSize = 1.0 * leaf->retainedSize() / leaf->size();
845 return length_ * avgRowSize;
846}
847
848namespace {
849bool isReusableEncoding(VectorEncoding::Simple encoding) {
850 return encoding == VectorEncoding::Simple::FLAT ||
851 encoding == VectorEncoding::Simple::ARRAY ||
852 encoding == VectorEncoding::Simple::MAP ||
853 encoding == VectorEncoding::Simple::ROW;
854}

Callers 1

prepareForReuseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected