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
final ToTrailingWildcardPair function = new ToTrailingWildcardPair();
{
  "class" : "ToTrailingWildcardPair",
  "endOfRange" : "~"
}
{
  "class" : "uk.gov.gchq.gaffer.operation.function.ToTrailingWildcardPair",
  "endOfRange" : "~"
}

Input type:

java.lang.String

Example inputs:

Input TypeInputResult TypeResult
java.lang.Stringvalue1uk.gov.gchq.gaffer.commonutil.pair.PairPair[first=EntitySeed[vertex=value1],second=EntitySeed[vertex=value1~]]
java.lang.Stringvalue2uk.gov.gchq.gaffer.commonutil.pair.PairPair[first=EntitySeed[vertex=value2],second=EntitySeed[vertex=value2~]]
nullnull

With custom end of range

The end of range is customisable

Java
JSON
Full JSON
final ToTrailingWildcardPair function = new ToTrailingWildcardPair();
function.setEndOfRange("custom");
{
  "class" : "ToTrailingWildcardPair",
  "endOfRange" : "custom"
}
{
  "class" : "uk.gov.gchq.gaffer.operation.function.ToTrailingWildcardPair",
  "endOfRange" : "custom"
}

Input type:

java.lang.String

Example inputs:

Input TypeInputResult TypeResult
java.lang.Stringvalue1uk.gov.gchq.gaffer.commonutil.pair.PairPair[first=EntitySeed[vertex=value1],second=EntitySeed[vertex=value1custom]]
java.lang.Stringvalue2uk.gov.gchq.gaffer.commonutil.pair.PairPair[first=EntitySeed[vertex=value2],second=EntitySeed[vertex=value2custom]]
nullnull

results matching ""

    No results matching ""