()
| 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 |
no test coverage detected