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;
22 return String.format(
"ARRAY<%s>", itemType_.toSql());
26 public boolean equals(Object other) {
27 if (!(other instanceof
ArrayType))
return false;
28 ArrayType otherArrayType = (
ArrayType) other;
29 return otherArrayType.itemType_.equals(
itemType_);
34 TTypeNode node =
new TTypeNode();
35 container.types.add(node);
37 node.setType(TTypeNodeType.ARRAY);
38 itemType_.toThrift(container);
void toThrift(TColumnType container)
boolean equals(Object other)