Package org.apache.drill.exec.store
Class LocalSyncableFileSystem.LocalInputStream
java.lang.Object
java.io.InputStream
org.apache.drill.exec.store.LocalSyncableFileSystem.LocalInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.fs.ByteBufferReadable,org.apache.hadoop.fs.PositionedReadable,org.apache.hadoop.fs.Seekable
- Enclosing class:
- LocalSyncableFileSystem
public class LocalSyncableFileSystem.LocalInputStream
extends InputStream
implements org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.ByteBufferReadable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longgetPos()intread()intread(byte[] b) intread(byte[] b, int off, int len) intread(long l, byte[] bytes, int i, int i2) intread(ByteBuffer buf) voidreadFully(long l, byte[] bytes) voidreadFully(long l, byte[] bytes, int i, int i2) voidseek(long l) booleanseekToNewSource(long l) Methods inherited from class java.io.InputStream
available, mark, markSupported, reset, skip
-
Constructor Details
-
LocalInputStream
- Throws:
IOException
-
-
Method Details
-
read
- Specified by:
readin interfaceorg.apache.hadoop.fs.PositionedReadable- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceorg.apache.hadoop.fs.PositionedReadable- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceorg.apache.hadoop.fs.PositionedReadable- Throws:
IOException
-
seek
- Specified by:
seekin interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
getPos
- Specified by:
getPosin interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
seekToNewSource
- Specified by:
seekToNewSourcein interfaceorg.apache.hadoop.fs.Seekable- Throws:
IOException
-
read
- Specified by:
readin interfaceorg.apache.hadoop.fs.ByteBufferReadable- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-