Class AtlasChecksLogDiffSubCommand
- java.lang.Object
-
- org.openstreetmap.atlas.checks.commands.JSONFlagDiffSubCommand
-
- org.openstreetmap.atlas.checks.commands.AtlasChecksLogDiffSubCommand
-
- All Implemented Interfaces:
org.openstreetmap.atlas.utilities.runtime.FlexibleSubCommand
public class AtlasChecksLogDiffSubCommand extends JSONFlagDiffSubCommand
Takes 2 sets of atlas-checks log files and reports the number of additions, subtractions, and changed flags from reference to input. Optionally, the reported items can be written to new log files. Additions and subtractions are based on flag ids. Changes are calculated by differences in the Atlas ids of objects in a flag.
-
-
Constructor Summary
Constructors Constructor Description AtlasChecksLogDiffSubCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.util.Map<java.util.Set<java.lang.String>,com.google.gson.JsonObject>>mapFeatures(org.openstreetmap.atlas.streaming.resource.File file)Parses an atlas-checks flag file and maps each flag to its id.-
Methods inherited from class org.openstreetmap.atlas.checks.commands.JSONFlagDiffSubCommand
execute, getDescription, getDiff, getGson, getInput, getName, getReference, getReferenceSize, switches, usage, writeSetToGeoJSON
-
-
-
-
Method Detail
-
mapFeatures
protected java.util.Map<java.lang.String,java.util.Map<java.util.Set<java.lang.String>,com.google.gson.JsonObject>> mapFeatures(org.openstreetmap.atlas.streaming.resource.File file)
Description copied from class:JSONFlagDiffSubCommandParses an atlas-checks flag file and maps each flag to its id.- Specified by:
mapFeaturesin classJSONFlagDiffSubCommand- Parameters:
file-Filecontaining the flags- Returns:
- a 2d
HashMapcontaining aHashMapofJsonObjects mapped toStringfeature ids, mapped toStringcheck names.
-
-