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 Details

    • LocalInputStream

      public LocalInputStream(org.apache.hadoop.fs.Path path) throws IOException
      Throws:
      IOException
  • Method Details

    • read

      public int read(long l, byte[] bytes, int i, int i2) throws IOException
      Specified by:
      read in interface org.apache.hadoop.fs.PositionedReadable
      Throws:
      IOException
    • readFully

      public void readFully(long l, byte[] bytes, int i, int i2) throws IOException
      Specified by:
      readFully in interface org.apache.hadoop.fs.PositionedReadable
      Throws:
      IOException
    • readFully

      public void readFully(long l, byte[] bytes) throws IOException
      Specified by:
      readFully in interface org.apache.hadoop.fs.PositionedReadable
      Throws:
      IOException
    • seek

      public void seek(long l) throws IOException
      Specified by:
      seek in interface org.apache.hadoop.fs.Seekable
      Throws:
      IOException
    • getPos

      public long getPos() throws IOException
      Specified by:
      getPos in interface org.apache.hadoop.fs.Seekable
      Throws:
      IOException
    • seekToNewSource

      public boolean seekToNewSource(long l) throws IOException
      Specified by:
      seekToNewSource in interface org.apache.hadoop.fs.Seekable
      Throws:
      IOException
    • read

      public int read(ByteBuffer buf) throws IOException
      Specified by:
      read in interface org.apache.hadoop.fs.ByteBufferReadable
      Throws:
      IOException
    • read

      public int read(byte[] b) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read(byte[] b, int off, int len) throws IOException
      Overrides:
      read in class InputStream
      Throws:
      IOException
    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class InputStream