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

Method fromThrift

fe/src/main/java/org/apache/impala/util/KuduUtil.java:274–295  ·  view source on GitHub ↗
(TColumnEncoding encoding)

Source from the content-addressed store, hash-verified

272 }
273
274 public static Encoding fromThrift(TColumnEncoding encoding)
275 throws ImpalaRuntimeException {
276 switch (encoding) {
277 case AUTO:
278 return Encoding.AUTO_ENCODING;
279 case PLAIN:
280 return Encoding.PLAIN_ENCODING;
281 case PREFIX:
282 return Encoding.PREFIX_ENCODING;
283 case GROUP_VARINT:
284 return Encoding.GROUP_VARINT;
285 case RLE:
286 return Encoding.RLE;
287 case DICTIONARY:
288 return Encoding.DICT_ENCODING;
289 case BIT_SHUFFLE:
290 return Encoding.BIT_SHUFFLE;
291 default:
292 throw new ImpalaRuntimeException("Unsupported encoding: " +
293 encoding.toString());
294 }
295 }
296
297 public static TColumnEncoding toThrift(Encoding encoding)
298 throws ImpalaRuntimeException {

Callers 3

createColumnSchemaMethod · 0.95
alterColumnMethod · 0.95
fromThriftMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected