org.apache.commons.compress.parallel

Interface ScatterGatherBackingStore

  • All Superinterfaces:
    AutoCloseable, Closeable
    All Known Implementing Classes:
    FileBasedScatterGatherBackingStore


    public interface ScatterGatherBackingStoreextends Closeable

    Store intermediate payload in a scatter-gather scenario. Multiple threads write their payload to a backing store, which can subsequently be reversed to an InputStream to be used as input in the gather phase.

    It is the responsibility of the allocator of an instance of this class to close this. Closing it should clear off any allocated structures and preferably delete files.

    Since:
    1.10
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      voidcloseForWriting()
      Closes this backing store for further writing.
      InputStreamgetInputStream()
      An input stream that contains the scattered payload
      voidwriteOut(byte[] data, int offset, int length)
      Writes a piece of payload.
    • Method Detail

      • writeOut

        void writeOut(byte[] data,            int offset,            int length)              throws IOException
        Writes a piece of payload.
        Parameters:
        data - the data to write
        offset - offset inside data to start writing from
        length - the amount of data to write
        Throws:
        IOException - when something fails

Copyright © 2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14