How to use the gremlin.ClassTypes function in gremlin

To help you get started, we’ve selected a few gremlin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github inolen / gremlin-node / examples / titanExample.js View on Github external
var g = require("gremlin"),
	T = g.Tokens,
	//Compare = g.Compare,
	Direction = g.Direction,
	Type = g.ClassTypes;

/*Titan specific Enums >>>>>*/
var TTC = g.java.import("com.thinkaurelius.titan.graphdb.types.TitanTypeClass");
var UniqCon = g.java.import("com.thinkaurelius.titan.core.TypeMaker$UniquenessConsistency");
/*Titan specific Enums <<<<<*/
//console.log(TTC.LABEL.toString());
//console.log(TTC.KEY.toString());
//console.log(UniqCon.LOCK.toString());
//console.log(UniqCon.NO_LOCK.toString());

var BaseConfiguration = g.java.import('org.apache.commons.configuration.BaseConfiguration');

conf = new BaseConfiguration();
conf.setPropertySync("storage.backend","cassandra");
conf.setPropertySync("storage.hostname","127.0.0.1");
conf.setPropertySync("storage.keyspace","titan");