public class SnapshotFileReader extends LocalDirReader
EOF| 构造器和说明 |
|---|
SnapshotFileReader(String path,
SnapshotThrottle snapshotThrottle) |
| 限定符和类型 | 方法和说明 |
|---|---|
LocalSnapshotMetaTable |
getMetaTable() |
boolean |
open() |
int |
readFile(ByteBufferCollector metaBufferCollector,
String fileName,
long offset,
long maxCount)
Read file into buf starts from offset at most maxCount.
|
void |
setMetaTable(LocalSnapshotMetaTable metaTable) |
getPath, readFileWithMetapublic SnapshotFileReader(String path, SnapshotThrottle snapshotThrottle)
public LocalSnapshotMetaTable getMetaTable()
public void setMetaTable(LocalSnapshotMetaTable metaTable)
public boolean open()
public int readFile(ByteBufferCollector metaBufferCollector, String fileName, long offset, long maxCount) throws IOException, RetryAgainException
FileReaderreadFile 在接口中 FileReaderreadFile 在类中 LocalDirReadermetaBufferCollector - read bytes into this buffileName - file nameoffset - the offset of filemaxCount - max read bytesIOException - if some I/O error occursRetryAgainException - if it's not allowed to read partly
or it's allowed but throughput is throttled to 0, try again.Copyright © 2021. All rights reserved.