net.sf.lucis.core.impl
Class ReindexingFSStore

java.lang.Object
  extended by net.sf.lucis.core.impl.ReindexingFSStore
All Implemented Interfaces:
DirectoryProvider, ReindexingStore

public class ReindexingFSStore
extends java.lang.Object
implements ReindexingStore

File system-based reindexing store.

Author:
Andres Rodriguez

Constructor Summary
ReindexingFSStore(java.lang.String indexDir)
           
 
Method Summary
 org.apache.lucene.store.Directory getDestinationDirectory()
          Returns the directory in which the new index must be created.
 org.apache.lucene.store.Directory getDirectory()
          Returns the underlying directory.
 java.lang.Object getVersion()
          Returns the current version.
 void reindexed()
          Called when a reindexing process has been completed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReindexingFSStore

public ReindexingFSStore(java.lang.String indexDir)
Method Detail

getDirectory

public org.apache.lucene.store.Directory getDirectory()
Description copied from interface: DirectoryProvider
Returns the underlying directory.

Specified by:
getDirectory in interface DirectoryProvider
Returns:
The directory used by the index.

getDestinationDirectory

public org.apache.lucene.store.Directory getDestinationDirectory()
Description copied from interface: ReindexingStore
Returns the directory in which the new index must be created.

Specified by:
getDestinationDirectory in interface ReindexingStore
Returns:
The destitation directory.

reindexed

public void reindexed()
Description copied from interface: ReindexingStore
Called when a reindexing process has been completed.

Specified by:
reindexed in interface ReindexingStore

getVersion

public java.lang.Object getVersion()
Description copied from interface: DirectoryProvider
Returns the current version. Version objects are only tested for equality so no ordering is required. However they MUST obey equals and hashCode contracts.

Specified by:
getVersion in interface DirectoryProvider


Copyright © 2009. All Rights Reserved.