1 package com.cloudera.impala.catalog;
3 import com.cloudera.impala.thrift.TColumnType;
4 import com.cloudera.impala.thrift.TTypeNode;
5 import com.cloudera.impala.thrift.TTypeNodeType;
6 import com.google.common.base.Preconditions;
16 Preconditions.checkNotNull(keyType);
17 Preconditions.checkNotNull(valueType);
27 return String.format(
"MAP<%s,%s>", keyType_.toSql(),
valueType_.
toSql());
32 TTypeNode node =
new TTypeNode();
33 container.types.add(node);
34 Preconditions.checkNotNull(
keyType_);
36 node.setType(TTypeNodeType.MAP);
37 keyType_.toThrift(container);
38 valueType_.toThrift(container);
void toThrift(TColumnType container)
MapType(Type keyType, Type valueType)