ToTypeValue
See javadoc - uk.gov.gchq.gaffer.types.function.ToTypeValue
Available since Gaffer version 1.8.0
Converts a value into a TypeValue
Examples
To type value
Java
JSON
Full JSON
Python
Function toTypeValue = new ToTypeValue();{
"class" : "ToTypeValue"
}{
"class" : "uk.gov.gchq.gaffer.types.function.ToTypeValue"
}g.ToTypeValue()Input type:
java.lang.Object
Example inputs:
| Input Type | Input | Result Type | Result |
|---|---|---|---|
| java.lang.String | aString | uk.gov.gchq.gaffer.types.TypeValue | TypeValue[value=aString] |
| java.lang.Long | 100 | uk.gov.gchq.gaffer.types.TypeValue | TypeValue[value=100] |
| java.lang.Integer | 25 | uk.gov.gchq.gaffer.types.TypeValue | TypeValue[value=25] |
| uk.gov.gchq.gaffer.types.TypeValue | TypeValue[type=type1,value=value1] | uk.gov.gchq.gaffer.types.TypeValue | TypeValue[value=TypeValue[type=type1,value=value1]] |
| null | uk.gov.gchq.gaffer.types.TypeValue | TypeValue[] |