Class CachedDataOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class CachedDataOutputStream
    extends org.apache.flink.core.fs.FSDataOutputStream
    A FSDataOutputStream delegates requests to other one and supports writing data with ByteBuffer. The data will be written to the original output stream and the cache output stream. When the stream is closed, the data will be put into the cache and ready to be read.
    • Constructor Detail

      • CachedDataOutputStream

        public CachedDataOutputStream​(org.apache.flink.core.fs.Path originalPath,
                                      org.apache.flink.core.fs.Path cachePath,
                                      org.apache.flink.core.fs.FSDataOutputStream originalOutputStream,
                                      @Nullable
                                      org.apache.flink.core.fs.FSDataOutputStream cacheOutputStream,
                                      FileBasedCache cache)