lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arvind Srinivasan <luc...@ziplip.com>
Subject Does FSDirectory inhibits adoption of MMapDirectory and others?
Date Fri, 27 May 2005 02:56:45 GMT
I see there is a lot of activity on MMapDirectory, NIODirectory etc.
Looking at the implementation of MMapDirectory, it inherits FSDirectory. It
appears to me that FSDirectory is becoming the default interface as opposed
to Directory. The biggest problem with using FSDirectory is that all segments
files are written to a single Directory, putting an artificial requirement
of contiguous disk space for the entire search engine. This is the reason, why
we had to use a custom implementation Directory interface and 
 any high end application would be forced to do the same.
 (Does Nutch use FSDirectory?)


Couple of thoughts come to my mind

(a) All new Directories such as MMapDirectory, NIODirectory inside the Lucene
sandbox should implement Directory and not FSDirectory. If we can make
FSDirectory non-final, they can encapsulate FSDirectory. This allows, applications
to extend FSDirectory and garner the benefits of any advance functionality.

(b) Alternatively set some flexibility in FSDirectory. 
One thought is to add an interface such as :
--
  public interface FSLocation {
   	public File getFile(String stName);
  }
--

Ultimately, these changes will help the adoption of the new directories directly
from the Sandbox.


Thanks,
Arvind.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message