Toggle navigation
EN
EN
DE
ES
FR
IT
UK
Help
Log In
Help
Log In
EN
EN
DE
ES
FR
IT
UK
Home
Messages
Hashtags
Subgroups
Calendar
×
×
×
Close
Likes
Janusgraph-Dev
Messages
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
previous page
#749
next page
Failing to store List as property value
mkj....@...
#749
I have this code:
JanusGraph graph = JanusGraphFactory.open("/janusgraph-0.2.0-hadoop2/conf/janusgraph-cassandra.properties");
JanusGraphManagement mgmt = graph.openManagement();
mgmt.makePropertyKey("test1").dataType(String.class).cardinality(Cardinality.LIST).make();
mgmt.commit();
JanusGraphVertex v = graph.addVertex();
ArrayList al = new ArrayList();
al.add("aaa");
al.add("bbb");
v.property("test1", al);
System.out.println("V = " + v);
ArrayList al1 = (ArrayList)v.property("test1");
System.out.println(al1);
i am getting this error:
Exception in thread "main" java.lang.ClassCastException: org.janusgraph.graphdb.relations.StandardVertexProperty cannot be cast to java.util.ArrayList
More
previous page
View All 3 Messages In Topic
next page
previous page
#749
next page
Join
janusgraph-dev@lists.lfaidata.foundation to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to LF AI and Data Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of janusgraph-dev@lists.lfaidata.foundation?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More Options
More
Home
Hashtags
Subgroups
Calendar
Terms
Toggle navigation
Terms
©
2023
Groups.io