Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
* Add status reporting to know how many tweets are already imported.
* Remove spam from DataFiller when no brand is detected
|
|
|
|
Huge diff comes from whitespace diff. Now the tweet is printed with
its line number in error cases, and all further insertions are aborted.
|
|
* Insert User URLs.
* Fix hash insertion query (copy/paste error...).
* Split url to tweetUrl and userUrl as there is no "url" table anymore.
* Do not execute queries directly via getStmt(), but execute them via
NamedPreparedStatement such that faulty queries can be printed.
* Fix buildQuery for more than two primary keys.
* Drop comments from prepared statements members in DataFiller, there is
nothing that you cannot learn from the variable name. Besides there
was a copy/paste error for mentions.
* Change order of insertion to ensure consistency.
* Inline setting parameters for queries, it is now more transparant.
|
|
Get rid of ispostedby, move it to tweet table ("userid")
|
|
|
|
That construct was hiding the Connection instance. Very bad abstraction
as I really need it to support transactions.
While at it, make the prepared statement objects final such that it is
detected when those are not properly initialized.
In Main, use try-with-resources, remove a noisy "exit succesfull" [sic]
message. Due to the extra try/catch for the db connection
(RuntimeException is not OK my friend!), the indentation had to be
changed.
|
|
Also change reader method, tweets are not received via an observed but
by submitting from the caller.
Added TODO WTF here and there, formatted with Alt + Shift + F.
|
|
|
|
* InputReader reads from Scanner.
|
|
* DataFiller fills the database with given input.
|