use of org.apache.hive.service.rpc.thrift.TTypeDesc in project hive by apache.
the class TypeDescriptor method toTTypeDesc.
public TTypeDesc toTTypeDesc() {
TPrimitiveTypeEntry primitiveEntry = new TPrimitiveTypeEntry(type.toTType());
if (getTypeQualifiers() != null) {
primitiveEntry.setTypeQualifiers(getTypeQualifiers().toTTypeQualifiers());
}
TTypeEntry entry = TTypeEntry.primitiveEntry(primitiveEntry);
TTypeDesc desc = new TTypeDesc();
desc.addToTypes(entry);
return desc;
}
Aggregations