org.apache.lucene.store.jdbc.index
Class JdbcBufferedIndexOutput

java.lang.Object
  extended by org.apache.lucene.store.IndexOutput
      extended by org.apache.lucene.store.ConfigurableBufferedIndexOutput
          extended by org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput
All Implemented Interfaces:
JdbcIndexConfigurable
Direct Known Subclasses:
AbstractJdbcIndexOutput

public abstract class JdbcBufferedIndexOutput
extends ConfigurableBufferedIndexOutput
implements JdbcIndexConfigurable

A simple base class that performs index output memory based buffering. The buffer size can be configured under the BUFFER_SIZE_SETTING name.

Author:
kimchy

Field Summary
static String BUFFER_SIZE_SETTING
          The buffer size setting name.
 
Fields inherited from class org.apache.lucene.store.ConfigurableBufferedIndexOutput
bufferSize, DEFAULT_BUFFER_SIZE
 
Constructor Summary
JdbcBufferedIndexOutput()
           
 
Method Summary
 void configure(String name, JdbcDirectory jdbcDirectory, JdbcFileEntrySettings settings)
          Configures the newly created IndexInput or IndexOutput implementations.
 
Methods inherited from class org.apache.lucene.store.ConfigurableBufferedIndexOutput
close, flush, flushBuffer, getFilePointer, initBuffer, length, seek, writeByte, writeBytes
 
Methods inherited from class org.apache.lucene.store.IndexOutput
copyBytes, setLength, writeBytes, writeChars, writeChars, writeInt, writeLong, writeString, writeVInt, writeVLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE_SETTING

public static final String BUFFER_SIZE_SETTING
The buffer size setting name. See JdbcFileEntrySettings.setIntSetting(String,int). Should be set in bytes.

See Also:
Constant Field Values
Constructor Detail

JdbcBufferedIndexOutput

public JdbcBufferedIndexOutput()
Method Detail

configure

public void configure(String name,
                      JdbcDirectory jdbcDirectory,
                      JdbcFileEntrySettings settings)
               throws IOException
Description copied from interface: JdbcIndexConfigurable
Configures the newly created IndexInput or IndexOutput implementations.

Specified by:
configure in interface JdbcIndexConfigurable
Parameters:
name - The name of the file entry
jdbcDirectory - The jdbc directory instance
settings - The relevant file entry settings
Throws:
IOException


Copyright (c) 2004-2009 The Compass Project.