public class S3AInputStream
extends org.apache.hadoop.fs.FSInputStream
| Modifier and Type | Field and Description |
|---|---|
static long |
CLOSE_THRESHOLD |
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
S3AInputStream(String bucket,
String key,
long contentLength,
com.amazonaws.services.s3.AmazonS3Client client,
org.apache.hadoop.fs.FileSystem.Statistics stats) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPos() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
mark, read, reset, skippublic static final org.slf4j.Logger LOG
public static final long CLOSE_THRESHOLD
public long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreamIOExceptionpublic void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek 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 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 boolean markSupported()
markSupported in class InputStreamCopyright © 2016 Apache Software Foundation. All Rights Reserved.