lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: 2.0 release
Date Thu, 27 Apr 2006 23:18:04 GMT
On 4/27/06, Robert Engels <> 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 Solr, the open-source Lucene search server

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message