lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Directory Implementation: Java Content Repository
Date Fri, 16 Dec 2005 17:25:20 GMT
Nicolas Belisle wrote:
> Since Java Content Repository uses java.io.InputStream, I extended 
> RAMInputStream to achieve random reads from the java.io.InputStream. 
> (Have a better idea ?)

So you're buffering the entire file?  That doesn't sound good.  If there 
are no provisions for random access, then Lucene files should perhaps be 
modelled as a JCR directory of fixed-size buffers.  Then you could 
subclass BufferedIndexInput.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message