MCPcopy Create free account
hub / github.com/apache/impala / toThrift

Method toThrift

fe/src/main/java/org/apache/impala/util/KuduUtil.java:297–318  ·  view source on GitHub ↗
(Encoding encoding)

Source from the content-addressed store, hash-verified

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 {

Callers 1

setColumnOptionsMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected