Skip to content

davidp3/TitAn-droid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is TitAn-droid. All work is being done in the 0.3.2-deep branch, which is based on the 0.3.2 release (we are not using trunk).

TitAn-droid is a fork of Titan that is configured to build and run on Android with minimal changes to the original Titan. This fork is not very far along but is being used in a product in-development. Graph databases like TitAn-droid make sense for almost all applications but they are especially appropriate for (surprise) data that is most naturally defined as a graph. Even those with no sense of imagination can picture use-cases (social networks, wide-area networks, networks of all kinds, etc).

This project is highly experimental. An alternative Android port of Titan that may be more practical can be found here .

TitAn-droid is an attempt to build and use Titan with as few changes to the original project as possible. This is something of a mad-scientist type goal and so some ‘forbidden’ tools are used. The overall approach of the project is this:

  1. Fetch the Android implementation of Berkeley DB from Oracle’s web site. This requires (free) registration with the site. As of today, it is version 5.0.84.
  2. Stick the Android version of Berkeley DB in your Maven repo as com.sleepycat:je-android:5.0.84 (or whatever version number you have). For a local repo only, this would be
    • cd je-5.0.84/lib ; mvn install:install-file \
      -Dfile=lib/je-android-5.0.84.jar \
      -DgroupId=com.sleepycat \
      -DartifactId=je-android \
      -Dversion=5.0.84 \
      -Dpackaging=jar \
      -DgeneratePom=true
  3. Do similar for OpenBeans . Use “openbeans” for both the groupId and artifactId. Also use 0.0.1-SNAPSHOT as its version (TODO: Fix this).
  4. Build Titan from the root folder. This only builds the source of Titan projects for titan-core and titan-berkeleyje. The source is largely unchanged from the fork.
    • cd titan ; mvn clean install
  5. Build TitAn-droid from the titan-core-dummy folder.
    • cd titan-core-dummy ; mvn clean install
      1. Merge Titan and its dependencies into one jar.
      2. Run JarJar Links on the resulting jar to retarget some of the APIs that aren’t available on Android. For example, one of the transitive dependencies of Titan is StAX, which exists in J2SE’s rt.jar/classes.jar but not on Android. Some clues to JarJar can be found here but this tool is not thoroughly documented so we are flying pretty crazy high at this point.
      3. Carefully run Proguard on the result, which is rather large. This is because the result of the entire compile is too large for the Android SDK to handle . Proguard should still be run by your own application-build (for releases, anyway). This step is really about avoiding the aforementioned compiler limitation.
  6. Include the subproject that does this, titan-core-dummy, in the final application. Don’t forget not to try to do database operations on your main UI thread!

Titan is a highly scalable graph database optimized for storing and querying large graphs with billions of vertices and edges distributed across a multi-machine cluster. Titan is a transactional database that can support thousands of concurrent users.

Features

Getting Started

Read the comprehensive Titan documentation and join the mailing list.

About

Distributed Graph Database

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 95.1%
  • Shell 4.8%
  • Ruby 0.1%