| 88 | } |
| 89 | |
| 90 | std::string toString() const { |
| 91 | std::stringstream out; |
| 92 | out << mapSimpleToName(encoding) << ", " << cardinality << " rows"; |
| 93 | |
| 94 | switch (encoding) { |
| 95 | case VectorEncoding::Simple::FLAT: |
| 96 | break; |
| 97 | case VectorEncoding::Simple::DICTIONARY: |
| 98 | if (indices) { |
| 99 | out << " shared indices"; |
| 100 | } else { |
| 101 | out << " null every " << nullFrequency; |
| 102 | } |
| 103 | break; |
| 104 | case VectorEncoding::Simple::CONSTANT: |
| 105 | out << " base index " << constantIndex; |
| 106 | break; |
| 107 | default:; |
| 108 | } |
| 109 | |
| 110 | return out.str(); |
| 111 | } |
| 112 | }; |
| 113 | |
| 114 | std::string toString(const std::vector<EncodingOptions>& options) { |
no test coverage detected