(Encoding encoding)
| 295 | } |
| 296 | |
| 297 | public static TColumnEncoding toThrift(Encoding encoding) |
| 298 | throws ImpalaRuntimeException { |
| 299 | switch (encoding) { |
| 300 | case AUTO_ENCODING: |
| 301 | return TColumnEncoding.AUTO; |
| 302 | case PLAIN_ENCODING: |
| 303 | return TColumnEncoding.PLAIN; |
| 304 | case PREFIX_ENCODING: |
| 305 | return TColumnEncoding.PREFIX; |
| 306 | case GROUP_VARINT: |
| 307 | return TColumnEncoding.GROUP_VARINT; |
| 308 | case RLE: |
| 309 | return TColumnEncoding.RLE; |
| 310 | case DICT_ENCODING: |
| 311 | return TColumnEncoding.DICTIONARY; |
| 312 | case BIT_SHUFFLE: |
| 313 | return TColumnEncoding.BIT_SHUFFLE; |
| 314 | default: |
| 315 | throw new ImpalaRuntimeException("Unsupported encoding: " + |
| 316 | encoding.toString()); |
| 317 | } |
| 318 | } |
| 319 | |
| 320 | public static CompressionAlgorithm fromThrift(THdfsCompression compression) |
| 321 | throws ImpalaRuntimeException { |
no test coverage detected