ToTrailingWildcardPair
See javadoc - uk.gov.gchq.gaffer.operation.function.ToTrailingWildcardPair
Available since Gaffer version 1.19.0
Converts an input value into a pair of EntityIds representing a range.
Examples
With default end of range
Java
JSON
Full JSON
Python
final ToTrailingWildcardPair function = new ToTrailingWildcardPair();{
"class" : "ToTrailingWildcardPair",
"endOfRange" : "~"
}{
"class" : "uk.gov.gchq.gaffer.operation.function.ToTrailingWildcardPair",
"endOfRange" : "~"
}g.ToTrailingWildcardPair(
end_of_range="~"
)Input type:
java.lang.String
Example inputs:
| Input Type | Input | Result Type | Result |
|---|---|---|---|
| java.lang.String | value1 | uk.gov.gchq.gaffer.commonutil.pair.Pair | Pair[first=EntitySeed[vertex=value1],second=EntitySeed[vertex=value1~]] |
| java.lang.String | value2 | uk.gov.gchq.gaffer.commonutil.pair.Pair | Pair[first=EntitySeed[vertex=value2],second=EntitySeed[vertex=value2~]] |
| null | null |
With custom end of range
The end of range is customisable
Java
JSON
Full JSON
Python
final ToTrailingWildcardPair function = new ToTrailingWildcardPair();
function.setEndOfRange("custom");{
"class" : "ToTrailingWildcardPair",
"endOfRange" : "custom"
}{
"class" : "uk.gov.gchq.gaffer.operation.function.ToTrailingWildcardPair",
"endOfRange" : "custom"
}g.ToTrailingWildcardPair(
end_of_range="custom"
)Input type:
java.lang.String
Example inputs:
| Input Type | Input | Result Type | Result |
|---|---|---|---|
| java.lang.String | value1 | uk.gov.gchq.gaffer.commonutil.pair.Pair | Pair[first=EntitySeed[vertex=value1],second=EntitySeed[vertex=value1custom]] |
| java.lang.String | value2 | uk.gov.gchq.gaffer.commonutil.pair.Pair | Pair[first=EntitySeed[vertex=value2],second=EntitySeed[vertex=value2custom]] |
| null | null |