Class BasicBatchKey

  • All Implemented Interfaces:
    BatchKey

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

      • BasicBatchKey

        public BasicBatchKey​(String comparison,
                             Expectation expectation)
        Constructs a BasicBatchKey
        Parameters:
        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
        Returns:
        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 to the size of the batch.

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

        public int hashCode()
        Overrides:
        hashCode in class Object