@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
|
ENV_SEPARATOR, ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getBfsIterateQueTaskSize()
task size for BFS iterate QUE phase
|
java.lang.Double |
getBfsThresholdParentReadBased()
threshold of BFS traversal level items above which to switch to parent-read-based visiting strategy
|
java.lang.Integer |
getBfsThresholdReadBased()
threshold of BFS traversal level items above which 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.
|
static RuntimeConfig.Field[] |
getConfigFields() |
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.
|
EnterpriseSchedulerFlagsConfig |
getEnterpriseSchedulerFlags()
[relevant for enterprise_scheduler] enterprise scheduler specific settings.
|
GraphValidationLevel |
getGraphValidationLevel()
level of validation performed on newly loaded or created graphs
|
java.lang.Integer |
getLargeArrayThreshold()
threshold when the size of an array is too big to use a normal Java array.
|
java.util.Map<java.lang.String,java.lang.Object> |
getLeftoverValues()
Gets the values that do not belong to any field.
|
java.lang.Integer |
getMaxDistinctStringsPerPool()
[only relevant if string_pooling_strategy is indexed] amount of distinct strings per property after which to stop pooling.
|
java.lang.Integer |
getMaxOffHeapSize()
maximum amount of off-heap memory PGX is allowed to allocate in megabytes, before an OutOfMemoryError will be thrown.
|
MemoryAllocationStrategy |
getMemoryAllocator()
which memory allocator to use
|
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.
|
java.lang.Integer |
getPatternMatchingSupernodeCacheThreshold()
minimum number of a node's neighbor to be a supernode.
|
java.lang.Double |
getPoolingFactor()
[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
|
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 |
getRevisitThreshold()
maximum number of matched results from a node to be cached
|
SchedulerStrategy |
getScheduler()
which scheduler to use.
|
java.lang.Integer |
getSmallTaskLength()
task length if total amount of work is small than default task length (only relevant for task-stealing strategies)
|
StringPoolingStrategy |
getStringPoolingStrategy()
which string pooling strategy to use
|
java.lang.Integer |
getTaskLength()
default task length (only relevant for task-stealing strategies).
|
ReachabilityIndexCreationMode |
getUseIndexForReachabilityQueries()
create index for reachability queries
|
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. |
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() |
java.lang.String |
toString(boolean hideSensitiveData) |
java.lang.Boolean |
useMemoryMapperForReadingPgb()
if true, use memory mapped files for reading graphs in PGB format if possible; false always use s stream based implementation
|
java.lang.Boolean |
useMemoryMapperForStoringPgb()
if true, use memory mapped files for storing in PGB format if possible; if false always use a stream based implementation
|
areWeEnterprise, getInstance, getInstance, getInstance, isStringPoolEnabled, reset
getDefault, getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Integer getBfsIterateQueTaskSize()
public java.lang.Double getBfsThresholdParentReadBased()
public java.lang.Integer getBfsThresholdReadBased()
public java.lang.Integer getBfsThresholdSingleThreaded()
public java.lang.String getCharacterSet()
public java.lang.Integer getCniDiffFactorDefault()
public java.lang.Integer getCniSmallDefault()
public java.lang.Integer getCniStopRecursionDefault()
public static RuntimeConfig.Field[] getConfigFields()
public java.lang.Integer getDfsThresholdLarge()
public EnterpriseSchedulerFlagsConfig getEnterpriseSchedulerFlags()
public GraphValidationLevel getGraphValidationLevel()
public java.lang.Integer getLargeArrayThreshold()
Integer.MAX_VALUE - 3
)public java.util.Map<java.lang.String,java.lang.Object> getLeftoverValues()
public java.lang.Integer getMaxDistinctStringsPerPool()
public java.lang.Integer getMaxOffHeapSize()
public MemoryAllocationStrategy getMemoryAllocator()
getMemoryAllocator
in class AbstractRuntimeConfig
public FrontierTypeStrategy getMsBfsFrontierTypeStrategy()
public java.lang.Integer getNumSpinLocks()
public java.lang.Integer getParallelism()
public java.lang.Integer getPatternMatchingSupernodeCacheThreshold()
public java.lang.Double getPoolingFactor()
public RandomGeneratorStrategy getRandomGeneratorStrategy()
public java.lang.Long getRandomSeed()
public java.lang.Integer getRevisitThreshold()
public SchedulerStrategy getScheduler()
getScheduler
in class AbstractRuntimeConfig
public java.lang.Integer getSmallTaskLength()
public StringPoolingStrategy getStringPoolingStrategy()
getStringPoolingStrategy
in class AbstractRuntimeConfig
public java.lang.Integer getTaskLength()
public ReachabilityIndexCreationMode getUseIndexForReachabilityQueries()
public java.util.Map<RuntimeConfig.Field,java.lang.Object> getValues()
getValues
in class AbstractRuntimeConfig
public java.util.Map<RuntimeConfig.Field,java.lang.Object> getValuesWithoutDefaults()
getValuesWithoutDefaults
in class AbstractRuntimeConfig
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 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.Object
public java.lang.String toString(boolean hideSensitiveData)
public java.lang.Boolean useMemoryMapperForReadingPgb()
public java.lang.Boolean useMemoryMapperForStoringPgb()