MapToTuple
See javadoc - uk.gov.gchq.koryphe.impl.function.MapToTuple
Available since Koryphe version 1.8.0
Converts a Map to a Tuple
Examples
Map to tuple
Java
JSON
Full JSON
Python
final MapToTuple<String> function = new MapToTuple<>();
{
"class" : "MapToTuple"
}
{
"class" : "uk.gov.gchq.koryphe.impl.function.MapToTuple"
}
g.MapToTuple()
Input type:
java.util.Map
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
java.util.HashMap | {A=1, B=2, C=3} | uk.gov.gchq.koryphe.tuple.MapTuple | [1, 2, 3] |
uk.gov.gchq.gaffer.types.FreqMap | {value2=1, value1=2} | uk.gov.gchq.koryphe.tuple.MapTuple | [1, 2] |