|
||||||||||
| 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.FileJdbcIndexOutput
public class FileJdbcIndexOutput
An IndexOutput implemenation that writes all the data to a temporary file, and when closed, flushes
the file to the database.
RAMAndFileJdbcIndexOutput.
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput |
|---|
BUFFER_SIZE_SETTING, bufferSize, DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
FileJdbcIndexOutput()
|
|
| 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. |
protected void |
finalize()
|
void |
flushBuffer(byte[] b,
int size)
output methods: |
long |
length()
The number of bytes in the file. |
void |
seek(long pos)
Random-access methods |
| 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileJdbcIndexOutput()
| 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[] b,
int size)
throws IOException
flushBuffer in class JdbcBufferedIndexOutputb - the bytes to writesize - the number of bytes to write
IOException
public void seek(long pos)
throws IOException
seek in class JdbcBufferedIndexOutputIOExceptionJdbcBufferedIndexOutput.getFilePointer()
public long length()
throws IOException
JdbcBufferedIndexOutput
length in class JdbcBufferedIndexOutputIOException
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public void close()
throws IOException
JdbcBufferedIndexOutput
close in class JdbcBufferedIndexOutputIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||