public class HadoopIgfsSecondaryFileSystemPositionedReadable extends Object implements IgfsSecondaryFileSystemPositionedReadable
The class is expected to be used only from synchronized context and therefore is not tread-safe.
| Constructor and Description |
|---|
HadoopIgfsSecondaryFileSystemPositionedReadable(FileSystem fs,
Path path,
int bufSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close wrapped input stream in case it was previously opened.
|
int |
read(long pos,
byte[] buf,
int off,
int len) |
public HadoopIgfsSecondaryFileSystemPositionedReadable(FileSystem fs, Path path, int bufSize)
fs - Secondary file system.path - Path to the file to open.bufSize - Buffer size.public void close()
close in interface Closeableclose in interface AutoCloseablepublic int read(long pos,
byte[] buf,
int off,
int len)
throws IOException
read in interface IgfsSecondaryFileSystemPositionedReadableIOException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019