lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Serebrennikov <>
Subject Re: stored field compression
Date Fri, 14 May 2004 23:35:50 GMT
Doug Cutting wrote:

> Dmitry Serebrennikov wrote:
>> Actually, I was thinking of something simpler... Somthing like a 
>> special case where one could supply binary data directly into a 
>> stored field. Something like:
>> public class Field {
>>    public static Field Binary(String name, byte[] value);
>>    public boolean isBinary();
>>    public byte[] binaryValue();
>> }
>> This would automatically become a stored field. Lucene wouldn't need 
>> to know what the data means - just carry it around. The binaryValue() 
>> can return null unless isBinary() is true, in which case you'd get 
>> the data back and stringValue() would return null instead.
>> This would be a start. If we want to provide special handling for 
>> ints, floats, and so on, we provide a BinaryField class, a la DateField.
> Sounds like a good plan.  String-values remain as fast as they are, 
> and binary values are no slower.  We can easily layer compression, 
> etc. on top of this.
> Are you volunteering? 

I'm pretty well pressed for time right now, so if someone else can pick 
this up it would probably get done sooner.
Let me see how my weekend pans out.


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

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

View raw message