ToFreqMap
See javadoc - uk.gov.gchq.gaffer.types.function.ToFreqMap
Available since Gaffer version 1.8.0
Creates a new FreqMap and upserts a given value
Examples
To freq map
Java
JSON
Full JSON
Python
Function toFreqMap = new ToFreqMap();
{
"class" : "ToFreqMap"
}
{
"class" : "uk.gov.gchq.gaffer.types.function.ToFreqMap"
}
g.ToFreqMap()
Input type:
java.lang.Object
Example inputs:
Input Type | Input | Result Type | Result |
---|---|---|---|
java.lang.String | aString | uk.gov.gchq.gaffer.types.FreqMap | {aString=1} |
java.lang.Long | 100 | uk.gov.gchq.gaffer.types.FreqMap | {100=1} |
java.lang.Integer | 20 | uk.gov.gchq.gaffer.types.FreqMap | {20=1} |
uk.gov.gchq.gaffer.types.TypeValue | TypeValue[type=type1,value=value1] | uk.gov.gchq.gaffer.types.FreqMap | {TypeValue[type=type1,value=value1]=1} |
null | uk.gov.gchq.gaffer.types.FreqMap | {null=1} |