Wrapper Class Support


Barry Hill <barry...@...>
 

It's only for Arrays oops

Work around for me is to use Kotlin IntArray which compiles to Javas int[]


Barry Hill <barry...@...>
 

Is it possible to add support for Arrays of wrapper classes such as Integer in JanusGraph? 

Exception in thread "main" java.lang.IllegalArgumentException: Property value [[Ljava.lang.Integer;@1583741e] is of type class [Ljava.lang.Integer; is not supported
at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.dataTypeOfPropertyValueNotSupported(Property.java:163)
at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.dataTypeOfPropertyValueNotSupported(Property.java:159)
at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.verifyAttribute(StandardJanusGraphTx.java:578)
at org.janusgraph.graphdb.query.QueryUtil.addConstraint(QueryUtil.java:233)
at org.janusgraph.graphdb.query.QueryUtil.constraints2QNF(QueryUtil.java:223)
at org.janusgraph.graphdb.query.graph.GraphCentricQueryBuilder.constructQueryWithoutProfile(GraphCentricQueryBuilder.java:213)
at org.janusgraph.graphdb.query.graph.GraphCentricQueryBuilder.constructQuery(GraphCentricQueryBuilder.java:202)
at org.janusgraph.graphdb.query.graph.GraphCentricQueryBuilder.vertices(GraphCentricQueryBuilder.java:165)
at org.janusgraph.graphdb.tinkerpop.optimize.JanusGraphStep.lambda$new$0(JanusGraphStep.java:62)
at org.apache.tinkerpop.gremlin.process.traversal.step.map.GraphStep.processNextStart(GraphStep.java:123)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:126)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:37)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.next(DefaultTraversal.java:157)

I'm using Kotlin for my project and kotlin uses wrapper classes for types such as Int (Integer)

https://kotlinlang.org/docs/reference/basic-types.html


I'm new to TinkerPop/JanusGraph so pardon my ignorance.