record_merger's Introduction
Overview -------- Given the 2 sample files: "first.html" and "second.csv" under the "data" directory, write a Java program that performs the following: 1. In first.html it contains a table called "directory". Read and extract the table. 2. Read and extract the table from second.csv. 3. Combine and merge these 2 tables into 1 by consolidating duplicated columns and write the results in a file named "combined.csv". - For the merge operation, assume "ID" is unique. - The "ID" column in the output file "combined.csv" should be sorted in ascending order. When in doubt, state your assumptions and proceed. Your design must take into consideration of future support of new input file formats (for example xml files). Note 1: DO NOT MODIFY THE GIVEN DATA FILES! Note 2: you can include any open-source libraries you need in addition to what's provided in "lib" directory. Note 3: Use the given RecordMerger class as a starting point. Note 4: A header row is required in the final CSV file. Expected Outcome ---------------- - Your program must generate "combined.csv" - "combined.csv" must contain no duplicate IDs. - the IDs in "combined.csv" must be sorted in ascending order. Important!!! ------------ - Your program should be extensible and easy to maintain. - Additional file types will need to be supported in the future (not yet). Your code must make it easy to add new file types. - The sample data files are just samples. Your program must allow: a. any number of input files. b. any number of columns in the csv or html files. c. the data can be in any language (Chinese, French, English, etc).
record_merger's People
Forkers
shahinrahbariRecommend 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.