Package oracle.pgx.config
Enum Class RuntimeConfig.Field
- All Implemented Interfaces:
Serializable,Comparable<RuntimeConfig.Field>,Constable,ConfigField
- Enclosing class:
- RuntimeConfig
Fields of PGX Runtime Config
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptioniftrue, PGX will automatically load graphs from the database when they are first referenced in graph queriestask size for BFS iterate QUE phasethreshold of BFS traversal level items above which to switch to parent-read-based visiting strategythreshold of BFS traversal level items above which to switch to read-based visiting strategyuntil what number of BFS traversal level items vertices are visited single-threadedstandard charset to use throughout PGX, UTF-8 will be used as default.default diff factor value used in the common neighbor iterator implementations.default value used in the common neighbor iterator implementations, to indicate below which threshold a subarray is considered small.default value used in the common neighbor iterator implementations, to indicate the minimum size where the binary search approach is applied.value that determines at which number of visited vertices the DFS implementation will switch to data-structures that are more optimized for larger numbers of vertices.[relevant for enterprise_scheduler] enterprise scheduler specific settings.truemeans spin explicitly in a loop until lock becomes available.level of validation performed on newly loaded or created graphsthreshold when the size of an array is too big to use a normal Java array.[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling.maximum amount of off-heap memory PGX is allowed to allocate in megabytes, before an OutOfMemoryError will be thrown.maximum ratio of on-heap memory that PGX is allowed to use, between 0 and 1.which memory allocator to usethe type strategy to use for MS-BFS frontiershow many spin locks each generated app will create at instantiation.number of worker threads to be used in thread pool.minimum number of a node's neighbor to be a supernode.[only relevant if string_pooling_strategy is on_heap] this value prevents the string pool to grow as big as the property size which could render the pooling ineffectivemethod of generating random numbers in pgx[relevant for deterministic random number generator only] seed for the deterministic random number generator used in pgx.maximum number of matched results from a node to be cachedwhich scheduler to use.task length if total amount of work is small than default task length (only relevant for task-stealing strategies)which string pooling strategy to usedefault task length (only relevant for task-stealing strategies).create index for reachability queriesif true, use memory mapped files for reading graphs in PGB format if possible; false always use s stream based implementationif true, use memory mapped files for storing in PGB format if possible; if false always use a stream based implementation -
Method Summary
Modifier and TypeMethodDescriptionGets the default value of this field.Gets the key aliases of this field which are also recognized during parsing.Gets the key aliases of this field which contain single values for lists and are also recognized during parsing.Class<?>getType()Gets the type of this field.booleanisArray()Checks if this field is an array.booleanisHidden()Checks if this field should be hidden.booleanisPath()Checks if this field is a path.booleanChecks if this field is required.booleanChecks if this field holds a sensitive data.toKey()Get the key of this field, which is how this field is represented in serialized form.toString()static RuntimeConfig.FieldReturns the enum constant of this class with the specified name.static RuntimeConfig.Field[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface oracle.pgx.config.ConfigField
isEnum, isPrimitive
-
Enum Constant Details
-
NUM_SPIN_LOCKS
how many spin locks each generated app will create at instantiation. Trade-off: small number implies less memory consumption. Big number implies faster execution (if algorithm uses spin locks) -
EXPLICIT_SPIN_LOCKS
truemeans spin explicitly in a loop until lock becomes available.falsemeans using JDK locks which rely on the JVM to decide whether to context switch or spin. Our experiments showed that setting this value totrueresults in better performance. -
SCHEDULER
which scheduler to use.
basic_scheduler = use scheduler with basic features.
enterprise_scheduler = use scheduler with advanced, enterprise features for running multiple tasks concurrently and increased performance.
low_latency_scheduler = use scheduler that privileges latency of tasks over throughput or fairness across multiple sessions. The low_latency_scheduler is only available in embedded mode -
TASK_LENGTH
default task length (only relevant for task-stealing strategies). F/J pool documentation says this value should be between 100 and 10000. Trade-off: small number implies more fine-grained tasks are generated, higher stealing throughput. High number implies less memory consumption and GC activity -
SMALL_TASK_LENGTH
task length if total amount of work is small than default task length (only relevant for task-stealing strategies) -
MS_BFS_FRONTIER_TYPE_STRATEGY
the type strategy to use for MS-BFS frontiers -
BFS_THRESHOLD_SINGLE_THREADED
until what number of BFS traversal level items vertices are visited single-threaded -
BFS_THRESHOLD_READ_BASED
threshold of BFS traversal level items above which to switch to read-based visiting strategy -
BFS_ITERATE_QUE_TASK_SIZE
task size for BFS iterate QUE phase -
BFS_THRESHOLD_PARENT_READ_BASED
threshold of BFS traversal level items above which to switch to parent-read-based visiting strategy -
DFS_THRESHOLD_LARGE
value that determines at which number of visited vertices the DFS implementation will switch to data-structures that are more optimized for larger numbers of vertices. -
CNI_STOP_RECURSION_DEFAULT
default value used in the common neighbor iterator implementations, to indicate the minimum size where the binary search approach is applied. -
CNI_SMALL_DEFAULT
default value used in the common neighbor iterator implementations, to indicate below which threshold a subarray is considered small. -
CNI_DIFF_FACTOR_DEFAULT
default diff factor value used in the common neighbor iterator implementations. -
LARGE_ARRAY_THRESHOLD
threshold when the size of an array is too big to use a normal Java array. This depends on the used JVM. (defaults toInteger.MAX_VALUE - 3) -
MAX_OFF_HEAP_SIZE
maximum amount of off-heap memory PGX is allowed to allocate in megabytes, before an OutOfMemoryError will be thrown. Note: this limit is not guaranteed to never be exceeded because of rounding and synchronization trade-offs. It only serves as threshold when PGX starts to reject new memory allocation requests. -
MAX_ON_HEAP_MEMORY_USAGE_RATIO
maximum ratio of on-heap memory that PGX is allowed to use, between 0 and 1. -
CHARACTER_SET
standard charset to use throughout PGX, UTF-8 will be used as default. Note: Some formats may not be compatible. -
PARALLELISM
number of worker threads to be used in thread pool. Note: if caller thread is part of another thread-pool, this value is ignored and parallelism of parent pool is used. -
RANDOM_GENERATOR_STRATEGY
method of generating random numbers in pgx -
RANDOM_SEED
[relevant for deterministic random number generator only] seed for the deterministic random number generator used in pgx. The default is -24466691093057031 -
PATTERN_MATCHING_SUPERNODE_CACHE_THRESHOLD
minimum number of a node's neighbor to be a supernode. This is for pattern matching engine. -
USE_INDEX_FOR_REACHABILITY_QUERIES
create index for reachability queries -
REVISIT_THRESHOLD
maximum number of matched results from a node to be cached -
ENTERPRISE_SCHEDULER_FLAGS
[relevant for enterprise_scheduler] enterprise scheduler specific settings. -
MEMORY_ALLOCATOR
which memory allocator to use -
MAX_DISTINCT_STRINGS_PER_POOL
[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling. If the limit is reached an exception is thrown -
STRING_POOLING_STRATEGY
which string pooling strategy to use -
USE_MEMORY_MAPPER_FOR_STORING_PGB
if true, use memory mapped files for storing in PGB format if possible; if false always use a stream based implementation -
USE_MEMORY_MAPPER_FOR_READING_PGB
if true, use memory mapped files for reading graphs in PGB format if possible; false always use s stream based implementation -
POOLING_FACTOR
[only relevant if string_pooling_strategy is on_heap] this value prevents the string pool to grow as big as the property size which could render the pooling ineffective -
GRAPH_VALIDATION_LEVEL
level of validation performed on newly loaded or created graphs -
ALLOW_LAZY_LOADING_FOR_DATABASE_GRAPHS
iftrue, PGX will automatically load graphs from the database when they are first referenced in graph queries
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getKeyAliases
Description copied from interface:ConfigFieldGets the key aliases of this field which are also recognized during parsing.- Specified by:
getKeyAliasesin interfaceConfigField- Returns:
- the key aliases
-
getSingletonListKeyAliases
Description copied from interface:ConfigFieldGets the key aliases of this field which contain single values for lists and are also recognized during parsing.- Specified by:
getSingletonListKeyAliasesin interfaceConfigField- Returns:
- the singleton list key aliases
-
getType
Description copied from interface:ConfigFieldGets the type of this field.- Specified by:
getTypein interfaceConfigField- Returns:
- the type
-
isRequired
public boolean isRequired()Description copied from interface:ConfigFieldChecks if this field is required.- Specified by:
isRequiredin interfaceConfigField- Returns:
- true, if required
-
isArray
public boolean isArray()Description copied from interface:ConfigFieldChecks if this field is an array.- Specified by:
isArrayin interfaceConfigField- Returns:
- true, if array
-
isPath
public boolean isPath()Description copied from interface:ConfigFieldChecks if this field is a path.- Specified by:
isPathin interfaceConfigField- Returns:
- true, if path
-
getDefaultVal
Description copied from interface:ConfigFieldGets the default value of this field.- Specified by:
getDefaultValin interfaceConfigField- Returns:
- the default value
-
toKey
Description copied from interface:ConfigFieldGet the key of this field, which is how this field is represented in serialized form.- Specified by:
toKeyin interfaceConfigField- Returns:
- the key.
-
toString
- Overrides:
toStringin classEnum<RuntimeConfig.Field>
-
isSensitive
public boolean isSensitive()Description copied from interface:ConfigFieldChecks if this field holds a sensitive data.- Specified by:
isSensitivein interfaceConfigField- Returns:
- true, if use for sensitive data
-
isHidden
public boolean isHidden()Description copied from interface:ConfigFieldChecks if this field should be hidden. Hidden fields are used to hid desired field from the user and only allow it for internal usage.- Specified by:
isHiddenin interfaceConfigField- Returns:
- true if field should be hidden, false otherwise
-