kashili / counter

Top 'N' occurrences in a given directory - Scaling in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

For running the following commands, cd to the folder that has pom.xml
1. To list all the occurrences/frequencies in descending order
$ mvn test
2. Top 20 occurrences/frequencies from a given path, in silent-mode (change the command line arguments for different results)
$ java   -jar target/counter-0.0.1-jar-with-dependencies.jar 20 target/test-classes/files
3. Top 20 occurrences/frequencies from a given path, in verbose-mode (change the command line arguments for different results)
$ java  -Dlog4j.configuration=file:target/classes/log4j_dev.properties -jar target/counter-0.0.1-jar-with-dependencies.jar 20 target/test-classes/files

Build

$mvn clean  package

Eclipse setup

Install the following plugins and import the source as maven project

About

Top 'N' occurrences in a given directory - Scaling in Java


Languages

Language:Java 100.0%