public class DrillFSDataInputStream
extends org.apache.hadoop.fs.FSDataInputStream
in
Constructor and Description |
---|
DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in,
OperatorStats operatorStats) |
DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in,
OperatorStats 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, skipBytes
public DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in, OperatorStats operatorStats)
public DrillFSDataInputStream(org.apache.hadoop.fs.FSDataInputStream in, OperatorStats operatorStats, OpenFileTracker openFileTracker)
public void seek(long desired) throws IOException
seek
in interface org.apache.hadoop.fs.Seekable
seek
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.fs.Seekable
getPos
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public int read(long position, byte[] buffer, int offset, int length) throws IOException
read
in interface org.apache.hadoop.fs.PositionedReadable
read
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public void readFully(long position, byte[] buffer, int offset, int length) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
readFully
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public void readFully(long position, byte[] buffer) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
readFully
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public boolean seekToNewSource(long targetPos) throws IOException
seekToNewSource
in interface org.apache.hadoop.fs.Seekable
seekToNewSource
in class org.apache.hadoop.fs.FSDataInputStream
IOException
@InterfaceAudience.LimitedPrivate(value="HDFS") public InputStream getWrappedStream()
getWrappedStream
in class org.apache.hadoop.fs.FSDataInputStream
public int read(ByteBuffer buf) throws IOException
read
in interface org.apache.hadoop.fs.ByteBufferReadable
read
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public FileDescriptor getFileDescriptor() throws IOException
getFileDescriptor
in interface org.apache.hadoop.fs.HasFileDescriptor
getFileDescriptor
in class org.apache.hadoop.fs.FSDataInputStream
IOException
public void setReadahead(Long readahead) throws IOException, UnsupportedOperationException
setReadahead
in interface org.apache.hadoop.fs.CanSetReadahead
setReadahead
in class org.apache.hadoop.fs.FSDataInputStream
IOException
UnsupportedOperationException
public void setDropBehind(Boolean dropBehind) throws IOException, UnsupportedOperationException
setDropBehind
in interface org.apache.hadoop.fs.CanSetDropBehind
setDropBehind
in class org.apache.hadoop.fs.FSDataInputStream
IOException
UnsupportedOperationException
public 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.HasEnhancedByteBufferAccess
read
in class org.apache.hadoop.fs.FSDataInputStream
IOException
UnsupportedOperationException
public void releaseBuffer(ByteBuffer buffer)
releaseBuffer
in interface org.apache.hadoop.fs.HasEnhancedByteBufferAccess
releaseBuffer
in class org.apache.hadoop.fs.FSDataInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public void unbuffer()
unbuffer
in interface org.apache.hadoop.fs.CanUnbuffer
unbuffer
in class org.apache.hadoop.fs.FSDataInputStream
Copyright © 1970 The Apache Software Foundation. All rights reserved.