public enum InternalStructure extends Enum<InternalStructure>
Enum Constant and Description |
---|
DEFAULT
Tree structure using an object graph.
|
SINGLE_ARRAY
Tree structure where nodes are stored in a single linear array and
extracted on demand.
|
Modifier and Type | Method and Description |
---|---|
static InternalStructure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternalStructure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternalStructure SINGLE_ARRAY
Tree structure where nodes are stored in a single linear array and extracted on demand. This is a memory saving option (work on one-third the space) with some access performance penalties compared to the DEFAULT structure (assume one-tenth for search throughput).
Suited most for a static dataset loaded from storage because additions and deletions are not made to the single underlying array but rather combines the array with an object graph. Deletions are not recovered from the single array and after enough of them happen the datastructure should be rewritten to a new array to recover space.
public static final InternalStructure DEFAULT
public static InternalStructure[] values()
for (InternalStructure c : InternalStructure.values()) System.out.println(c);
public static InternalStructure valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2013–2024. All rights reserved.