Search in sources :

Example 6 with TSet

use of org.apache.thrift.protocol.TSet in project hive by apache.

the class TCTLSeparatedProtocol method readSetBegin.

@Override
public TSet readSetBegin() throws TException {
    assert (!inner);
    TSet set = new TSet();
    if (columns[index] == null || columns[index].equals(nullString)) {
        index++;
        if (returnNulls) {
            return null;
        }
    } else if (columns[index].isEmpty()) {
        index++;
    } else {
        fields = secondaryPattern.split(columns[index++]);
        set = new TSet(ORDERED_TYPE, fields.length);
    }
    inner = true;
    innerIndex = 0;
    return set;
}
Also used : TSet(org.apache.thrift.protocol.TSet)

Aggregations

TSet (org.apache.thrift.protocol.TSet)6 EnumMap (java.util.EnumMap)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2 Map (java.util.Map)2 TList (org.apache.thrift.protocol.TList)2 TMap (org.apache.thrift.protocol.TMap)2 ArrayList (java.util.ArrayList)1 Set (java.util.Set)1 ListObjectInspector (org.apache.hadoop.hive.serde2.objectinspector.ListObjectInspector)1 TField (org.apache.thrift.protocol.TField)1