From db1f7d25168e1e2be3e1ad5d9a6686ad887f54d2 Mon Sep 17 00:00:00 2001 From: Rafael Troilo Date: Thu, 21 Dec 2023 12:09:38 +0100 Subject: [PATCH] feat(Data Access): Remove unused methods --- .../configuration/RouteProfileConfiguration.java | 8 ++++++++ .../storages/HeavyVehicleAttributesGraphStorage.java | 4 ---- .../storages/RoadAccessRestrictionsGraphStorage.java | 4 ---- .../extensions/storages/TollwaysGraphStorage.java | 4 ---- .../extensions/storages/TrafficGraphStorage.java | 11 ----------- .../storages/TrailDifficultyScaleGraphStorage.java | 4 ---- .../extensions/storages/WayCategoryGraphStorage.java | 4 ---- .../storages/WaySurfaceTypeGraphStorage.java | 4 ---- 8 files changed, 8 insertions(+), 35 deletions(-) diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/configuration/RouteProfileConfiguration.java b/ors-engine/src/main/java/org/heigit/ors/routing/configuration/RouteProfileConfiguration.java index d9a027a01b..361f0e212e 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/configuration/RouteProfileConfiguration.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/configuration/RouteProfileConfiguration.java @@ -131,6 +131,14 @@ public String getGraphPath() { return graphPath; } + public String getDataAccess() { + return dataAccess; + } + + public void setDataAccess(String dataAccess) { + this.dataAccess = dataAccess; + } + public void setExtStorages(Map> value) { extStorages = value; } diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/HeavyVehicleAttributesGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/HeavyVehicleAttributesGraphStorage.java index 305ddbc271..e62d96397a 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/HeavyVehicleAttributesGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/HeavyVehicleAttributesGraphStorage.java @@ -60,10 +60,6 @@ private int nextBlockEntryIndex(int size) { return res; } - public void setSegmentSize(int bytes) { - orsEdges.setSegmentSize(bytes); - } - public HeavyVehicleAttributesGraphStorage create(long initBytes) { orsEdges.create(initBytes * edgeEntryBytes); return this; diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/RoadAccessRestrictionsGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/RoadAccessRestrictionsGraphStorage.java index 3efaa75fa2..9f1c1cc5b1 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/RoadAccessRestrictionsGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/RoadAccessRestrictionsGraphStorage.java @@ -79,10 +79,6 @@ protected final int nextBlockEntryIndex(int size) { return res; } - public void setSegmentSize(int bytes) { - edges.setSegmentSize(bytes); - } - public RoadAccessRestrictionsGraphStorage create(long initBytes) { edges.create(initBytes * edgeEntryBytes); return this; diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TollwaysGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TollwaysGraphStorage.java index 649330b08e..560ab84da6 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TollwaysGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TollwaysGraphStorage.java @@ -47,10 +47,6 @@ protected final int nextBlockEntryIndex(int size) { return res; } - public void setSegmentSize(int bytes) { - edges.setSegmentSize(bytes); - } - public TollwaysGraphStorage create(long initBytes) { edges.create(initBytes * edgeEntryBytes); return this; diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrafficGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrafficGraphStorage.java index c2cc0add9e..858a50125d 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrafficGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrafficGraphStorage.java @@ -459,17 +459,6 @@ public void init() { this.orsSpeedPatternLookup = d.find(""); } - /** - * sets the segment size in all additional data storages - * - * @param bytes Size in bytes. - */ - public void setSegmentSize(int bytes) { - orsEdgesProperties.setSegmentSize(bytes); - orsEdgesTrafficLinkLookup.setSegmentSize(bytes); - orsSpeedPatternLookup.setSegmentSize(bytes); - } - /** * @return true if successfully loaded from persistent storage. */ diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrailDifficultyScaleGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrailDifficultyScaleGraphStorage.java index 5d6a6e084c..27e9e1198f 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrailDifficultyScaleGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/TrailDifficultyScaleGraphStorage.java @@ -48,10 +48,6 @@ protected final int nextBlockEntryIndex(int size) { return res; } - public void setSegmentSize(int bytes) { - edges.setSegmentSize(bytes); - } - public TrailDifficultyScaleGraphStorage create(long initBytes) { edges.create(initBytes * edgeEntryBytes); return this; diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WayCategoryGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WayCategoryGraphStorage.java index 8f137c7e2f..a5508526dc 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WayCategoryGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WayCategoryGraphStorage.java @@ -41,10 +41,6 @@ public void init(Graph graph, Directory dir) { this.orsEdges = dir.find("ext_waycategory"); } - public void setSegmentSize(int bytes) { - orsEdges.setSegmentSize(bytes); - } - public WayCategoryGraphStorage create(long initBytes) { orsEdges.create(initBytes * edgeEntryBytes); return this; diff --git a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WaySurfaceTypeGraphStorage.java b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WaySurfaceTypeGraphStorage.java index 1eea3659d5..f69546900f 100644 --- a/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WaySurfaceTypeGraphStorage.java +++ b/ors-engine/src/main/java/org/heigit/ors/routing/graphhopper/extensions/storages/WaySurfaceTypeGraphStorage.java @@ -50,10 +50,6 @@ protected final int nextBlockEntryIndex(int size) { return edgeEntryIndex; } - public void setSegmentSize(int bytes) { - orsEdges.setSegmentSize(bytes); - } - public WaySurfaceTypeGraphStorage create(long initBytes) { orsEdges.create(initBytes * edgeEntryBytes); return this;