public enum PredefinedMemoryConfiguration extends Enum<PredefinedMemoryConfiguration> implements MemoryConfiguration
withAvailableMemory(long, long) function.MemoryConfiguration.HeapComponent, MemoryConfiguration.NativeComponent| Enum Constant and Description |
|---|
BULK_LOAD
Memory configuration optimized for bulk loads.
|
DEFAULT
Memory configuration optimized for mixed workloads.
|
READ_OPTIMIZED
Memory configuration optimized for read queries.
|
WRITE_OPTIMIZED
Memory configuration optimized for updates.
|
CURRENT| Modifier and Type | Method and Description |
|---|---|
long |
getMemory(MemoryConfiguration.HeapComponent component)
Returns the maximum amount of heap memory in bytes that can be for the given component.
|
long |
getMemory(MemoryConfiguration.NativeComponent component)
Returns the maximum amount of native memory in bytes that can be for the given component.
|
static PredefinedMemoryConfiguration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PredefinedMemoryConfiguration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
MemoryConfiguration |
withAvailableMemory(long nativeMem,
long heapMem)
Returns a new configuration object that applies the percentages defined in this instance to the given available memory amounts.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfget, setpublic static final PredefinedMemoryConfiguration READ_OPTIMIZED
public static final PredefinedMemoryConfiguration DEFAULT
public static final PredefinedMemoryConfiguration WRITE_OPTIMIZED
public static final PredefinedMemoryConfiguration BULK_LOAD
public static PredefinedMemoryConfiguration[] values()
for (PredefinedMemoryConfiguration c : PredefinedMemoryConfiguration.values()) System.out.println(c);
public static PredefinedMemoryConfiguration 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 nullpublic long getMemory(MemoryConfiguration.NativeComponent component)
MemoryConfigurationgetMemory in interface MemoryConfigurationcomponent - a component that uses native memorypublic long getMemory(MemoryConfiguration.HeapComponent component)
MemoryConfigurationgetMemory in interface MemoryConfigurationcomponent - a component that uses heap memorypublic MemoryConfiguration withAvailableMemory(long nativeMem, long heapMem)
nativeMem - available native memory in bytesheapMem - available heap memory in bytesCopyright © 2010-2016 Stardog Union. All Rights Reserved.