MCPcopy Index your code
hub / github.com/apache/orc / close

Method close

java/core/src/java/org/apache/orc/impl/WriterImpl.java:802–819  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

800 }
801
802 @Override
803 public void close() throws IOException {
804 if (!isClose) {
805 try {
806 if (callback != null) {
807 callback.preFooterWrite(callbackContext);
808 }
809 // remove us from the memory manager so that we don't get any callbacks
810 memoryManager.removeWriter(path);
811 // actually close the file
812 flushStripe();
813 lastFlushOffset = writeFooter();
814 physicalWriter.close();
815 } finally {
816 isClose = true;
817 }
818 }
819 }
820
821 /**
822 * Raw data size will be compute when writing the file footer. Hence raw data

Callers 1

addRowBatchMethod · 0.95

Calls 5

flushStripeMethod · 0.95
writeFooterMethod · 0.95
preFooterWriteMethod · 0.80
removeWriterMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected