Import package in gremlin

2019-09-18 03:11发布

I am trying to import "https://github.com/thinkaurelius/titan/blob/1.0.0/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/tinkerpop/io/graphson/TitanGraphSONModule.java" in gremlin by using command as

import https://github.com/thinkaurelius/titan/blob/1.0.0/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/tinkerpop/io/graphson/TitanGraphSONModule.java;

But getting error like this:

Invalid import definition: 'https://github.com/thinkaurelius/titan/blob/1.0.0/titan-core/src/main/java/com/thinkaurelius/titan/graphdb/tinkerpop/io/graphson/TitanGraphSONModule.java;'

How can I import this class - TitanGraphSONModule.java??

1条回答
来,给爷笑一个
2楼-- · 2019-09-18 03:33

It's just like a Java import:

gremlin> import com.thinkaurelius.titan.graphdb.tinkerpop.io.graphson.TitanGraphSONModule
查看更多
登录 后发表回答