Class SinkParameters
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 Summary
ConstructorDescriptionSinkParameters
(String name, Struct type) SinkParameters
(String name, Struct type, Optional<Format> format) SinkParameters
(SinkParameters clone) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A format the user has asked the data to be saved ingetName()
A name associate with theSink
.getType()
The type of the data that the sink is going to receive viaSink.accept(nz.org.riskscape.engine.Tuple)
.int
hashCode()
void
A format the user has asked the data to be saved invoid
A name associate with theSink
.void
The type of the data that the sink is going to receive viaSink.accept(nz.org.riskscape.engine.Tuple)
.toString()
-
Constructor Details
-
SinkParameters
-
SinkParameters
-
SinkParameters
-
-
Method Details
-
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
The type of the data that the sink is going to receive via
Sink.accept(nz.org.riskscape.engine.Tuple)
. -
getFormat
A format the user has asked the data to be saved in
-
setName
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
The type of the data that the sink is going to receive via
Sink.accept(nz.org.riskscape.engine.Tuple)
. -
setFormat
A format the user has asked the data to be saved in
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-