MCPcopy Create free account
hub / github.com/apache/orc / writePostscript

Method writePostscript

c++/src/Writer.cc:614–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 }
613
614 void WriterImpl::writePostscript() {
615 if (!postScript_.SerializeToZeroCopyStream(bufferedStream_.get())) {
616 throw std::logic_error("Failed to write post script.");
617 }
618 unsigned char psLength = static_cast<unsigned char>(bufferedStream_->flush());
619 SCOPED_STOPWATCH(options_.getWriterMetrics(), IOBlockingLatencyUs, IOCount);
620 outStream_->write(&psLength, sizeof(unsigned char));
621 }
622
623 void WriterImpl::buildFooterType(const Type& t, proto::Footer& footer, uint32_t& index) {
624 proto::Type protoType;

Callers

nothing calls this directly

Calls 4

getWriterMetricsMethod · 0.80
flushMethod · 0.65
writeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected