You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2015/10/27 19:54:27 UTC

[jira] [Resolved] (OAK-3560) Tooling for writing segment graphs to a file

     [ https://issues.apache.org/jira/browse/OAK-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dürig resolved OAK-3560.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.10

Fixed at http://svn.apache.org/viewvc?rev=1710862&view=rev.

The 'graph' run mode mode exports the segment graph of a file store to a text file in the [Guess GDF format|https://gephi.github.io/users/supported-graph-formats/gdf-format/], which is easily imported into [Gephi|https://gephi.github.io].

As the GDF format only supports integer values but the segment time stamps are encoded as long values an optional 'epoch' argument can be specified. If no epoch is given on the command line the start of the day of the last modified date of the 'journal.log' is used. The epoch specifies a negative offset translating all timestamps into a valid int range.

{noformat}
$ java -jar oak-run-*.jar graph [File] <options>

[File] -- Path to segment store (required)

Option           Description
------           -----------
--epoch <Long>   Epoch of the segment time stamps
                   (derived from journal.log if not
                   given)
--output <File>  Output file (default: segments.gdf)
{noformat}

Sample output:
{noformat}
nodedef>name VARCHAR, label VARCHAR, type VARCHAR, wid VARCHAR, gc INT, t INT, head BOOLEAN
aa871660-786d-4af5-a6e1-df7b8fa4b0ef,74,data,c-01,0,44051986,true
6afcaed2-0545-4d9e-a440-aac08038b5ac,72,data,c-01,0,44051892,true
dba85de3-19ac-488d-a99b-f608dfc811ff,79,data,c-01,0,44052183,true
edgedef>node1 VARCHAR, node2 VARCHAR, head BOOLEAN
dba85de3-19ac-488d-a99b-f608dfc811ff,aa871660-786d-4af5-a6e1-df7b8fa4b0ef,true
aa871660-786d-4af5-a6e1-df7b8fa4b0ef,6afcaed2-0545-4d9e-a440-aac08038b5ac,false
{noformat}

> Tooling for writing segment graphs to a file
> --------------------------------------------
>
>                 Key: OAK-3560
>                 URL: https://issues.apache.org/jira/browse/OAK-3560
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: run
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: tooling
>             Fix For: 1.3.10
>
>
> [Gephi|https://gephi.org/] turned out to be very valuable for examining segment graphs. I would like to add some tooling so we could dump the segment graph of a {{FileStore}} to a file. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)