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 Summary
Constructors Constructor Description BufferedOffloadStream(int blockSize, List<Entry> entries, long ledgerId, long beginEntryId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intcalculateBlockSize(int streamingBlockSize, int entryCount, int entrySize)voidclose()longgetBeginEntryId()longgetBlockSize()longgetEndEntryId()longgetLedgerId()intread()-
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
-
-
-
-
Method Detail
-
getEndEntryId
public long getEndEntryId()
-
getLedgerId
public long getLedgerId()
-
getBeginEntryId
public long getBeginEntryId()
-
getBlockSize
public long getBlockSize()
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
calculateBlockSize
public static int calculateBlockSize(int streamingBlockSize, int entryCount, int entrySize)
-
-