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 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
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 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 ""