Search in sources :

Example 1 with TTypeEntry

use of org.apache.hive.service.rpc.thrift.TTypeEntry 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;
}
Also used : TPrimitiveTypeEntry(org.apache.hive.service.rpc.thrift.TPrimitiveTypeEntry) TTypeDesc(org.apache.hive.service.rpc.thrift.TTypeDesc) TTypeEntry(org.apache.hive.service.rpc.thrift.TTypeEntry)

Aggregations

TPrimitiveTypeEntry (org.apache.hive.service.rpc.thrift.TPrimitiveTypeEntry)1 TTypeDesc (org.apache.hive.service.rpc.thrift.TTypeDesc)1 TTypeEntry (org.apache.hive.service.rpc.thrift.TTypeEntry)1