public class AliyunOSSInputStream
extends org.apache.hadoop.fs.FSInputStream
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
LOG |
| 构造器和说明 |
|---|
AliyunOSSInputStream(org.apache.hadoop.conf.Configuration conf,
ExecutorService readAheadExecutorService,
int maxReadAheadPartNumber,
AliyunOSSFileSystemStore store,
String key,
Long contentLength,
org.apache.hadoop.fs.FileSystem.Statistics statistics) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
void |
close() |
long |
getExpectNextPos() |
long |
getPos() |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
mark, markSupported, read, reset, skippublic AliyunOSSInputStream(org.apache.hadoop.conf.Configuration conf,
ExecutorService readAheadExecutorService,
int maxReadAheadPartNumber,
AliyunOSSFileSystemStore store,
String key,
Long contentLength,
org.apache.hadoop.fs.FileSystem.Statistics statistics)
throws IOException
IOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic int available()
throws IOException
available 在类中 InputStreamIOExceptionpublic void seek(long pos)
throws IOException
seek 在接口中 org.apache.hadoop.fs.Seekableseek 在类中 org.apache.hadoop.fs.FSInputStreamIOExceptionpublic long getPos()
throws IOException
getPos 在接口中 org.apache.hadoop.fs.SeekablegetPos 在类中 org.apache.hadoop.fs.FSInputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
seekToNewSource 在接口中 org.apache.hadoop.fs.SeekableseekToNewSource 在类中 org.apache.hadoop.fs.FSInputStreamIOExceptionpublic long getExpectNextPos()
Copyright © 2021 Apache Software Foundation. All Rights Reserved.