Class BufferedOffloadStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.bookkeeper.mledger.offload.jcloud.impl.BufferedOffloadStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class BufferedOffloadStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description BufferedOffloadStream(int blockSize, java.util.List<org.apache.bookkeeper.mledger.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()
-
-
-
Method Detail
-
getEndEntryId
public long getEndEntryId()
-
getLedgerId
public long getLedgerId()
-
getBeginEntryId
public long getBeginEntryId()
-
getBlockSize
public long getBlockSize()
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.InputStream- Throws:
java.io.IOException
-
calculateBlockSize
public static int calculateBlockSize(int streamingBlockSize, int entryCount, int entrySize)
-
-