lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: 2.0 release
Date Thu, 27 Apr 2006 23:18:04 GMT
On 4/27/06, Robert Engels <rengels@ix.netcom.com> wrote:
> What about making IndexReader & IndexWriter interfaces? Or creating
> interfaces for these (IReader & IWriter?), and making all of the classes use
> the interfaces?

There is a drawback to interfaces too... you can't easily add an extra
method in a back-compatible way like you can with classes by providing
a default implementation.

For example, this enabled adding getPositionIncrement() to Tokenizer,
and adding hasNorms() to IndexReader without breaking any subclasses.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

---------------------------------------------------------------------
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