MCPcopy Create free account
hub / github.com/SouravRoy-ETL/slothdb / Encode

Method Encode

src/execution/dictionary_vector.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36uint32_t DictionaryVector::Encode(const Value &val) const {
37 if (val.IsNull()) return INVALID_CODE;
38 auto it = encode_map_.find(val.ToString());
39 return (it != encode_map_.end()) ? it->second : INVALID_CODE;
40}
41
42const Value &DictionaryVector::Decode(uint32_t code) const {
43 static Value null_val;

Callers 1

Calls 2

IsNullMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected