Class VariationDiffSerializeDebugData
java.lang.Object
org.variantsync.diffdetective.variation.diff.serialize.VariationDiffSerializeDebugData
- All Implemented Interfaces:
Metadata<VariationDiffSerializeDebugData>
public class VariationDiffSerializeDebugData
extends Object
implements Metadata<VariationDiffSerializeDebugData>
Debug data that keeps track of the number of exported nodes and their diffTypes.
- Author:
- Paul Bittner
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData>
Inplace semigroup that sums all counts and writes them to the first given debug data.int
Number of exported nodes withDiffType.ADD
.int
Number of exported nodes withDiffType.NON
.int
Number of exported nodes withDiffType.REM
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData>
Metadata should be composable.void
setFromSnapshot
(LinkedHashMap<String, String> snap) snapshot()
Create a key-value store of the metadata that can be used for serialization.
-
Field Details
-
ISEMIGROUP
public static final org.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData> ISEMIGROUPInplace semigroup that sums all counts and writes them to the first given debug data. -
numExportedNonNodes
public int numExportedNonNodesNumber of exported nodes withDiffType.NON
. -
numExportedAddNodes
public int numExportedAddNodesNumber of exported nodes withDiffType.ADD
. -
numExportedRemNodes
public int numExportedRemNodesNumber of exported nodes withDiffType.REM
.
-
-
Constructor Details
-
VariationDiffSerializeDebugData
public VariationDiffSerializeDebugData()
-
-
Method Details
-
snapshot
Description copied from interface:Metadata
Create a key-value store of the metadata that can be used for serialization.- Specified by:
snapshot
in interfaceMetadata<VariationDiffSerializeDebugData>
- Returns:
- A LinkedHashMap that stores all relevant properties to export. The return type has to be a LinkedHashMap to obtain insertion-order iteration.
-
setFromSnapshot
- Specified by:
setFromSnapshot
in interfaceMetadata<VariationDiffSerializeDebugData>
-
semigroup
public org.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData> semigroup()Description copied from interface:Metadata
Metadata should be composable. Composition should be inplace to optimize performance.- Specified by:
semigroup
in interfaceMetadata<VariationDiffSerializeDebugData>
-