Database Reference
In-Depth Information
conf.setProperty("storage.backend",
"cassandrathrift");
conf.setProperty("storage.hostname",
"localhost");
conf.setProperty("storage.port", "9160");
conf.setProperty("storage.keyspace",
"twitter");
Table 7-1 . Titan configuration properties
Property
Value
Description
storage.backend
cassandrathrift
Cassandra as backend
storage
storage.hostname
localhost
Thrift listen_address,
change according to
your Cassandra server
settings.
storage.port
9160
Thrift rp
Cassandra keyspace
for Titan Graph stor-
age
storage.keyspace
Twitter
Table 7-1 outlines and describes the configuration properties we used
in the preceding step.
2.
Next we need to open a graph instance using TitanFactory:
TitanGraph graph = TitanFactory.open(conf);
Let's further explore the Titan Java API with Cassandra via a few use cases, such as
reading, writing, and batch processing data.
Use Cases
In this section, we will discuss graph traversal, reading, writing, and batch processing
with graph data. Let's first discuss a scenario in which vertices and connecting edges
are large in number, which is quite common with big data.
 
 
Search WWH ::




Custom Search