/** * This method releases all resources of the record writer output. It stops the output * flushing thread (if there is one) and releases all buffers currently held by the output * serializers. * * <p>This method should never fail. */ public void releaseOutputs() { for (RecordWriterOutput<?> streamOutput : streamOutputs) { streamOutput.close(); } }
for (RecordWriterOutput<?> output : this.streamOutputs) { if (output != null) { output.close();
/** * This method releases all resources of the record writer output. It stops the output * flushing thread (if there is one) and releases all buffers currently held by the output * serializers. * * <p>This method should never fail. */ public void releaseOutputs() { for (RecordWriterOutput<?> streamOutput : streamOutputs) { streamOutput.close(); } }
/** * This method releases all resources of the record writer output. It stops the output * flushing thread (if there is one) and releases all buffers currently held by the output * serializers. * * <p>This method should never fail. */ public void releaseOutputs() { for (RecordWriterOutput<?> streamOutput : streamOutputs) { streamOutput.close(); } }
/** * This method releases all resources of the record writer output. It stops the output * flushing thread (if there is one) and releases all buffers currently held by the output * serializers. * * <p>This method should never fail. */ public void releaseOutputs() { try { for (RecordWriterOutput<?> streamOutput : streamOutputs) { streamOutput.close(); } } finally { // make sure that we release the buffers in any case for (RecordWriterOutput<?> output : streamOutputs) { output.clearBuffers(); } } }
for (RecordWriterOutput<?> output : this.streamOutputs) { if (output != null) { output.close(); output.clearBuffers();
for (RecordWriterOutput<?> output : this.streamOutputs) { if (output != null) { output.close();
for (RecordWriterOutput<?> output : this.streamOutputs) { if (output != null) { output.close();