|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.store.IndexOutput
org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput
org.apache.lucene.store.jdbc.index.RAMJdbcIndexOutput
public class RAMJdbcIndexOutput
An IndexOutput implemenation that stores all the data written to it in memory, and flushes it
to the database when the output is closed.
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput |
|---|
BUFFER_SIZE_SETTING, bufferSize, DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
RAMJdbcIndexOutput()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this stream to further operations. |
void |
configure(String name,
JdbcDirectory jdbcDirectory,
JdbcFileEntrySettings settings)
Configures the newly created IndexInput or IndexOutput implementations. |
void |
flushBuffer(byte[] src,
int len)
Expert: implements buffer write. |
void |
flushToIndexOutput(IndexOutput indexOutput)
|
long |
length()
The number of bytes in the file. |
void |
seek(long pos)
Sets current position in this file, where the next write will occur. |
| Methods inherited from class org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput |
|---|
flush, getFilePointer, writeByte, writeBytes |
| Methods inherited from class org.apache.lucene.store.IndexOutput |
|---|
writeChars, writeInt, writeLong, writeString, writeVInt, writeVLong |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RAMJdbcIndexOutput()
| Method Detail |
|---|
public void configure(String name,
JdbcDirectory jdbcDirectory,
JdbcFileEntrySettings settings)
throws IOException
JdbcIndexConfigurableIndexInput or IndexOutput implementations.
configure in interface JdbcIndexConfigurableconfigure in class JdbcBufferedIndexOutputname - The name of the file entryjdbcDirectory - The jdbc directory instancesettings - The relevant file entry settings
IOException
public void flushBuffer(byte[] src,
int len)
JdbcBufferedIndexOutput
flushBuffer in class JdbcBufferedIndexOutputsrc - the bytes to writelen - the number of bytes to write
public void close()
throws IOException
JdbcBufferedIndexOutput
close in class JdbcBufferedIndexOutputIOException
public void seek(long pos)
throws IOException
JdbcBufferedIndexOutput
seek in class JdbcBufferedIndexOutputIOExceptionJdbcBufferedIndexOutput.getFilePointer()public long length()
JdbcBufferedIndexOutput
length in class JdbcBufferedIndexOutput
public void flushToIndexOutput(IndexOutput indexOutput)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||