On 4/27/06, Robert Engels <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to