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

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
              extended by org.apache.lucene.store.jdbc.index.AbstractJdbcIndexOutput
All Implemented Interfaces:
JdbcIndexConfigurable
Direct Known Subclasses:
FileJdbcIndexOutput, RAMJdbcIndexOutput

public abstract class AbstractJdbcIndexOutput
extends JdbcBufferedIndexOutput

Author:
kimchy

Field Summary
protected  JdbcDirectory jdbcDirectory
           
protected  String name
           
 
Fields inherited from class org.apache.lucene.store.jdbc.index.JdbcBufferedIndexOutput
BUFFER_SIZE_SETTING
 
Fields inherited from class org.apache.lucene.store.ConfigurableBufferedIndexOutput
bufferSize, DEFAULT_BUFFER_SIZE
 
Constructor Summary
AbstractJdbcIndexOutput()
           
 
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 doAfterClose()
           
protected  void doBeforeClose()
           
protected abstract  InputStream openInputStream()
           
 
Methods inherited from class org.apache.lucene.store.ConfigurableBufferedIndexOutput
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

name

protected String name

jdbcDirectory

protected JdbcDirectory jdbcDirectory
Constructor Detail

AbstractJdbcIndexOutput

public AbstractJdbcIndexOutput()
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
Overrides:
configure in class JdbcBufferedIndexOutput
Parameters:
name - The name of the file entry
jdbcDirectory - The jdbc directory instance
settings - The relevant file entry settings
Throws:
IOException

close

public void close()
           throws IOException
Description copied from class: ConfigurableBufferedIndexOutput
Closes this stream to further operations.

Overrides:
close in class ConfigurableBufferedIndexOutput
Throws:
IOException

openInputStream

protected abstract InputStream openInputStream()
                                        throws IOException
Throws:
IOException

doAfterClose

protected void doAfterClose()
                     throws IOException
Throws:
IOException

doBeforeClose

protected void doBeforeClose()
                      throws IOException
Throws:
IOException


Copyright (c) 2004-2009 The Compass Project.