MCPcopy Create free account
hub / github.com/apache/hive / write

Method write

service/lib/php/Thrift.php:759–775  ·  view source on GitHub ↗
($output)

Source from the content-addressed store, hash-verified

757 }
758
759 public function write($output) {
760 $xfer = 0;
761 $xfer += $output->writeStructBegin('TApplicationException');
762 if ($message = $this->getMessage()) {
763 $xfer += $output->writeFieldBegin('message', TType::STRING, 1);
764 $xfer += $output->writeString($message);
765 $xfer += $output->writeFieldEnd();
766 }
767 if ($code = $this->getCode()) {
768 $xfer += $output->writeFieldBegin('type', TType::I32, 2);
769 $xfer += $output->writeI32($code);
770 $xfer += $output->writeFieldEnd();
771 }
772 $xfer += $output->writeFieldStop();
773 $xfer += $output->writeStructEnd();
774 return $xfer;
775 }
776}
777
778/**

Callers 15

processMethod · 0.95
process_executeMethod · 0.95
process_fetchOneMethod · 0.95
process_fetchNMethod · 0.95
process_fetchAllMethod · 0.95
process_getSchemaMethod · 0.95
process_getQueryPlanMethod · 0.95
process_cleanMethod · 0.95
processMethod · 0.95
process_OpenSessionMethod · 0.95

Calls 9

writeStringMethod · 0.65
writeStructBeginMethod · 0.45
getMessageMethod · 0.45
writeFieldBeginMethod · 0.45
writeFieldEndMethod · 0.45
getCodeMethod · 0.45
writeI32Method · 0.45
writeFieldStopMethod · 0.45
writeStructEndMethod · 0.45

Tested by

no test coverage detected