Package com.graphhopper.routing.ch
Class CHPreparationHandler
java.lang.Object
com.graphhopper.routing.ch.CHPreparationHandler
This class handles the different CH preparations
- Author:
- Peter Karich, easbar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidinit(GraphHopperConfig ghConfig) final booleanprepare(BaseGraph baseGraph, StorableProperties properties, List<CHConfig> chConfigs, boolean closeEarly) setCHProfiles(CHProfile... chProfiles) setCHProfiles(Collection<CHProfile> chProfiles) voidsetPreparationThreads(int preparationThreads) This method changes the number of threads used for preparation on import.
-
Constructor Details
-
CHPreparationHandler
public CHPreparationHandler()
-
-
Method Details
-
init
-
isEnabled
public final boolean isEnabled() -
setCHProfiles
-
setCHProfiles
-
getCHProfiles
-
getPreparationThreads
public int getPreparationThreads() -
setPreparationThreads
public void setPreparationThreads(int preparationThreads) This method changes the number of threads used for preparation on import. Default is 1. Make sure that you have enough memory when increasing this number! -
load
-
prepare
public Map<String,PrepareContractionHierarchies.Result> prepare(BaseGraph baseGraph, StorableProperties properties, List<CHConfig> chConfigs, boolean closeEarly)
-