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

java.lang.Object
  extended by org.apache.lucene.store.IndexInput
      extended by org.apache.lucene.store.ConfigurableBufferedIndexInput
          extended by org.apache.lucene.store.jdbc.index.JdbcBufferedIndexInput
All Implemented Interfaces:
Cloneable, JdbcIndexConfigurable
Direct Known Subclasses:
FetchOnBufferReadJdbcIndexInput, FetchPerTransactionJdbcIndexInput

public abstract class JdbcBufferedIndexInput
extends ConfigurableBufferedIndexInput
implements JdbcIndexConfigurable

A simple base class that performs index input 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.ConfigurableBufferedIndexInput
buffer, BUFFER_SIZE, bufferLength, bufferPosition, bufferSize, bufferStart
 
Constructor Summary
JdbcBufferedIndexInput()
           
 
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.ConfigurableBufferedIndexInput
clone, getBufferSize, getFilePointer, readByte, readBytes, readInternal, refill, seek, seekInternal, setBufferSize
 
Methods inherited from class org.apache.lucene.store.IndexInput
close, length, readBytes, readChars, readInt, readLong, readString, readVInt, readVLong, skipChars
 
Methods inherited from class java.lang.Object
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

JdbcBufferedIndexInput

public JdbcBufferedIndexInput()
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-2008 The Compass Project.