Class BumpAllocator<PAGE>
- java.lang.Object
-
- org.neo4j.gds.core.compression.common.BumpAllocator<PAGE>
-
public final class BumpAllocator<PAGE> extends java.lang.Object
"Bump" refers to the implementation in that there is a local allocator that is able to do a fast-path allocation by just bumping a pointer value. The name follows the description of the TLAB-allocation from the JVM. https://shipilev.net/jvm/anatomy-quarks/4-tlab-allocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BumpAllocator.Factory<PAGE>
static class
BumpAllocator.LocalAllocator<PAGE>
static class
BumpAllocator.LocalPositionalAllocator<PAGE>
-
Field Summary
Fields Modifier and Type Field Description static long
PAGE_MASK
static int
PAGE_SHIFT
static int
PAGE_SIZE
-
Constructor Summary
Constructors Constructor Description BumpAllocator(BumpAllocator.Factory<PAGE> pageFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PAGE[]
intoPages()
BumpAllocator.LocalAllocator<PAGE>
newLocalAllocator()
BumpAllocator.LocalPositionalAllocator<PAGE>
newLocalPositionalAllocator()
-
-
-
Field Detail
-
PAGE_SHIFT
public static final int PAGE_SHIFT
- See Also:
- Constant Field Values
-
PAGE_SIZE
public static final int PAGE_SIZE
- See Also:
- Constant Field Values
-
PAGE_MASK
public static final long PAGE_MASK
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BumpAllocator
public BumpAllocator(BumpAllocator.Factory<PAGE> pageFactory)
-
-
Method Detail
-
newLocalAllocator
public BumpAllocator.LocalAllocator<PAGE> newLocalAllocator()
-
newLocalPositionalAllocator
public BumpAllocator.LocalPositionalAllocator<PAGE> newLocalPositionalAllocator()
-
intoPages
public PAGE[] intoPages()
-
-