Class BufferedOffloadStream
java.lang.Object
java.io.InputStream
org.apache.bookkeeper.mledger.offload.jcloud.impl.BufferedOffloadStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionBufferedOffloadStream(int blockSize, List<Entry> entries, long ledgerId, long beginEntryId) -
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateBlockSize(int streamingBlockSize, int entryCount, int entrySize) voidclose()longlonglonglongintread()Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BufferedOffloadStream
-
-
Method Details
-
getEndEntryId
public long getEndEntryId() -
getLedgerId
public long getLedgerId() -
getBeginEntryId
public long getBeginEntryId() -
getBlockSize
public long getBlockSize() -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
calculateBlockSize
public static int calculateBlockSize(int streamingBlockSize, int entryCount, int entrySize)
-