Interface PiperValue
An interface represents value of primitive types, e.g. Int, Double, or String, and
object types, e.g. array, dictionary, or struct.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Concrete types of all supported workflow parameters -
Method Summary
Modifier and TypeMethodDescriptiondefault PiperValue[]
getArray()
Retrieve the value as an array of PiperValue.default Boolean
Retrieve the value as a Boolean.default org.apache.commons.lang3.tuple.Pair<URI,
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> Retrieve the value as a Pair of URL and its Spark Dataframe.default Map<String,
PiperValue> Retrieve the value as a list of NamedValue objects with key as a String.default Double
Retrieve the value as a Double.getFile()
Retrieve the value as a Pair of path and SeqsLab DRS object.default Integer
Retrieve the value as an Integer.default String
Retrieve the value as a String.getType()
Get the concrete type of this PiperValue object.
-
Method Details
-
getType
PiperValue.Type getType()Get the concrete type of this PiperValue object.- Returns:
- The concrete type
-
getBoolean
Retrieve the value as a Boolean.- Returns:
- A Boolean value
-
getInteger
Retrieve the value as an Integer.- Returns:
- An Integer value
-
getDouble
Retrieve the value as a Double.- Returns:
- A Double value
-
getString
Retrieve the value as a String.- Returns:
- A String value
-
getFile
Retrieve the value as a Pair of path and SeqsLab DRS object.- Returns:
- A Pair value representing a File
-
getArray
Retrieve the value as an array of PiperValue.- Returns:
- An array value
-
getDictionary
Retrieve the value as a list of NamedValue objects with key as a String.- Returns:
- A dictionary value
-
getDataframe
default org.apache.commons.lang3.tuple.Pair<URI,org.apache.spark.sql.Dataset<org.apache.spark.sql.Row>> getDataframe()Retrieve the value as a Pair of URL and its Spark Dataframe.- Returns:
- A Pair value representing a dataframe
-