use of org.apache.thrift.protocol.TSet in project elephant-bird by twitter.
the class ThriftProtocolWrapper method readSetBegin.
@Override
public TSet readSetBegin() throws TException {
TSet set = wrapped.readSetBegin();
checkContainerElemType(set.elemType);
return set;
}
use of org.apache.thrift.protocol.TSet in project elephant-bird by twitter.
the class ThriftBinaryProtocol method readSetBegin.
@Override
public TSet readSetBegin() throws TException {
TSet set = super.readSetBegin();
checkContainerSize(set.size);
checkContainerElemType(set.elemType);
return set;
}
use of org.apache.thrift.protocol.TSet in project parquet-mr by apache.
the class BufferedProtocolReadToWrite method readOneSet.
private boolean readOneSet(TProtocol in, List<Action> buffer, SetType expectedType) throws TException {
final TSet set = in.readSetBegin();
buffer.add(new Action() {
@Override
public void write(TProtocol out) throws TException {
out.writeSetBegin(set);
}
@Override
public String toDebugString() {
return "<e=" + set.elemType + ", s=" + set.size + ">{*";
}
});
boolean hasFieldsIgnored = readCollectionElements(in, set.size, set.elemType, buffer, expectedType.getValues().getType());
in.readSetEnd();
buffer.add(SET_END);
return hasFieldsIgnored;
}
Aggregations