java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.Seekablepublic class CosNInputStream
extends org.apache.hadoop.fs.FSInputStream
| Modifier and Type | Class | Description |
|---|---|---|
static class |
CosNInputStream.ReadBuffer |
This class is used by
CosNInputStream
and CosNFileReadTask to buffer data that read from COS blob store. |
| Constructor | Description |
|---|---|
CosNInputStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.cosn.NativeFileSystemStore store,
org.apache.hadoop.fs.FileSystem.Statistics statistics,
java.lang.String key,
long fileSize,
java.util.concurrent.ExecutorService readAheadExecutorService) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
long |
getPos() |
|
int |
read() |
|
int |
read(byte[] b,
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 CosNInputStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.cosn.NativeFileSystemStore store,
org.apache.hadoop.fs.FileSystem.Statistics statistics,
java.lang.String key,
long fileSize,
java.util.concurrent.ExecutorService readAheadExecutorService)
public 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()
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreampublic boolean seekToNewSource(long targetPos)
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSInputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamCopyright © 2008–2025 Apache Software Foundation. All rights reserved.