MCPcopy Create free account
hub / github.com/apache/thrift / processChunk

Method processChunk

lib/cpp/src/thrift/transport/TFileTransport.cpp:1044–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042}
1043
1044void TFileProcessor::processChunk() {
1045 shared_ptr<TProtocol> inputProtocol = inputProtocolFactory_->getProtocol(inputTransport_);
1046 shared_ptr<TProtocol> outputProtocol = outputProtocolFactory_->getProtocol(outputTransport_);
1047
1048 uint32_t curChunk = inputTransport_->getCurChunk();
1049
1050 while (1) {
1051 // bad form to use exceptions for flow control but there is really
1052 // no other way around it
1053 try {
1054 processor_->process(inputProtocol, outputProtocol, nullptr);
1055 if (curChunk != inputTransport_->getCurChunk()) {
1056 break;
1057 }
1058 } catch (TEOFException&) {
1059 break;
1060 } catch (TException& te) {
1061 cerr << te.what() << '\n';
1062 break;
1063 }
1064 }
1065}
1066}
1067}
1068} // apache::thrift::transport

Callers

nothing calls this directly

Calls 4

getProtocolMethod · 0.65
processMethod · 0.65
getCurChunkMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected