org.apache.solr.store.hdfs
Class HdfsFileReader
java.lang.Object
org.apache.lucene.store.DataInput
org.apache.solr.store.hdfs.HdfsFileReader
- All Implemented Interfaces:
- Cloneable
public class HdfsFileReader
- extends DataInput
Field Summary |
static org.slf4j.Logger |
LOG
|
Constructor Summary |
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)
|
LOG
public static org.slf4j.Logger LOG
HdfsFileReader
public HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path,
int bufferSize)
throws IOException
- Throws:
IOException
HdfsFileReader
public HdfsFileReader(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
throws IOException
- Throws:
IOException
length
public long length()
seek
public void seek(long pos)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
readByte
public byte readByte()
throws IOException
- This method should never be used!
- Specified by:
readByte
in class DataInput
- Throws:
IOException
readBytes
public void readBytes(byte[] b,
int offset,
int len)
throws IOException
- Specified by:
readBytes
in class DataInput
- Throws:
IOException
getLength
public static long getLength(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path)
throws IOException
- Throws:
IOException
clone
public DataInput clone()
- Overrides:
clone
in class DataInput
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.