ExtractKeys

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

Available since Koryphe version 1.1.0

An ExtractKeys will return the Set of keys from the provided Java Map.

Examples

Extract keys from map

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

Input type:

java.util.Map

Example inputs:

Input TypeInputResult TypeResult
java.util.HashMap{firstKey=2, thirdKey=9, secondKey=4}java.util.HashMap$KeySet[firstKey, thirdKey, secondKey]

results matching ""

    No results matching ""