public class ReadBuffer extends Object
AliyunOSSInputStream
and AliyunOSSFileReaderTask to buffer data that read from oss.| 构造器和说明 |
|---|
ReadBuffer(long byteStart,
long byteEnd) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
await(org.apache.hadoop.fs.aliyun.oss.ReadBuffer.STATUS waitStatus) |
byte[] |
getBuffer() |
long |
getByteEnd() |
long |
getByteStart() |
org.apache.hadoop.fs.aliyun.oss.ReadBuffer.STATUS |
getStatus() |
void |
lock() |
void |
setStatus(org.apache.hadoop.fs.aliyun.oss.ReadBuffer.STATUS status) |
void |
signalAll() |
void |
unlock() |
public void lock()
public void unlock()
public void await(org.apache.hadoop.fs.aliyun.oss.ReadBuffer.STATUS waitStatus)
throws InterruptedException
public void signalAll()
public byte[] getBuffer()
public org.apache.hadoop.fs.aliyun.oss.ReadBuffer.STATUS getStatus()
public void setStatus(org.apache.hadoop.fs.aliyun.oss.ReadBuffer.STATUS status)
public long getByteStart()
public long getByteEnd()
Copyright © 2021 Apache Software Foundation. All Rights Reserved.