@Generated(value="config_generator.py") public class RuntimeConfig extends AbstractRuntimeConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
RuntimeConfig.Field
Fields of PGX Runtime Config
|
| Modifier and Type | Method and Description |
|---|---|
ArrayFactoryStrategy |
getArrayFactoryStrategy()
java_arrays = use normal java arrays only (limited to 32bit in length)
java_2d_arrays = use Java 2D arrays only (achieve arrays of 64bit in length with the cost of indirection) off_heap_arrays = use arrays allocated off-heap (achieve 64bit in length without performance penalty, but with the price of breaking out of the JVM) dynamic = decide at run-time which allocation strategy to use based on the requested array length |
java.lang.Integer |
getBfsIterateQueTaskSize()
task size for BFS iterate QUE phase
|
java.lang.Integer |
getBfsThresholdReadBased()
threshold of BFS traversal level items to switch to read-based visiting strategy
|
java.lang.Integer |
getBfsThresholdSingleThreaded()
until what number of BFS traversal level items vertices are visited single-threaded
|
java.lang.String |
getCharacterSet()
standard charset to use throughout PGX, UTF-8 will be used as default.
|
java.lang.Integer |
getCniDiffFactorDefault()
default diff factor value used in the common neighbor iterator implementations.
|
java.lang.Integer |
getCniSmallDefault()
default value used in the common neighbor iterator implementations, to indicate below which threshold a subarray is considered small.
|
java.lang.Integer |
getCniStopRecursionDefault()
default value used in the common neighbor iterator implementations, to indicate the minimum size where the binary search approach is applied.
|
java.lang.Integer |
getDfsThresholdLarge()
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.
|
ArrayFactoryStrategy |
getLargeArrayStrategy()
[relevant for dynamic array factory only] array factory strategy to use when requested array size is exceeding large_array_threshold
|
java.lang.Integer |
getLargeArrayThreshold()
[relevant for dynamic array factory only] use large_array_strategy when requested array size is exceeding this number.
|
java.lang.Integer |
getMaxOffHeapSize()
maximum amount of off-heap memory PGX is allowed to allocate in megabytes, before an OutOfMemoryError will be thrown.
|
FrontierTypeStrategy |
getMsBfsFrontierTypeStrategy()
the type strategy to use for MS-BFS frontiers
|
java.lang.Integer |
getNumSpinLocks()
how many spin locks each generated app will create at instantiation.
|
java.lang.Integer |
getParallelism()
number of worker threads to be used in thread pool.
|
ParallelizationStrategy |
getParallelizationStrategy()
which parallelization strategy to use.
|
RandomGeneratorStrategy |
getRandomGeneratorStrategy()
method of generating random numbers in pgx
|
java.lang.Long |
getRandomSeed()
[relevant for deterministic random number generator only] seed for the deterministic random number generator used in pgx.
|
java.lang.Integer |
getSmallTaskLength()
task length if total amount of work is small than default task length (only relevant for task-stealing strategies)
|
java.lang.Integer |
getTaskLength()
default task length (only relevant for task-stealing strategies).
|
java.util.Map<RuntimeConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<RuntimeConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(RuntimeConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
java.lang.Boolean |
isExplicitSpinLocks()
true means spin explicitly in a loop until lock becomes available. |
java.lang.Boolean |
isUseStringPool()
If
true, PGX will store string properties in a pool in order to consume less memory on string properties |
static RuntimeConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static RuntimeConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static RuntimeConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
get, getCharset, init, init, init, isInitialized, resetsetSerializablepublic ArrayFactoryStrategy getArrayFactoryStrategy()
public java.lang.Integer getBfsIterateQueTaskSize()
public java.lang.Integer getBfsThresholdReadBased()
public java.lang.Integer getBfsThresholdSingleThreaded()
public java.lang.String getCharacterSet()
getCharacterSet in class AbstractRuntimeConfigpublic java.lang.Integer getCniDiffFactorDefault()
public java.lang.Integer getCniSmallDefault()
public java.lang.Integer getCniStopRecursionDefault()
public java.lang.Integer getDfsThresholdLarge()
public ArrayFactoryStrategy getLargeArrayStrategy()
public java.lang.Integer getLargeArrayThreshold()
Integer.MAX_VALUE - 3)public java.lang.Integer getMaxOffHeapSize()
public FrontierTypeStrategy getMsBfsFrontierTypeStrategy()
public java.lang.Integer getNumSpinLocks()
public java.lang.Integer getParallelism()
public ParallelizationStrategy getParallelizationStrategy()
public RandomGeneratorStrategy getRandomGeneratorStrategy()
public java.lang.Long getRandomSeed()
public java.lang.Integer getSmallTaskLength()
public java.lang.Integer getTaskLength()
public java.util.Map<RuntimeConfig.Field,java.lang.Object> getValues()
public java.util.Map<RuntimeConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(RuntimeConfig.Field field)
field - the fieldpublic boolean isEmpty()
public java.lang.Boolean isExplicitSpinLocks()
true means spin explicitly in a loop until lock becomes available. false means using JDK locks which rely on the JVM to decide whether to context switch or spin. Our experiments showed that setting this value to true results in better performance.public java.lang.Boolean isUseStringPool()
true, PGX will store string properties in a pool in order to consume less memory on string propertiespublic static RuntimeConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is - the input streamstrict - if true, parses in strict modeparentPath - if not null, resolves relative paths against this parentPathjava.io.IOException - Signals that an I/O exception has occurred.public static RuntimeConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw - the raw key/value mapping to parsestrict - if true, parses in strict modeparentPath - if not null, resolves relative paths against this parentPathpublic static RuntimeConfig parse(java.util.Properties props, boolean strict)
props - the properties to parsestrict - if true, parses in strict modepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016, 2017 Oracle Corp. All Rights Reserved.