Package org.apache.solr.store.hdfs
Class HdfsDirectory.HdfsIndexInput
- java.lang.Object
-
- org.apache.lucene.store.DataInput
-
- org.apache.lucene.store.IndexInput
-
- org.apache.solr.store.blockcache.CustomBufferedIndexInput
-
- org.apache.solr.store.hdfs.HdfsDirectory.HdfsIndexInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
- Enclosing class:
- HdfsDirectory
public static class HdfsDirectory.HdfsIndexInput extends CustomBufferedIndexInput
-
-
Field Summary
-
Fields inherited from class org.apache.solr.store.blockcache.CustomBufferedIndexInput
buffer, BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description HdfsIndexInput(String name, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.store.IndexInputclone()protected voidcloseInternal()longlength()protected voidreadInternal(byte[] b, int offset, int length)Expert: implements buffer refill.protected voidseekInternal(long pos)Expert: implements seek.-
Methods inherited from class org.apache.solr.store.blockcache.CustomBufferedIndexInput
close, flushBuffer, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readVInt, readVLong, seek, slice
-
Methods inherited from class org.apache.lucene.store.IndexInput
getFullSliceDescription, randomAccessSlice, toString
-
-
-
-
Constructor Detail
-
HdfsIndexInput
public HdfsIndexInput(String name, org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path, int bufferSize) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readInternal
protected void readInternal(byte[] b, int offset, int length) throws IOExceptionDescription copied from class:CustomBufferedIndexInputExpert: implements buffer refill. Reads bytes from the current position in the input.- Specified by:
readInternalin classCustomBufferedIndexInput- Parameters:
b- the array to read bytes intooffset- the offset in the array to start storing byteslength- the number of bytes to read- Throws:
IOException
-
seekInternal
protected void seekInternal(long pos) throws IOExceptionDescription copied from class:CustomBufferedIndexInputExpert: implements seek. Sets current position in this file, where the nextCustomBufferedIndexInput.readInternal(byte[],int,int)will occur.- Specified by:
seekInternalin classCustomBufferedIndexInput- Throws:
IOException- See Also:
CustomBufferedIndexInput.readInternal(byte[],int,int)
-
closeInternal
protected void closeInternal() throws IOException- Specified by:
closeInternalin classCustomBufferedIndexInput- Throws:
IOException
-
length
public long length()
- Specified by:
lengthin classorg.apache.lucene.store.IndexInput
-
clone
public org.apache.lucene.store.IndexInput clone()
- Overrides:
clonein classCustomBufferedIndexInput
-
-