org.compass.core.lucene.engine.store
Class RAMDirectoryStore

java.lang.Object
  extended by org.compass.core.lucene.engine.store.AbstractDirectoryStore
      extended by org.compass.core.lucene.engine.store.RAMDirectoryStore
All Implemented Interfaces:
DirectoryStore

public class RAMDirectoryStore
extends AbstractDirectoryStore

A directory store implemented using memory. Uses Lucene RAMDirectory.

Author:
kimchy

Field Summary
static String PROTOCOL
           
 
Fields inherited from class org.compass.core.lucene.engine.store.AbstractDirectoryStore
log
 
Constructor Summary
RAMDirectoryStore()
           
 
Method Summary
 CopyFromHolder beforeCopyFrom(String subContext, String subIndex, Directory dir)
           
 Directory open(String subContext, String subIndex)
          Opens a new Directory for the given sub context and sub index.
 
Methods inherited from class org.compass.core.lucene.engine.store.AbstractDirectoryStore
afterFailedCopyFrom, afterSuccessfulCopyFrom, cleanIndex, close, closeDirectory, deleteIndex, indexExists, performScheduledTasks, registerEventListeners, requiresAsyncTransactionalContext, suggestedIndexDeletionPolicy, suggestedUseCompoundFile, supportsConcurrentOperations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values
Constructor Detail

RAMDirectoryStore

public RAMDirectoryStore()
Method Detail

open

public Directory open(String subContext,
                      String subIndex)
               throws SearchEngineException
Description copied from interface: DirectoryStore
Opens a new Directory for the given sub context and sub index.

Throws:
SearchEngineException

beforeCopyFrom

public CopyFromHolder beforeCopyFrom(String subContext,
                                     String subIndex,
                                     Directory dir)
                              throws SearchEngineException
Specified by:
beforeCopyFrom in interface DirectoryStore
Overrides:
beforeCopyFrom in class AbstractDirectoryStore
Throws:
SearchEngineException


Copyright (c) 2004-2008 The Compass Project.