public abstract class GridGgfsInputStream extends InputStream
GGFS input stream to read data from the file system.
It provides several additional methods for asynchronous access.| Constructor and Description |
|---|
GridGgfsInputStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.gridgain.grid.kernal.processors.ggfs.GridGgfsFileInfo |
fileInfo()
Gets file info for opened file.
|
abstract long |
position()
Get the current position in the input stream.
|
abstract int |
read(long pos,
byte[] buf,
int off,
int len) |
abstract byte[][] |
readChunks(long pos,
int len)
Reads bytes from given position.
|
abstract void |
readFully(long pos,
byte[] buf)
Read bytes from the given position in the stream to the given buffer.
|
abstract void |
readFully(long pos,
byte[] buf,
int off,
int len) |
abstract void |
seek(long pos)
Seek to the specified position.
|
available, close, mark, markSupported, read, read, read, reset, skippublic abstract org.gridgain.grid.kernal.processors.ggfs.GridGgfsFileInfo fileInfo()
public abstract void seek(long pos)
throws IOException
pos - Position to seek to.IOException - In case of IO exception.public abstract long position()
throws IOException
IOException - In case of IO exception.public abstract void readFully(long pos,
byte[] buf)
throws IOException
pos - Position in the input stream to seek.buf - Buffer into which data is read.IOException - In case of IO exception.public abstract byte[][] readChunks(long pos,
int len)
throws IOException
pos - Position to read from.len - Number of bytes to read.IOException - If read failed.public abstract void readFully(long pos,
byte[] buf,
int off,
int len)
throws IOException
pos - Position in the input stream to seek.buf - Buffer into which data is read.off - Offset in the buffer from which stream data should be written.len - The number of bytes to read.IOException - In case of IO exception.public abstract int read(long pos,
byte[] buf,
int off,
int len)
throws IOException
pos - Position in the input stream to seek.buf - Buffer into which data is read.off - Offset in the buffer from which stream data should be written.len - The number of bytes to read.IOException - In case of IO exception.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014