public class DrillFSDataInputStream
extends org.apache.hadoop.fs.FSDataInputStream
in| Constructor and Description |
|---|
DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in,
OperatorStatReceiver operatorStats) |
DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in,
OperatorStatReceiver operatorStats,
OpenFileTracker openFileTracker) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
FileDescriptor |
getFileDescriptor() |
long |
getPos() |
InputStream |
getWrappedStream() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(ByteBuffer buf) |
ByteBuffer |
read(org.apache.hadoop.io.ByteBufferPool bufferPool,
int maxLength,
EnumSet<org.apache.hadoop.fs.ReadOption> opts) |
int |
read(long position,
byte[] buffer,
int offset,
int length) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int offset,
int length) |
void |
releaseBuffer(ByteBuffer buffer) |
void |
reset() |
void |
seek(long desired) |
boolean |
seekToNewSource(long targetPos) |
void |
setDropBehind(Boolean dropBehind) |
void |
setReadahead(Long readahead) |
long |
skip(long n) |
void |
unbuffer() |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytespublic DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in,
OperatorStatReceiver operatorStats)
throws IOException
IOExceptionpublic DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in,
OperatorStatReceiver operatorStats,
OpenFileTracker openFileTracker)
throws IOException
IOExceptionpublic void seek(long desired)
throws IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic int read(long position,
byte[] buffer,
int offset,
int length)
throws IOException
read in interface org.apache.hadoop.fs.PositionedReadableread in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic void readFully(long position,
byte[] buffer,
int offset,
int length)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadablereadFully in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic void readFully(long position,
byte[] buffer)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadablereadFully in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSDataInputStreamIOException@InterfaceAudience.LimitedPrivate(value="HDFS") public InputStream getWrappedStream()
getWrappedStream in class org.apache.hadoop.fs.FSDataInputStreampublic int read(ByteBuffer buf) throws IOException
read in interface org.apache.hadoop.fs.ByteBufferReadableread in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic FileDescriptor getFileDescriptor() throws IOException
getFileDescriptor in interface org.apache.hadoop.fs.HasFileDescriptorgetFileDescriptor in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionpublic void setReadahead(Long readahead) throws IOException, UnsupportedOperationException
setReadahead in interface org.apache.hadoop.fs.CanSetReadaheadsetReadahead in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionUnsupportedOperationExceptionpublic void setDropBehind(Boolean dropBehind) throws IOException, UnsupportedOperationException
setDropBehind in interface org.apache.hadoop.fs.CanSetDropBehindsetDropBehind in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionUnsupportedOperationExceptionpublic ByteBuffer read(org.apache.hadoop.io.ByteBufferPool bufferPool, int maxLength, EnumSet<org.apache.hadoop.fs.ReadOption> opts) throws IOException, UnsupportedOperationException
read in interface org.apache.hadoop.fs.HasEnhancedByteBufferAccessread in class org.apache.hadoop.fs.FSDataInputStreamIOExceptionUnsupportedOperationExceptionpublic void releaseBuffer(ByteBuffer buffer)
releaseBuffer in interface org.apache.hadoop.fs.HasEnhancedByteBufferAccessreleaseBuffer in class org.apache.hadoop.fs.FSDataInputStreampublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void unbuffer()
unbuffer in interface org.apache.hadoop.fs.CanUnbufferunbuffer in class org.apache.hadoop.fs.FSDataInputStreamCopyright © 2017 The Apache Software Foundation. All rights reserved.