Skip to content

Instantly share code, notes, and snippets.

@pluradj
pluradj / JavaExample.java
Last active May 10, 2020 06:25
Updating the entire value of vertex property with List cardinality in Titan graph database
package pluradj.titan.tinkerpop3.example;
import static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.*;
import com.thinkaurelius.titan.core.Cardinality;
import com.thinkaurelius.titan.core.PropertyKey;
import com.thinkaurelius.titan.core.TitanFactory;
import com.thinkaurelius.titan.core.TitanGraph;
import com.thinkaurelius.titan.core.schema.TitanManagement;
$ ./bin/gremlin.sh
objc[4518]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
import groovy.grape.Grape
import org.apache.commons.configuration.*
import org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.*
import org.apache.tinkerpop.gremlin.process.computer.bulkloading.*