Coder Social home page Coder Social logo

transform's Introduction

This is the source code of highly effective transforming process
There is two concurrent operations in the program ,
first one is TransformService, and second one is FileWriterService

TransformServices works on a maxCPU - 1 threads. These threads making transformation (Filtering , Renaming vs..)
Benchmarking in different systems may result different outcome , I have just optimized on my machine

FileWriterService works on single thread and it writes the tranformed data to output file

I assume that data file can be very big , but conf files are small enough to hold in memory.

IO operations(Read/Write) works on single thread because the main bottleneck in these operations is Disk IO

I have used Executor Services for multithreading .
I have used BlockingQueue for data passing between threads
I have used CountDownLatch in order to check termination

TECH-STACK:
        Java 8 , Maven , log4j , intellij


HOW-TO-WORK :
        Program takes files locations from argument parameters.
        Run unit tests and create data , conf files, then you can give these arguments as program parameter.
        sample arguments: "src/test/resources/bigfile.txt src/test/resources/conf1.txt src/test/resources/conf2.txt src/test/resources/output.txt"


TO-DO: need to improve unit test coverage for each method
       need to improve solution in very large configuration files.


transform'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.