{"action":"created","comment":{"url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/comments/38922540","id":38922540,"diff_hunk":"@@ -83,6 +91,26 @@\n \t\treturn db.getAtomicLong(indexName);\n \t}\n \n+\tpublic static Atomic.Long createOrGetLongIndex(final DB db, final String indexName, final long initValue) {\n+\n+\t\tfinal Atomic.Long longIndex;\n+\n+\t\tif (db.getCatalog().containsKey(indexName)) {\n+\n+\t\t\tfinal Atomic.Long atomicLong = db.getAtomicLong(indexName);\n+\t\t\tatomicLong.getAndSet(initValue);\n+\n+\t\t\tlongIndex = atomicLong;\n+\n+\t\t\tdb.commit();","path":"src/main/java/org/dswarm/graph/index/MapDBUtils.java","position":48,"original_position":48,"commit_id":"0420a5090c66c8f92653af4852a90cf78073e495","original_commit_id":"0420a5090c66c8f92653af4852a90cf78073e495","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"body":"nope, not really ;)","created_at":"2015-09-08T13:08:04Z","updated_at":"2015-09-08T13:08:04Z","html_url":"https://github.com/dswarm/dswarm-graph-neo4j/pull/24#discussion_r38922540","pull_request_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/comments/38922540"},"html":{"href":"https://github.com/dswarm/dswarm-graph-neo4j/pull/24#discussion_r38922540"},"pull_request":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24","id":44427314,"html_url":"https://github.com/dswarm/dswarm-graph-neo4j/pull/24","diff_url":"https://github.com/dswarm/dswarm-graph-neo4j/pull/24.diff","patch_url":"https://github.com/dswarm/dswarm-graph-neo4j/pull/24.patch","issue_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues/24","number":24,"state":"open","locked":false,"title":"[DD-1247] added method to initialize prefix counter remotely","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-08T12:44:08Z","updated_at":"2015-09-08T13:08:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"676054536490dbeef2e6e8aa4d9724ce83394066","assignee":{"login":"knutwalker","id":633183,"avatar_url":"https://avatars.githubusercontent.com/u/633183?v=3","gravatar_id":"","url":"https://api.github.com/users/knutwalker","html_url":"https://github.com/knutwalker","followers_url":"https://api.github.com/users/knutwalker/followers","following_url":"https://api.github.com/users/knutwalker/following{/other_user}","gists_url":"https://api.github.com/users/knutwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/knutwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knutwalker/subscriptions","organizations_url":"https://api.github.com/users/knutwalker/orgs","repos_url":"https://api.github.com/users/knutwalker/repos","events_url":"https://api.github.com/users/knutwalker/events{/privacy}","received_events_url":"https://api.github.com/users/knutwalker/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24/commits","review_comments_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24/comments","review_comment_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues/24/comments","statuses_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/statuses/0420a5090c66c8f92653af4852a90cf78073e495","head":{"label":"zazi:sprint-45/dd-1247","ref":"sprint-45/dd-1247","sha":"0420a5090c66c8f92653af4852a90cf78073e495","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"repo":{"id":25155692,"name":"dswarm-graph-neo4j","full_name":"zazi/dswarm-graph-neo4j","owner":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zazi/dswarm-graph-neo4j","description":"an unmanaged extension for Neo4j to process the GDM","fork":true,"url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j","forks_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/forks","keys_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/teams","hooks_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/hooks","issue_events_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/issues/events{/number}","events_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/events","assignees_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/assignees{/user}","branches_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/branches{/branch}","tags_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/tags","blobs_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/statuses/{sha}","languages_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/languages","stargazers_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/stargazers","contributors_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/contributors","subscribers_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/subscribers","subscription_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/subscription","commits_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/contents/{+path}","compare_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/merges","archive_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/downloads","issues_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/issues{/number}","pulls_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/pulls{/number}","milestones_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/milestones{/number}","notifications_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/labels{/name}","releases_url":"https://api.github.com/repos/zazi/dswarm-graph-neo4j/releases{/id}","created_at":"2014-10-13T11:23:32Z","updated_at":"2015-04-02T12:27:36Z","pushed_at":"2015-09-08T12:43:22Z","git_url":"git://github.com/zazi/dswarm-graph-neo4j.git","ssh_url":"git@github.com:zazi/dswarm-graph-neo4j.git","clone_url":"https://github.com/zazi/dswarm-graph-neo4j.git","svn_url":"https://github.com/zazi/dswarm-graph-neo4j","homepage":null,"size":2379,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dswarm:master","ref":"master","sha":"a567032ea32955f7c74465f29cac39f8c2ccd04c","user":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":25151904,"name":"dswarm-graph-neo4j","full_name":"dswarm/dswarm-graph-neo4j","owner":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dswarm/dswarm-graph-neo4j","description":"an unmanaged extension for Neo4j to process the GDM","fork":false,"url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j","forks_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/forks","keys_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/teams","hooks_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/hooks","issue_events_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues/events{/number}","events_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/events","assignees_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/assignees{/user}","branches_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/branches{/branch}","tags_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/tags","blobs_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/statuses/{sha}","languages_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/languages","stargazers_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/stargazers","contributors_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/contributors","subscribers_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/subscribers","subscription_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/subscription","commits_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/contents/{+path}","compare_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/merges","archive_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/downloads","issues_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues{/number}","pulls_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls{/number}","milestones_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/milestones{/number}","notifications_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/labels{/name}","releases_url":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/releases{/id}","created_at":"2014-10-13T09:22:54Z","updated_at":"2015-04-30T12:30:06Z","pushed_at":"2015-09-08T12:44:08Z","git_url":"git://github.com/dswarm/dswarm-graph-neo4j.git","ssh_url":"git@github.com:dswarm/dswarm-graph-neo4j.git","clone_url":"https://github.com/dswarm/dswarm-graph-neo4j.git","svn_url":"https://github.com/dswarm/dswarm-graph-neo4j","homepage":null,"size":1923,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24"},"html":{"href":"https://github.com/dswarm/dswarm-graph-neo4j/pull/24"},"issue":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues/24"},"comments":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/dswarm/dswarm-graph-neo4j/statuses/0420a5090c66c8f92653af4852a90cf78073e495"}}}}