TITAN

TitanDB not using indexes for query

本秂侑毒 提交于 2020-01-03 01:51:22
问题 I have created indexes on two properties: mgmt.buildIndex("userId", Vertex.class).addKey(mgmt.makePropertyKey("userId").dataType(Integer.class).make()).buildCompositeIndex(); mgmt.buildIndex("firstNameIndex", Vertex.class).addKey(mgmt.makePropertyKey("firstName").dataType(String.class).make()).buildCompositeIndex(); On Gremlin shell i can see the indexes have been created: g.getIndexedKeys(Vertex.class) ==>userId ==>firstName Now when i so query on vertices like simplest one: gremlin> g.V()

How to Define Data Type for Titan Graph DB Vertex?

只谈情不闲聊 提交于 2020-01-02 16:15:39
问题 I am creating a Graph Data Table using Titan and Blueprint API. I am using HBase as backend. I know how to define data types for key indexes. Example: TitanKey name = graph.makeType().name("name").dataType(String.class).functional().makePropertyKey(); Now I actually want to represent a RDBMS Table in Titan DB Graph. Is there any process through which I can implement 'Column Data Type' (as in RDBMS Table) in the Titan Graph Model ? 回答1: Unlike a relational database, Titan's schema is flexible.

How to Define Data Type for Titan Graph DB Vertex?

坚强是说给别人听的谎言 提交于 2020-01-02 16:15:09
问题 I am creating a Graph Data Table using Titan and Blueprint API. I am using HBase as backend. I know how to define data types for key indexes. Example: TitanKey name = graph.makeType().name("name").dataType(String.class).functional().makePropertyKey(); Now I actually want to represent a RDBMS Table in Titan DB Graph. Is there any process through which I can implement 'Column Data Type' (as in RDBMS Table) in the Titan Graph Model ? 回答1: Unlike a relational database, Titan's schema is flexible.

gremlin from titan 1.0.0 is not running out of the box on windows

爱⌒轻易说出口 提交于 2020-01-02 05:20:07
问题 I'm following the http://s3.thinkaurelius.com/docs/titan/1.0.0/getting-started.html guide on my windows machine. but i'm getting stuck at the very first step, getting gremlin to run: >bin\gremlin.bat Error opening zip file or JAR manifest missing : ..\lib\jamm-0.3.0.jar Error occurred during initialization of VM agent library failed to init: instrument 回答1: Found a solution in this google group for this issue and more: to run gremlin edit the gremlin.bat file: Change: set LIBDIR=..\lib To:

Gremlin - Giraph - GraphX ? On TitanDb

橙三吉。 提交于 2020-01-01 05:38:08
问题 I need some help to be confirm my choice... and to learn if you can give me some information. My storage database is TitanDb with Cassandra. I have a very large graph. My goal is to use Mllib on the graph latter. My first idea : use Titan with GraphX but I did not found anything or in development in progress... TinkerPop is not ready yet. So I have a look to Giraph. TinkerPop, Titan can communique with Rexster from TinkerPop. My question is : What are the benefit to use Giraph ? Gremlin seems

Gremlin date filter approach

谁都会走 提交于 2019-12-31 01:54:12
问题 Is there anyway to query on date in titan/gremlin? e.g. find all results in the last X days Any help would be much appreciated. 回答1: The best approach is to simply store the date as a Long value and to possibly index upon such a field in an edge such that you could take advantage of limit() , interval , etc. See this Titan wiki page on the topic: https://github.com/thinkaurelius/titan/wiki/Vertex-Centric-Indices It maps to your specific request with a Twitter example where it indexes on time

How does Titan achieve constant time lookup using HBase / Cassandra?

陌路散爱 提交于 2019-12-30 19:29:47
问题 In the O'Reilly book "Graph Databases" in chapter 6, which is about how Neo4j stores a graph database it says: To understand why native graph processing is so much more efficient than graphs based on heavy indexing, consider the following. Depending on the implementation, index lookups could be O(log n) in algorithmic complexity versus O(1) for looking up immediate relationships. To traverse a network of m steps, the cost of the indexed approach, at O(m log n), dwarfs the cost of O(m) for an

How does Titan achieve constant time lookup using HBase / Cassandra?

跟風遠走 提交于 2019-12-30 19:28:12
问题 In the O'Reilly book "Graph Databases" in chapter 6, which is about how Neo4j stores a graph database it says: To understand why native graph processing is so much more efficient than graphs based on heavy indexing, consider the following. Depending on the implementation, index lookups could be O(log n) in algorithmic complexity versus O(1) for looking up immediate relationships. To traverse a network of m steps, the cost of the indexed approach, at O(m log n), dwarfs the cost of O(m) for an

Learning Blueprints, should I move directly to Tinkerpop 3? [closed]

笑着哭i 提交于 2019-12-25 14:48:30
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I need to learn Gremlin etc. and possibly use it within a public facing production-ready system I'm working on. As any release of my system is, at a minimum, 6 months away (say end Q1 2015), should I switch directly to the new, still pre-release, Tinkerpop 3 implementation,

TitanFactory.open() configration

柔情痞子 提交于 2019-12-25 14:13:01
问题 My previous question was about the syntax of the TitanFactory class. Now i wonder how to use it? For example i can construct RexsterGraph object like the following and it works like a charm. Graph graph = new RexsterGraph(http://190.188.20.11:8183/graphs/graph"); Now i want to import csv file into the titan. So i need TitanGraph object. I found the following post to do that. How to import a CSV file into Titan graph database? And i worte the following code and it gives me error. Could not