lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: cvs commit: jakarta-lucene/src/java/org/apache/lucene/store MMapDirectory.java
Date Tue, 28 Sep 2004 22:25:59 GMT
Bruce Ritchie wrote:
> cutting@apache.org wrote:
> 
>>One downside 
>>is that it cannot handle indexes with files larger than 2^31 bytes.
> 
> Can you expand slightly on what causes this limitation and whether it still exists on
64 bit hardware?

This is a limit of the nio ByteBuffer API, which uses int instead of 
long to address data.  Java defines int as a singed 32 bit quantity. 
The size of a ByteBuffer is also an int.

http://java.sun.com/j2se/1.4.2/docs/api/java/nio/channels/FileChannel.html#map(java.nio.channels.FileChannel.MapMode,%20long,%20long)
http://java.sun.com/j2se/1.4.2/docs/api/java/nio/ByteBuffer.html

Doug

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


Mime
View raw message