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, skipBytes
public HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, int bufferSize) throws IOException
IOException
public HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path) throws IOException
IOException
public long length()
public void seek(long pos) throws IOException
IOException
public void close() throws IOException
IOException
public byte readByte() throws IOException
readByte
in class DataInput
IOException
public void readBytes(byte[] b, int offset, int len) throws IOException
readBytes
in class DataInput
IOException
public static long getLength(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path) throws IOException
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.