public class HdfsDataInputSource extends Object implements DataInputSource
| Constructor and Description |
|---|
HdfsDataInputSource(DataInputSourceId id,
org.apache.hadoop.fs.FSDataInputStream inputStream,
long size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataInputSourceId |
getId() |
long |
getReadTimeNanos() |
long |
getSize() |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
public HdfsDataInputSource(DataInputSourceId id, org.apache.hadoop.fs.FSDataInputStream inputStream, long size)
public DataInputSourceId getId()
getId in interface DataInputSourcepublic long getReadTimeNanos()
getReadTimeNanos in interface DataInputSourcepublic long getSize()
getSize in interface DataInputSourcepublic void readFully(long position,
byte[] buffer)
readFully in interface DataInputSourcepublic void readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength)
readFully in interface DataInputSourcepublic void close()
throws IOException
close in interface DataInputSourceclose in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2022. All rights reserved.