Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Input comparator

 
B M Tejaswi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement like given two mysql dump i have to write the difference between the old and new schemas. Both new and old schema are separated by a delimiter and provided as input through standard input and not through file. How do i approach this? Any suggestions ?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tejaswi Bm wrote:I have a requirement like given two mysql dump i have to write the difference between the old and new schemas.


Google for diff algorithm. Then google again to see if you can find a thirdparty Java library that implements it. I would assume there's at least one at sourceforge or apache.
 
B M Tejaswi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem here is am supposed to use only JDK API's and no third party libraries!!
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tejaswi Bm wrote:The problem here is am supposed to use only JDK API's and no third party libraries!!


Then just google for the algorithm and implement it yourself. Skip the part about looking for a thirdparty library.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic