Differential D1908 Diff 6407 java/server/src/main/java/org/softwareheritage/graph/backend/MapFile.java
Changeset View
Changeset View
Standalone View
Standalone View
java/server/src/main/java/org/softwareheritage/graph/backend/MapFile.java
Show All 9 Lines | |||||
/** | /** | ||||
* Wrapper class around very big mmap()-ed file. | * Wrapper class around very big mmap()-ed file. | ||||
* <p> | * <p> | ||||
* Java has a limit for mmap()-ed files because of unsupported 64-bit indexing. The <a | * Java has a limit for mmap()-ed files because of unsupported 64-bit indexing. The <a | ||||
* href="http://dsiutils.di.unimi.it/">dsiutils</a> ByteBufferInputStream is used to overcome this | * href="http://dsiutils.di.unimi.it/">dsiutils</a> ByteBufferInputStream is used to overcome this | ||||
* Java limit. | * Java limit. | ||||
* | * | ||||
* @author Thibault Allançon | * @author Thibault Allançon | ||||
* @version 0.0.1 | |||||
* @since 0.0.1 | |||||
*/ | */ | ||||
public class MapFile { | public class MapFile { | ||||
/** Memory-mapped file buffer */ | /** Memory-mapped file buffer */ | ||||
ByteBufferInputStream bufferMap; | ByteBufferInputStream bufferMap; | ||||
/** Fixed line length of the mmap()-ed file */ | /** Fixed line length of the mmap()-ed file */ | ||||
int lineLength; | int lineLength; | ||||
Show All 38 Lines |