Interface MergeableScanTask<ThisT>

  • Type Parameters:
    ThisT - the child Java API class
    All Superinterfaces:
    ScanTask, java.io.Serializable

    public interface MergeableScanTask<ThisT>
    extends ScanTask
    A scan task that can be potentially merged with other scan tasks.
    • Method Detail

      • canMerge

        boolean canMerge​(ScanTask other)
        Checks if this task can merge with a given task.
        Parameters:
        other - another task
        Returns:
        whether the tasks can be merged
      • merge

        ThisT merge​(ScanTask other)
        Merges this task with a given task.

        Note this method will be called only if canMerge(ScanTask) returns true.

        Parameters:
        other - another task
        Returns:
        a new merged task