org.apache.solr.store.hdfs
Class HdfsFileReader

java.lang.Object
  extended by org.apache.lucene.store.DataInput
      extended by 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)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.lucene.store.DataInput
readBytes, readInt, readLong, readShort, readString, readStringSet, readStringStringMap, readVInt, readVLong
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static org.slf4j.Logger LOG
Constructor Detail

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
Method Detail

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.