lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <dan...@nuix.com>
Subject Directory.list() deprecation
Date Fri, 06 Nov 2009 05:39:17 GMT
Hi all.

I am trying to clean up some deprecated calls which are showing up on
upgrading to 2.9.0 (from 2.3.2...), and I have just come across
Directory.list(), which says this:

> Deprecated For some Directory implementations (FSDirectory, and its subclasses), this
method silently filters its results to include only index files. Please use listAll instead,
which does no filtering.

  * We have files in there which aren't Lucene's so obviously
listAll() will not work.
  * We can't use FSDirectory directly because our tests rely on the
Directory abstraction so that they can use a RAMDirectory.

Given this, what is the suggested replacement for this method once it goes away?

I'm not sure I understand the motivation for the change in list(), but
I do think it was inconsistent for Directory implementations to
perform different filtering (they should have at least all used the
same filter.)

Daniel

-- 
Daniel Noll                            Forensic and eDiscovery Software
Senior Developer                              The world's most advanced
Nuix                                                email data analysis
http://nuix.com/                                and eDiscovery software

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


Mime
View raw message