public abstract static class LockFreePrefixTree.Allocator extends Object
| Constructor and Description |
|---|
Allocator() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.graalvm.collections.LockFreePrefixTree.Node.HashChildren |
newHashChildren(int length)
Allocates a new reference array of child nodes stored as a hash table.
|
abstract org.graalvm.collections.LockFreePrefixTree.Node.LinearChildren |
newLinearChildren(int length)
Allocates a new reference array of child nodes stored linearly.
|
abstract LockFreePrefixTree.Node |
newNode(long key)
Allocates a new Node object.
|
abstract void |
shutdown()
Releases the allocator's resources.
|
public abstract LockFreePrefixTree.Node newNode(long key)
key - The key to use for the Node object.Node object, possibly preallocated.FailedAllocationException - If the allocation request cannot be fulfilled.public abstract org.graalvm.collections.LockFreePrefixTree.Node.LinearChildren newLinearChildren(int length)
length - The length of the allocated array.FailedAllocationException - If the allocation request cannot be fulfilled.public abstract org.graalvm.collections.LockFreePrefixTree.Node.HashChildren newHashChildren(int length)
length - The length of the allocated array.FailedAllocationException - If the allocation request cannot be fulfilled.public abstract void shutdown()