Class BufferedOffloadStream

java.lang.Object
java.io.InputStream
org.apache.bookkeeper.mledger.offload.jcloud.impl.BufferedOffloadStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class BufferedOffloadStream extends InputStream
  • Constructor Details

    • BufferedOffloadStream

      public BufferedOffloadStream(int blockSize, List<Entry> entries, long ledgerId, long beginEntryId)
  • Method Details

    • getEndEntryId

      public long getEndEntryId()
    • getLedgerId

      public long getLedgerId()
    • getBeginEntryId

      public long getBeginEntryId()
    • getBlockSize

      public long getBlockSize()
    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream
      Throws:
      IOException
    • calculateBlockSize

      public static int calculateBlockSize(int streamingBlockSize, int entryCount, int entrySize)