lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uwe Schindler <...@thetaphi.de>
Subject Re: Why we need org.apache.lucene.codecs.Codec
Date Thu, 04 Aug 2016 17:27:39 GMT
Hi,

The Codec class is the abstract base class for all index codecs. The implementation is loaded
via SPI from classpath. To understand how this works read API doc's of Java ServiceLoader
which describes the process.

Uwe

Am 4. August 2016 17:09:46 MESZ, schrieb Greg Bowyer <gbowyer@fastmail.co.uk>:
>Codecs are loaded with the java service loader interface. That file is
>the hook used to tell the service loader that this jar implements
>Codec.
>
>Lucene internally calls service loader and asks what codecs are there.
>
>On Wed, Aug 3, 2016, at 11:23 PM, aravinth thangasami wrote:
>> I don't understand why we need to add custom codec name in this file
>> 
>> Thanks & Regards
>> Aravinth
>> 
>> On Thu, Aug 4, 2016 at 11:52 AM, aravinth thangasami <
>> aravinththangasami@gmail.com> wrote:
>> 
>> > Hi all,
>> >
>> >
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org

--
Uwe Schindler
H.-H.-Meier-Allee 63, 28213 Bremen
http://www.thetaphi.de

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