Length

See javadoc - uk.gov.gchq.koryphe.impl.function.Length

Available since Koryphe version 1.3.0

Examples

Get length

Java
JSON
Full JSON
Python
final Length function = new Length();
{
  "class" : "Length"
}
{
  "class" : "uk.gov.gchq.koryphe.impl.function.Length"
}
g.Length()

Input type:

java.lang.Object

Example inputs:

Input TypeInputResult TypeResult
java.util.ArrayList[Entity[vertex=1,group=entity,properties=Properties[]], Entity[vertex=2,group=entity,properties=Properties[]], Entity[vertex=3,group=entity,properties=Properties[]], Entity[vertex=4,group=entity,properties=Properties[]], Entity[vertex=5,group=entity,properties=Properties[]]]java.lang.Integer5
java.util.HashMap{option3=value3, option1=value1, option2=value2}java.lang.Integer3
uk.gov.gchq.gaffer.data.graph.Walk[[Edge[source=A,destination=B,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=B,destination=C,directed=true,group=EnhancedEdge,properties=Properties[]], Edge[source=B,destination=C,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=C,destination=A,directed=true,group=BasicEdge,properties=Properties[]]], [Edge[source=A,destination=E,directed=true,group=BasicEdge,properties=Properties[]]]]java.lang.Integer4
java.lang.Integer5IllegalArgumentException: Could not determine the size of the provided value
java.lang.Stringsome stringjava.lang.Integer11
[Ljava.lang.String;[Ljava.lang.String;@211279cejava.lang.Integer2
nulljava.lang.Integer0

results matching ""

    No results matching ""