Interface TupleComparator

    • Method Detail

      • compare

        boolean compare​(Tuple expected,
                        Tuple actual)
                 throws StreamBaseException
        Compare two tuples.
        Parameters:
        expected - The expected value
        actual - The actual value
        Returns:
        true if the tuples are equal
        Throws:
        StreamBaseException
      • formatForErrorMessage

        String formatForErrorMessage​(Tuple t)
        Convert the provided Tuple into a string appropriate for error messages. Some comparators may wish to omit fields that are not salient to the comparison.
        Parameters:
        t - The tuple to format
        Returns:
        A human readable string.