public class CosNInputStream
extends org.apache.hadoop.fs.FSInputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
CosNInputStream.ReadBuffer
This class is used by
CosNInputStream
and CosNFileReadTask to buffer data that read from COS blob store. |
| Constructor and Description |
|---|
CosNInputStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.cosn.NativeFileSystemStore store,
org.apache.hadoop.fs.FileSystem.Statistics statistics,
String key,
long fileSize,
ExecutorService readAheadExecutorService) |
| Modifier and Type | Method and 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, read, reset, skippublic CosNInputStream(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.cosn.NativeFileSystemStore store,
org.apache.hadoop.fs.FileSystem.Statistics statistics,
String key,
long fileSize,
ExecutorService readAheadExecutorService)
public void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic 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 IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamCopyright © 2008–2021 Apache Software Foundation. All rights reserved.