|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.store.DataInput org.apache.lucene.store.IndexInput org.apache.lucene.store.BufferedIndexInput org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexInput
protected static class SimpleFSDirectory.SimpleFSIndexInput
Nested Class Summary | |
---|---|
protected static class |
SimpleFSDirectory.SimpleFSIndexInput.Descriptor
|
Field Summary | |
---|---|
protected int |
chunkSize
|
protected SimpleFSDirectory.SimpleFSIndexInput.Descriptor |
file
|
Fields inherited from class org.apache.lucene.store.BufferedIndexInput |
---|
buffer, BUFFER_SIZE |
Constructor Summary | |
---|---|
SimpleFSDirectory.SimpleFSIndexInput(File path,
int bufferSize,
int chunkSize)
Deprecated. please pass resourceDesc |
|
SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc,
File path,
int bufferSize,
int chunkSize)
|
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this stream. |
void |
close()
Closes the stream to further operations. |
void |
copyBytes(IndexOutput out,
long numBytes)
Copies numBytes bytes to the given IndexOutput . |
long |
length()
The number of bytes in the file. |
protected void |
readInternal(byte[] b,
int offset,
int len)
IndexInput methods |
protected void |
seekInternal(long position)
Expert: implements seek. |
Methods inherited from class org.apache.lucene.store.BufferedIndexInput |
---|
flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize |
Methods inherited from class org.apache.lucene.store.IndexInput |
---|
skipChars, toString |
Methods inherited from class org.apache.lucene.store.DataInput |
---|
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SimpleFSDirectory.SimpleFSIndexInput.Descriptor file
protected final int chunkSize
Constructor Detail |
---|
@Deprecated public SimpleFSDirectory.SimpleFSIndexInput(File path, int bufferSize, int chunkSize) throws IOException
IOException
public SimpleFSDirectory.SimpleFSIndexInput(String resourceDesc, File path, int bufferSize, int chunkSize) throws IOException
IOException
Method Detail |
---|
protected void readInternal(byte[] b, int offset, int len) throws IOException
readInternal
in class BufferedIndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read
IOException
public void close() throws IOException
IndexInput
close
in interface Closeable
close
in class IndexInput
IOException
protected void seekInternal(long position)
BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
will occur.
seekInternal
in class BufferedIndexInput
BufferedIndexInput.readInternal(byte[],int,int)
public long length()
IndexInput
length
in class IndexInput
public Object clone()
DataInput
Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
clone
in class BufferedIndexInput
public void copyBytes(IndexOutput out, long numBytes) throws IOException
IndexInput
numBytes
bytes to the given IndexOutput
.
NOTE: this method uses an intermediate buffer to copy the bytes. Consider overriding it in your implementation, if you can make a better, optimized copy.
NOTE ensure that there are enough bytes in the input to copy to output. Otherwise, different exceptions may be thrown, depending on the implementation.
copyBytes
in class BufferedIndexInput
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |