类 BufferedOffloadStream
java.lang.Object
java.io.InputStream
org.apache.bookkeeper.mledger.offload.jcloud.impl.BufferedOffloadStream
- 所有已实现的接口:
Closeable,AutoCloseable
-
构造器概要
构造器构造器说明BufferedOffloadStream(int blockSize, List<org.apache.bookkeeper.mledger.Entry> entries, long ledgerId, long beginEntryId) -
方法概要
修饰符和类型方法说明static intcalculateBlockSize(int streamingBlockSize, int entryCount, int entrySize) voidclose()longlonglonglongintread()从类继承的方法 java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
构造器详细资料
-
BufferedOffloadStream
public BufferedOffloadStream(int blockSize, List<org.apache.bookkeeper.mledger.Entry> entries, long ledgerId, long beginEntryId)
-
-
方法详细资料
-
getEndEntryId
public long getEndEntryId() -
getLedgerId
public long getLedgerId() -
getBeginEntryId
public long getBeginEntryId() -
getBlockSize
public long getBlockSize() -
read
- 指定者:
read在类中InputStream- 抛出:
IOException
-
close
- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中InputStream- 抛出:
IOException
-
calculateBlockSize
public static int calculateBlockSize(int streamingBlockSize, int entryCount, int entrySize)
-