Class BasicBatchKey

  • All Implemented Interfaces:

    public class BasicBatchKey
    extends Object
    implements BatchKey
    Normal implementation of BatchKey
    • Constructor Detail

      • BasicBatchKey

        public BasicBatchKey​(String comparison,
                             Expectation expectation)
        Constructs a BasicBatchKey
        comparison - A string used to compare batch keys.
        expectation - The expectation for the batch
    • Method Detail

      • getExpectation

        public Expectation getExpectation()
        Description copied from interface: BatchKey
        Get the expectation pertaining to the outcome of the Batch associated with this key.
        Specified by:
        getExpectation in interface BatchKey
        The expectations
      • getBatchedStatementCount

        public int getBatchedStatementCount()
        Description copied from interface: BatchKey
        How many statements will be in this batch?

        Note that this is distinctly different than the size of the batch.

        Specified by:
        getBatchedStatementCount in interface BatchKey
        The number of statements.
      • hashCode

        public int hashCode()
        hashCode in class Object