Giter VIP home page Giter VIP logo

oak-node-stats's Introduction

Oak Node Stats

This command line utility computes basic statistics about nodes and properties in a JCR repository created by Apache Jackrabbit Oak's Segment Store.

Build

You can build this project by executing the following command:

mvn clean package

Run

You can run the built JAR by executing the following command:

java -jar target/oak-node-stats-*.jar directory

where directory is the path on the file system of the repository.

You can specify a path in the repository as a second argument. In this case, only statistics relevant to that subtree of the repository are computed.

java -jar target/oak-node-stats-*.jar directory /content

Output

After a successful execution, the program will output on the command line a certain amount of statistics, indexed by type. The output has been designed to be easier to consume with standard command line utilities. An example of output is the following (some parts are omitted for clarity):

properties.n 266104501
properties.max 4999
properties.sum 885316929
properties.mean 3.326952102174326
properties.histogram 0 100 266104377
properties.histogram 100 200 68
properties.histogram 200 300 6
properties.histogram 300 400 2
properties.histogram 600 700 13
properties.histogram 800 900 1
properties.histogram 1000 1100 3
properties.histogram 2900 3000 3
properties.histogram 4900 5000 28
property.names.length.n 266104501
property.names.length.max 18930
property.names.length.sum 11060586969
property.names.length.mean 41.564824824214455
property.names.length.histogram 0 100 213243682
property.names.length.histogram 100 200 35637071
property.names.length.histogram 200 300 15966272
property.names.length.histogram 300 400 561311
...

License

This code is released under an MIT license.

oak-node-stats's People

Contributors

francescomari avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.