Class SinkParameters

java.lang.Object
nz.org.riskscape.engine.output.SinkParameters

public class SinkParameters extends Object

Defines options that are useful when constructing a Sink

TODO the name of this might need to change to something aligned with what it's actually used for - saving

  • Constructor Details

  • Method Details

    • getName

      public String getName()

      A name associate with the Sink. If this sink is saving output, then this is going to be used as the name of the output, i.e it'll be part of the resulting filename

    • getType

      public Struct getType()

      The type of the data that the sink is going to receive via Sink.accept(nz.org.riskscape.engine.Tuple).

    • getFormat

      public Optional<Format> getFormat()

      A format the user has asked the data to be saved in

    • setName

      public void setName(String name)

      A name associate with the Sink. If this sink is saving output, then this is going to be used as the name of the output, i.e it'll be part of the resulting filename

    • setType

      public void setType(Struct type)

      The type of the data that the sink is going to receive via Sink.accept(nz.org.riskscape.engine.Tuple).

    • setFormat

      public void setFormat(Optional<Format> format)

      A format the user has asked the data to be saved in

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object