| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path) |
HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
DataInput |
clone() |
void |
close() |
static long |
getLength(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path) |
long |
length() |
byte |
readByte()
This method should never be used!
|
void |
readBytes(byte[] b,
int offset,
int len) |
void |
seek(long pos) |
readBytes, readInt, readLong, readShort, readString, readStringSet, readStringStringMap, readVInt, readVLong, readZInt, readZLong, skipBytespublic HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
int bufferSize)
throws IOException
IOExceptionpublic HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic long length()
public void seek(long pos)
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic byte readByte()
throws IOException
readByte in class DataInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
readBytes in class DataInputIOExceptionpublic static long getLength(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.