public class AliyunOSSInputStream
extends org.apache.hadoop.fs.FSInputStream
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AliyunOSSInputStream(org.apache.hadoop.conf.Configuration conf,
ExecutorService readAheadExecutorService,
int maxReadAheadPartNumber,
AliyunOSSFileSystemStore store,
String key,
Long contentLength,
org.apache.hadoop.fs.FileSystem.Statistics statistics) |
| Modifier and Type | Method and Description |
|---|---|
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) |
read, readFully, readFully, validatePositionedReadArgsmark, 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 in class InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic long getExpectNextPos()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.