15 package com.cloudera.impala.catalog;
17 import com.cloudera.impala.thrift.TColumnType;
18 import com.cloudera.impala.thrift.TStructField;
19 import com.cloudera.impala.thrift.TTypeNode;
38 this(
name, type, null);
48 StringBuilder sb =
new StringBuilder(
name_);
49 if (
type_ != null) sb.append(
":" + type_.toSql());
54 public void toThrift(TColumnType container, TTypeNode node) {
55 TStructField field =
new TStructField();
58 node.struct_fields.add(field);
59 type_.toThrift(container);
63 public boolean equals(Object other) {
66 return otherStructField.name_.equals(
name_) && otherStructField.
type_.equals(
type_);
void toThrift(TColumnType container, TTypeNode node)
boolean equals(Object other)
void setPosition(int position)
StructField(String name, Type type)
StructField(String name, Type type, String comment)