public class LMPreparationHandler extends Object
| Constructor and Description |
|---|
LMPreparationHandler() |
| Modifier and Type | Method and Description |
|---|---|
LMPreparationHandler |
addLMConfig(LMConfig lmConfig)
Decouple weightings from PrepareLandmarks as we need weightings for the graphstorage and the
graphstorage for the preparation.
|
LMPreparationHandler |
addPreparation(PrepareLandmarks plm) |
void |
createPreparations(GraphHopperStorage ghStorage,
LocationIndex locationIndex)
This method creates the landmark storages ready for landmark creation.
|
int |
getLandmarks() |
List<LMConfig> |
getLMConfigs() |
List<LMProfile> |
getLMProfiles() |
PrepareLandmarks |
getPreparation(String profile) |
List<PrepareLandmarks> |
getPreparations() |
int |
getPreparationThreads() |
boolean |
hasLMProfiles() |
void |
init(GraphHopperConfig ghConfig) |
boolean |
isEnabled() |
boolean |
loadOrDoWork(StorableProperties properties,
boolean closeEarly)
This method calculates the landmark data for all profiles (optionally in parallel) or if already existent loads it.
|
LMPreparationHandler |
setLMProfiles(Collection<LMProfile> lmProfiles)
Enables the use of landmarks to reduce query times.
|
LMPreparationHandler |
setLMProfiles(LMProfile... lmProfiles) |
void |
setPreparationThreads(int preparationThreads)
This method changes the number of threads used for preparation on import.
|
int |
size() |
public void init(GraphHopperConfig ghConfig)
public int getLandmarks()
public final boolean isEnabled()
public int getPreparationThreads()
public void setPreparationThreads(int preparationThreads)
public LMPreparationHandler setLMProfiles(LMProfile... lmProfiles)
public LMPreparationHandler setLMProfiles(Collection<LMProfile> lmProfiles)
public LMPreparationHandler addLMConfig(LMConfig lmConfig)
public LMPreparationHandler addPreparation(PrepareLandmarks plm)
public boolean hasLMProfiles()
public int size()
public List<PrepareLandmarks> getPreparations()
public PrepareLandmarks getPreparation(String profile)
public boolean loadOrDoWork(StorableProperties properties, boolean closeEarly)
for a very similar methodpublic void createPreparations(GraphHopperStorage ghStorage, LocationIndex locationIndex)
Copyright © 2012–2020. All rights reserved.