Class RemoveRedundancy

java.lang.Object
net.messagevortex.router.operation.AbstractOperation
net.messagevortex.router.operation.RemoveRedundancy
All Implemented Interfaces:
Serializable, Operation

public class RemoveRedundancy extends AbstractOperation implements Serializable

This is the core of the redundancy remove operation.

It rebuilds the data stream from the existing data blocks.

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • canRun

      public boolean canRun()
      Description copied from interface: Operation

      Checks if all prerequisiting fields do exist or can be provided by a subsequent operation.

      Specified by:
      canRun in interface Operation
      Specified by:
      canRun in class AbstractOperation
      Returns:
      true if all prerequisits can potentially be satisfied
    • execute

      public int[] execute(int[] id)
      Description copied from interface: Operation

      Executes the operation and sets at least the provided set of id.

      This operation might trigger to execute prerequisiting operations.

      Specified by:
      execute in interface Operation
      Specified by:
      execute in class AbstractOperation
      Parameters:
      id - the namespace id to be set minimally
      Returns:
      array representing all ids which have been set
    • getOutputId

      public int[] getOutputId()
      Description copied from interface: Operation

      Gets all ids which are written by this operation.

      Specified by:
      getOutputId in interface Operation
      Returns:
      array representing all ids which will be potentially set by this operation
    • getInputId

      public int[] getInputId()
      Description copied from interface: Operation

      Gets all ids which are required to execute this operation.

      Specified by:
      getInputId in interface Operation
      Returns:
      array representing all ids which will be potentially set by this operation
    • toString

      public String toString()
      Overrides:
      toString in class Object