Coder Social home page Coder Social logo

simba2013 / tablediff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dennisk28/tablediff

0.0 1.0 0.0 136 KB

TableDiff is a tool to compare two large tabular format text files. It uses external merge sort algorithm to handle very large files.

tablediff's Introduction

1. Introduction

TableDiff is a tool to compare two large tabular format text files. Some of the key features:

   a. Use external merge sort algorithm to sort unsorted large files before comparison.
   b. User can specify multiple columns to generate a key for each row.
   c. User can specify columns to compare between two files.
   d. Support absolute and percentage comparison for two double values. The threshhold of the comparison can be configured.
   e. User can implement own key generator and comparison algorithm.
   f. User can use filter class to filter out certain rows before comparison.
   g. Memory print can be as small as 50m no matter how large the files are.
   h. Speed is very fast.
   i. Support escape character to represent delimiter characters. for example, if ; is delimiter, \; will be treated as character ";".

2. Build

Use maven to build the system.

run: mvn install or build.bat

3. Run a demo

Inside test directory you can find:

genSamp.bat: A program to generate two identical files with 1 million records based on random numbers
runDemo.bat: Take the generated files, run sort and then compare.
usage.bat: Display command line parameters

Steps to run the demo:

a. Use genSamp.bat to generate two files t.txt and t1.txt each with 1 million random records
b. Modify one of the files, moving some records, deleting some records, make changes to some of the values
c. Use runDemo.bat to sort the two files and then compare them. A result.txt is generated to show the difference between two compared files.

Any question, please send email to [email protected].

Cheers!

tablediff's People

Watchers

 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.