java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.Seekablepublic class AliyunOSSInputStream
extends org.apache.hadoop.fs.FSInputStream
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
AliyunOSSInputStream(org.apache.hadoop.conf.Configuration conf,
java.util.concurrent.ExecutorService readAheadExecutorService,
int maxReadAheadPartNumber,
AliyunOSSFileSystemStore store,
java.lang.String key,
java.lang.Long contentLength,
org.apache.hadoop.fs.FileSystem.Statistics statistics) |
| Modifier and Type | Method | 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, toString, validatePositionedReadArgsmark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTopublic AliyunOSSInputStream(org.apache.hadoop.conf.Configuration conf,
java.util.concurrent.ExecutorService readAheadExecutorService,
int maxReadAheadPartNumber,
AliyunOSSFileSystemStore store,
java.lang.String key,
java.lang.Long contentLength,
org.apache.hadoop.fs.FileSystem.Statistics statistics)
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void seek(long pos)
throws java.io.IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamjava.io.IOExceptionpublic long getPos()
throws java.io.IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreamjava.io.IOExceptionpublic boolean seekToNewSource(long targetPos)
throws java.io.IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSInputStreamjava.io.IOExceptionpublic long getExpectNextPos()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.