[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]