Examples of DiffOperation


Examples of com.netflix.zeno.diff.DiffOperation

        /// get a diff "instruction".  This describes how to match up objects
        /// between two FastBlobStateEngines.
        DiffInstruction instruction = getDiffInstruction();
       
        DiffOperation diffOperation = new DiffOperation(new ExampleSerializerFactory(), instruction);

        /// perform the diff report
        DiffReport diffReport = diffOperation.performDiff(fromStateEngine, toStateEngine);

        /// this score can be used as a quick overview to see the magnitude of the differences between the data states
        System.out.println("Total Differences Between Matched Objects: " + diffReport.getTotalDiffs());
        /// this score can be used as a quick overview to see the number of unmatched objects between the data states
        System.out.println("Total Unmatched Objects: " + diffReport.getTotalExtra());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.