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