public class HdfsFileReader
extends org.apache.lucene.store.DataInput
| 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 |
|---|---|
org.apache.lucene.store.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) |
public 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 org.apache.lucene.store.DataInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
readBytes in class org.apache.lucene.store.DataInputIOExceptionpublic static long getLength(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic org.apache.lucene.store.DataInput clone()
clone in class org.apache.lucene.store.DataInputCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.