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

Function isDictionaryOverFlat

bolt/expression/PeeledEncoding.cpp:102–105  ·  view source on GitHub ↗

Returns true if 'wrapper' is a dictionary vector over a flat vector.

Source from the content-addressed store, hash-verified

100
101/// Returns true if 'wrapper' is a dictionary vector over a flat vector.
102bool isDictionaryOverFlat(const BaseVector& wrapper) {
103 return wrapper.encoding() == VectorEncoding::Simple::DICTIONARY &&
104 wrapper.valueVector()->isFlatEncoding();
105}
106} // namespace
107
108void PeeledEncoding::setDictionaryWrapping(

Callers 1

setDictionaryWrappingMethod · 0.85

Calls 1

encodingMethod · 0.45

Tested by

no test coverage detected