public final class HadoopIgfsInputStream extends InputStream implements Seekable, PositionedReadable, HadoopIgfsStreamEventListener
| Constructor and Description |
|---|
HadoopIgfsInputStream(HadoopIgfsStreamDelegate delegate,
long limit,
int bufSize,
org.apache.commons.logging.Log log,
IgfsLogger clientLog,
long logStreamId)
Creates input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPos() |
void |
mark(int readLimit) |
boolean |
markSupported() |
void |
onClose()
Callback invoked when the stream is being closed.
|
void |
onError(String errMsg)
Callback invoked when remote error occurs.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
read(long position,
byte[] buf,
int off,
int len) |
void |
readFully(long position,
byte[] buf) |
void |
readFully(long position,
byte[] buf,
int off,
int len) |
void |
reset() |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
long |
skip(long n) |
readpublic HadoopIgfsInputStream(HadoopIgfsStreamDelegate delegate, long limit, int bufSize, org.apache.commons.logging.Log log, IgfsLogger clientLog, long logStreamId)
delegate - Server stream delegate.limit - Read limit.bufSize - Buffer size.log - Log.clientLog - Client logger.public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(@NotNull
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(long position,
byte[] buf,
int off,
int len)
throws IOException
read in interface PositionedReadableIOExceptionpublic void readFully(long position,
byte[] buf,
int off,
int len)
throws IOException
readFully in interface PositionedReadableIOExceptionpublic void readFully(long position,
byte[] buf)
throws IOException
readFully in interface PositionedReadableIOExceptionpublic void seek(long pos)
throws IOException
seek in interface SeekableIOExceptionpublic boolean seekToNewSource(long targetPos)
seekToNewSource in interface Seekablepublic void onClose()
onClose in interface HadoopIgfsStreamEventListenerpublic void onError(String errMsg)
onError in interface HadoopIgfsStreamEventListenererrMsg - Error message.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019