ExtractValue

See javadoc - uk.gov.gchq.koryphe.impl.function.ExtractValue

Available since Koryphe version 1.2.0

An ExtractValue will return the value associated with the pre-configured key, from a supplied Java Map.

Examples

Extract value from map

Java
JSON
Full JSON
Python
final ExtractValue<String, Integer> function = new ExtractValue<>("blueKey");
{
  "class" : "ExtractValue",
  "key" : "blueKey"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.ExtractValue",
  "key" : "blueKey"
}
g.ExtractValue( 
  key="blueKey" 
)

Input type:

java.util.Map

Example inputs:

Input TypeInputResult TypeResult
java.util.HashMap{yellowKey=4, greenKey=9, redKey=5, blueKey=25}java.lang.Integer25

results matching ""

    No results matching ""