public class ReadBuffer extends Object
AliyunOSSInputStream
and AliyunOSSFileReaderTask to buffer data that read from oss.| Constructor and Description |
|---|
ReadBuffer(long byteStart,
long byteEnd) |
| Modifier and Type | Method and Description |
|---|---|
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
InterruptedExceptionpublic 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 © 2008–2020 Apache Software Foundation. All rights reserved.