Differential D1908 Diff 6407 java/server/src/main/java/org/softwareheritage/graph/backend/NodeTypesMap.java
Changeset View
Changeset View
Standalone View
Standalone View
java/server/src/main/java/org/softwareheritage/graph/backend/NodeTypesMap.java
Show All 12 Lines | |||||
* href="https://docs.softwareheritage.org/devel/swh-model/data-model.html">data model</a>. | * href="https://docs.softwareheritage.org/devel/swh-model/data-model.html">data model</a>. | ||||
* <p> | * <p> | ||||
* The type mapping is pre-computed and dumped on disk in the {@link Setup} class, then it is loaded | * The type mapping is pre-computed and dumped on disk in the {@link Setup} class, then it is loaded | ||||
* in-memory here using <a href="http://fastutil.di.unimi.it/">fastutil</a> LongBigList. To be | * in-memory here using <a href="http://fastutil.di.unimi.it/">fastutil</a> LongBigList. To be | ||||
* space-efficient, the mapping is stored as a bitmap using minimum number of bits per {@link | * space-efficient, the mapping is stored as a bitmap using minimum number of bits per {@link | ||||
* Node.Type}. | * Node.Type}. | ||||
* | * | ||||
* @author Thibault Allançon | * @author Thibault Allançon | ||||
* @version 0.0.1 | |||||
* @since 0.0.1 | |||||
*/ | */ | ||||
public class NodeTypesMap { | public class NodeTypesMap { | ||||
/** Array storing for each node its type */ | /** Array storing for each node its type */ | ||||
LongBigList nodeTypesMap; | LongBigList nodeTypesMap; | ||||
/** | /** | ||||
* Constructor. | * Constructor. | ||||
Show All 23 Lines |