Package com.franz.agraph.repository
Class WarmupConfig
java.lang.Object
com.franz.agraph.repository.WarmupConfig
Provides detailed configuration for the warmup operation.
Config objects are immutable. New instances can be created
using a fluid interface:
WarmupConfig.create().includeStrings(true).includeTriples(false);
The config stores values for a set of parameters. These currently include:
- includeStrings (boolean, default: true)
- Should the string table be included in the operation?
- includeTriples (boolean, default: true)
- Should triple indices be included in the operation?
-
Method Summary
Modifier and TypeMethodDescriptionstatic WarmupConfig
create()
Creates a fresh config with default values.Creates a modified config that causes triple indices to be included in the warmup operation.Creates a modified config that causes triple indices to be excluded from the warmup operation.boolean
Checks if the string table should be included.boolean
Checks if triple indices should be included.Creates a modified config that causes the string table to be included in the warmup operation.includeStrings
(boolean includeStrings) Creates a config with a modified includeStrings value.Creates a modified config that causes the string table to be excluded from the warmup operation.includeTriples
(boolean includeTriples) Creates a config with a modified includeTriples value.
-
Method Details
-
create
Creates a fresh config with default values.- Returns:
- a new config object.
-
getIncludeStrings
public boolean getIncludeStrings()Checks if the string table should be included.- Returns:
- Value of the includeStrings parameter.
-
getIncludeTriples
public boolean getIncludeTriples()Checks if triple indices should be included.- Returns:
- Value of the includeTriples parameter.
-
includeStrings
Creates a config with a modified includeStrings value.- Parameters:
includeStrings
- New value.- Returns:
- A fresh config object with the new value.
-
includeTriples
Creates a config with a modified includeTriples value.- Parameters:
includeTriples
- New value.- Returns:
- A fresh config object with the new value.
-
includeStrings
Creates a modified config that causes the string table to be included in the warmup operation.- Returns:
- A new, modified config.
-
includeTriples
Creates a modified config that causes the string table to be excluded from the warmup operation.- Returns:
- A new, modified config.
-
excludeStrings
Creates a modified config that causes triple indices to be included in the warmup operation.- Returns:
- A new, modified config.
-
excludeTriples
Creates a modified config that causes triple indices to be excluded from the warmup operation.- Returns:
- A new, modified config.
-