Grokbase Groups Lucene dev June 2016
FAQ
Hi folks:

A question on indexing StoredFields (using the compressioncodec):

I have a flat file storing in sequential order contents I intend to add to
stored fields. I keep a list of lengths in memory:

(byte,byte),(byte,byte,byte)... <--- file
[2,3,...] <-- memory

where each element correspond to the storedField for a doc.
e.g.
doc1: 2 bytes
doc2: 3 bytes

Currently, I would need to read them into a BytesRef allocating either
bunch of small byte[] or load this entire file into a rather large byte[].

Do you think it makes sense to change the StoredField api to read from a
more generic version of BytesRef, that it can point either to file or
memory?

Thanks

-John

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJun 18, '16 at 4:15p
activeJun 18, '16 at 4:15p
posts1
users1
websitelucene.apache.org

1 user in discussion

John Wang: 1 post

People

Translate

site design / logo © 2019 Grokbase