public class GridGgfsHadoopProxyInputStream extends InputStream implements org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.PositionedReadable
| Constructor and Description |
|---|
GridGgfsHadoopProxyInputStream(org.apache.hadoop.fs.FSDataInputStream is,
GridGgfsHadoopLogger clientLog,
long logStreamId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPos() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
read(long pos,
byte[] buf,
int off,
int len) |
void |
readFully(long pos,
byte[] buf) |
void |
readFully(long pos,
byte[] buf,
int off,
int len) |
void |
reset() |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
long |
skip(long n) |
public GridGgfsHadoopProxyInputStream(org.apache.hadoop.fs.FSDataInputStream is,
GridGgfsHadoopLogger clientLog,
long logStreamId)
is - Actual input stream to the secondary file system.clientLog - Client log.public int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(long pos,
byte[] buf,
int off,
int len)
throws IOException
read in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void readFully(long pos,
byte[] buf,
int off,
int len)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void readFully(long pos,
byte[] buf)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void seek(long pos)
throws IOException
seek in interface org.apache.hadoop.fs.SeekableIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekableIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableIOExceptionCopyright © 2014. All rights reserved.