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
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.