Package org.apache.drill.exec.store.dfs
Class DrillFSDataInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.apache.hadoop.fs.FSDataInputStream
org.apache.drill.exec.store.dfs.DrillFSDataInputStream
- All Implemented Interfaces:
- Closeable,- DataInput,- AutoCloseable,- org.apache.hadoop.fs.ByteBufferPositionedReadable,- org.apache.hadoop.fs.ByteBufferReadable,- org.apache.hadoop.fs.CanSetDropBehind,- org.apache.hadoop.fs.CanSetReadahead,- org.apache.hadoop.fs.CanUnbuffer,- org.apache.hadoop.fs.HasEnhancedByteBufferAccess,- org.apache.hadoop.fs.HasFileDescriptor,- org.apache.hadoop.fs.PositionedReadable,- org.apache.hadoop.fs.Seekable,- org.apache.hadoop.fs.statistics.IOStatisticsSource,- org.apache.hadoop.fs.StreamCapabilities
public class DrillFSDataInputStream
extends org.apache.hadoop.fs.FSDataInputStream
Wrapper around FSDataInputStream to collect IO Stats.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.hadoop.fs.StreamCapabilitiesorg.apache.hadoop.fs.StreamCapabilities.StreamCapability
- 
Field SummaryFields inherited from class java.io.FilterInputStreaminFields inherited from interface org.apache.hadoop.fs.StreamCapabilitiesABORTABLE_STREAM, DROPBEHIND, HFLUSH, HSYNC, IOSTATISTICS, IOSTATISTICS_CONTEXT, PREADBYTEBUFFER, READAHEAD, READBYTEBUFFER, UNBUFFER, VECTOREDIO
- 
Constructor SummaryConstructorsConstructorDescriptionDrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in, OperatorStats operatorStats) DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in, OperatorStats operatorStats, OpenFileTracker openFileTracker) 
- 
Method SummaryModifier and TypeMethodDescriptionintvoidclose()longgetPos()voidmark(int readlimit) booleanintread()intread(long position, byte[] buffer, int offset, int length) intread(ByteBuffer buf) read(org.apache.hadoop.io.ByteBufferPool bufferPool, int maxLength, EnumSet<org.apache.hadoop.fs.ReadOption> opts) voidreadFully(long position, byte[] buffer) voidreadFully(long position, byte[] buffer, int offset, int length) voidreleaseBuffer(ByteBuffer buffer) voidreset()voidseek(long desired) booleanseekToNewSource(long targetPos) voidsetDropBehind(Boolean dropBehind) voidsetReadahead(Long readahead) longskip(long n) voidunbuffer()Methods inherited from class org.apache.hadoop.fs.FSDataInputStreamgetIOStatistics, hasCapability, maxReadSizeForVectorReads, minSeekForVectorReads, read, read, readFully, readVectored, toStringMethods inherited from class java.io.DataInputStreamread, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytesMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
- 
Constructor Details- 
DrillFSDataInputStreampublic DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in, OperatorStats operatorStats) 
- 
DrillFSDataInputStreampublic DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in, OperatorStats operatorStats, OpenFileTracker openFileTracker) 
 
- 
- 
Method Details- 
seek- Specified by:
- seekin interface- org.apache.hadoop.fs.Seekable
- Overrides:
- seekin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
getPos- Specified by:
- getPosin interface- org.apache.hadoop.fs.Seekable
- Overrides:
- getPosin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- org.apache.hadoop.fs.PositionedReadable
- Overrides:
- readin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
readFully- Specified by:
- readFullyin interface- org.apache.hadoop.fs.PositionedReadable
- Overrides:
- readFullyin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
readFully- Specified by:
- readFullyin interface- org.apache.hadoop.fs.PositionedReadable
- Overrides:
- readFullyin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
seekToNewSource- Specified by:
- seekToNewSourcein interface- org.apache.hadoop.fs.Seekable
- Overrides:
- seekToNewSourcein class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
getWrappedStream- Overrides:
- getWrappedStreamin class- org.apache.hadoop.fs.FSDataInputStream
 
- 
read- Specified by:
- readin interface- org.apache.hadoop.fs.ByteBufferReadable
- Overrides:
- readin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
getFileDescriptor- Specified by:
- getFileDescriptorin interface- org.apache.hadoop.fs.HasFileDescriptor
- Overrides:
- getFileDescriptorin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
 
- 
setReadahead- Specified by:
- setReadaheadin interface- org.apache.hadoop.fs.CanSetReadahead
- Overrides:
- setReadaheadin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
- UnsupportedOperationException
 
- 
setDropBehind- Specified by:
- setDropBehindin interface- org.apache.hadoop.fs.CanSetDropBehind
- Overrides:
- setDropBehindin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
- UnsupportedOperationException
 
- 
readpublic ByteBuffer read(org.apache.hadoop.io.ByteBufferPool bufferPool, int maxLength, EnumSet<org.apache.hadoop.fs.ReadOption> opts) throws IOException, UnsupportedOperationException - Specified by:
- readin interface- org.apache.hadoop.fs.HasEnhancedByteBufferAccess
- Overrides:
- readin class- org.apache.hadoop.fs.FSDataInputStream
- Throws:
- IOException
- UnsupportedOperationException
 
- 
releaseBuffer- Specified by:
- releaseBufferin interface- org.apache.hadoop.fs.HasEnhancedByteBufferAccess
- Overrides:
- releaseBufferin class- org.apache.hadoop.fs.FSDataInputStream
 
- 
read- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
- 
skip- Overrides:
- skipin class- FilterInputStream
- Throws:
- IOException
 
- 
available- Overrides:
- availablein class- FilterInputStream
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- FilterInputStream
- Throws:
- IOException
 
- 
markpublic void mark(int readlimit) - Overrides:
- markin class- FilterInputStream
 
- 
reset- Overrides:
- resetin class- FilterInputStream
- Throws:
- IOException
 
- 
markSupportedpublic boolean markSupported()- Overrides:
- markSupportedin class- FilterInputStream
 
- 
unbufferpublic void unbuffer()- Specified by:
- unbufferin interface- org.apache.hadoop.fs.CanUnbuffer
- Overrides:
- unbufferin class- org.apache.hadoop.fs.FSDataInputStream
 
 
-