org.apache.lucene.store
Class NIOFSDirectory.NIOFSIndexInput

java.lang.Object
  extended by org.apache.lucene.store.DataInput
      extended by org.apache.lucene.store.IndexInput
          extended by org.apache.lucene.store.BufferedIndexInput
              extended by org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
                  extended by org.apache.lucene.store.NIOFSDirectory.NIOFSIndexInput
All Implemented Interfaces:
Closeable, Cloneable
Enclosing class:
NIOFSDirectory

protected static class NIOFSDirectory.NIOFSIndexInput
extends SimpleFSDirectory.SimpleFSIndexInput


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
SimpleFSDirectory.SimpleFSIndexInput.Descriptor
 
Field Summary
 
Fields inherited from class org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
chunkSize, end, file, off
 
Fields inherited from class org.apache.lucene.store.BufferedIndexInput
buffer, BUFFER_SIZE, MERGE_BUFFER_SIZE
 
Constructor Summary
NIOFSDirectory.NIOFSIndexInput(File path, IOContext context, int chunkSize)
           
NIOFSDirectory.NIOFSIndexInput(String sliceDescription, File path, SimpleFSDirectory.SimpleFSIndexInput.Descriptor file, FileChannel fc, long off, long length, int bufferSize, int chunkSize)
           
 
Method Summary
 void close()
          Closes the stream to further operations.
protected  void newBuffer(byte[] newBuffer)
           
protected  void readInternal(byte[] b, int offset, int len)
          IndexInput methods
 
Methods inherited from class org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
clone, copyBytes, length, seekInternal
 
Methods inherited from class org.apache.lucene.store.BufferedIndexInput
bufferSize, flushBuffer, getBufferSize, getFilePointer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
 
Methods inherited from class org.apache.lucene.store.IndexInput
toString
 
Methods inherited from class org.apache.lucene.store.DataInput
readString, readStringSet, readStringStringMap
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NIOFSDirectory.NIOFSIndexInput

public NIOFSDirectory.NIOFSIndexInput(File path,
                                      IOContext context,
                                      int chunkSize)
                               throws IOException
Throws:
IOException

NIOFSDirectory.NIOFSIndexInput

public NIOFSDirectory.NIOFSIndexInput(String sliceDescription,
                                      File path,
                                      SimpleFSDirectory.SimpleFSIndexInput.Descriptor file,
                                      FileChannel fc,
                                      long off,
                                      long length,
                                      int bufferSize,
                                      int chunkSize)
Method Detail

newBuffer

protected void newBuffer(byte[] newBuffer)
Overrides:
newBuffer in class BufferedIndexInput

close

public void close()
           throws IOException
Description copied from class: IndexInput
Closes the stream to further operations.

Specified by:
close in interface Closeable
Overrides:
close in class SimpleFSDirectory.SimpleFSIndexInput
Throws:
IOException

readInternal

protected void readInternal(byte[] b,
                            int offset,
                            int len)
                     throws IOException
Description copied from class: SimpleFSDirectory.SimpleFSIndexInput
IndexInput methods

Overrides:
readInternal in class SimpleFSDirectory.SimpleFSIndexInput
Parameters:
b - the array to read bytes into
offset - the offset in the array to start storing bytes
len - the number of bytes to read
Throws:
IOException


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.