Class ChecksumMode

java.lang.Object
uk.ac.starlink.ttools.mode.ChecksumMode
All Implemented Interfaces:
ProcessingMode

public class ChecksumMode extends Object implements ProcessingMode
Processing mode for calculating a checksum of table data.
Since:
31 Aug 2021
Author:
Mark Taylor
  • Constructor Details

    • ChecksumMode

      public ChecksumMode()
    • ChecksumMode

      public ChecksumMode(Supplier<Checksum> checksumFactory)
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: ProcessingMode
      Returns a textual description of this processing mode. This will be included in the user document so should be in XML.
      Specified by:
      getDescription in interface ProcessingMode
      Returns:
      textual description of this mode
    • getAssociatedParameters

      public uk.ac.starlink.task.Parameter<?>[] getAssociatedParameters()
      Description copied from interface: ProcessingMode
      Returns a list of any parameters which are associated with this mode.
      Specified by:
      getAssociatedParameters in interface ProcessingMode
      Returns:
      parameter list
    • createConsumer

      public TableConsumer createConsumer(uk.ac.starlink.task.Environment env)
      Description copied from interface: ProcessingMode
      Creates a TableConsumer, deriving any additional required configuration from a given environment.
      Specified by:
      createConsumer in interface ProcessingMode
      Parameters:
      env - execution environment