Class DataMemoryLimitsConfigBuilder
java.lang.Object
oracle.pgx.config.DataMemoryLimitsConfigBuilder
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class DataMemoryLimitsConfigBuilder
extends Object
Builder for
DataMemoryLimitsConfig.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty DataMemoryLimitsConfigBuilderConstructs a DataMemoryLimitsConfigBuilder initialized with the values from the given mapConstructs a DataMemoryLimitsConfigBuilder initialized with the values from the given configConstructs a DataMemoryLimitsConfigBuilder initialized with the values from the given builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the DataMemoryLimitsConfig with aparentPathofnull.Builds the DataMemoryLimitsConfig.static DataMemoryLimitsConfigbuildDataMemoryLimitsConfig(Consumer<DataMemoryLimitsConfigBuilder> builderSetup) Builds aDataMemoryLimitsConfigin-placeclear()Clears all values from the builderputAll(Map<DataMemoryLimitsConfig.Field, Object> values) Puts all values from the given map into this builder.putAll(DataMemoryLimitsConfig config) Puts all values from the given config into this buildersetMaxPerSessionDataMemoryRatio(double maxPerSessionDataMemoryRatio) memory limit for any one session of the PGX engine relative to the user data memory limitsetMaxPerSessionDataMemorySize(String maxPerSessionDataMemorySize) absolute memory limit for any one session of the PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) unitssetMaxPerUserDataMemoryRatio(double maxPerUserDataMemoryRatio) memory limit for any one user of the PGX engine relative to the private data memory limitsetMaxPerUserDataMemorySize(String maxPerUserDataMemorySize) absolute memory limit for any one user of the PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) unitssetMaxTotalDataMemoryRatio(double maxTotalDataMemoryRatio) memory limit across entire PGX engine relative to available system memorysetMaxTotalDataMemorySize(String maxTotalDataMemorySize) absolute memory limit across entire PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) unitssetMaxTotalPrivateDataMemoryRatio(double maxTotalPrivateDataMemoryRatio) memory limit of private data (includes non-published graphs and PGQL results) relative to total PGX engine memory limitsetMaxTotalPrivateDataMemorySize(String maxTotalPrivateDataMemorySize) absolute memory limit of private data (includes non-published graphs and PGQL results), default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) unitssetMaxTotalSharedDataMemoryRatio(double maxTotalSharedDataMemoryRatio) memory limit of shared data (includes published graphs and pinned non-referenced graphs) relative to total PGX engine memory limitsetMaxTotalSharedDataMemorySize(String maxTotalSharedDataMemorySize) absolute memory limit of shared data (includes published graphs and pinned non-referenced graphs), default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) unitstoString()
-
Constructor Details
-
DataMemoryLimitsConfigBuilder
public DataMemoryLimitsConfigBuilder()Constructs an empty DataMemoryLimitsConfigBuilder -
DataMemoryLimitsConfigBuilder
Constructs a DataMemoryLimitsConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
DataMemoryLimitsConfigBuilder
Constructs a DataMemoryLimitsConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
DataMemoryLimitsConfigBuilder
Constructs a DataMemoryLimitsConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Details
-
buildDataMemoryLimitsConfig
public static DataMemoryLimitsConfig buildDataMemoryLimitsConfig(Consumer<DataMemoryLimitsConfigBuilder> builderSetup) Builds aDataMemoryLimitsConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdDataMemoryLimitsConfig
-
putAll
Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
Clears all values from the builder -
build
Builds the DataMemoryLimitsConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of DataMemoryLimitsConfig
-
build
Builds the DataMemoryLimitsConfig with aparentPathofnull.- Returns:
- An instance of DataMemoryLimitsConfig
- See Also:
-
toInputStream
- Returns:
- an
InputStreamrepresenting the config
-
getValues
- Returns:
- the raw config values
-
toString
-
setMaxTotalDataMemorySize
absolute memory limit across entire PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units -
setMaxTotalDataMemoryRatio
memory limit across entire PGX engine relative to available system memory -
setMaxTotalPrivateDataMemorySize
public DataMemoryLimitsConfigBuilder setMaxTotalPrivateDataMemorySize(String maxTotalPrivateDataMemorySize) absolute memory limit of private data (includes non-published graphs and PGQL results), default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units -
setMaxTotalPrivateDataMemoryRatio
public DataMemoryLimitsConfigBuilder setMaxTotalPrivateDataMemoryRatio(double maxTotalPrivateDataMemoryRatio) memory limit of private data (includes non-published graphs and PGQL results) relative to total PGX engine memory limit -
setMaxPerUserDataMemorySize
absolute memory limit for any one user of the PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units -
setMaxPerUserDataMemoryRatio
memory limit for any one user of the PGX engine relative to the private data memory limit -
setMaxPerSessionDataMemorySize
public DataMemoryLimitsConfigBuilder setMaxPerSessionDataMemorySize(String maxPerSessionDataMemorySize) absolute memory limit for any one session of the PGX engine, default memory unit is byte, can use (k, m, g, t, p) as suffix for (kilobyte, megabyte, gigabyte, terabyte, petabyte) units -
setMaxPerSessionDataMemoryRatio
public DataMemoryLimitsConfigBuilder setMaxPerSessionDataMemoryRatio(double maxPerSessionDataMemoryRatio) memory limit for any one session of the PGX engine relative to the user data memory limit
-