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
FieldsModifier and TypeFieldDescriptionstatic final org.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData> Inplace semigroup that sums all counts and writes them to the first given debug data.intNumber of exported nodes withDiffType.ADD.intNumber of exported nodes withDiffType.NON.intNumber of exported nodes withDiffType.REM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData> Metadata should be composable.voidsetFromSnapshot(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:MetadataCreate a key-value store of the metadata that can be used for serialization.- Specified by:
snapshotin 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:
setFromSnapshotin interfaceMetadata<VariationDiffSerializeDebugData>
-
semigroup
public org.variantsync.functjonal.category.InplaceSemigroup<VariationDiffSerializeDebugData> semigroup()Description copied from interface:MetadataMetadata should be composable. Composition should be inplace to optimize performance.- Specified by:
semigroupin interfaceMetadata<VariationDiffSerializeDebugData>
-