You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by pt...@apache.org on 2015/05/29 21:49:43 UTC
[6/9] storm git commit: Fixing README
Fixing README
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/7062caa0
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/7062caa0
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/7062caa0
Branch: refs/heads/0.10.x-branch
Commit: 7062caa02f01e4963919ff4ba7b80bc21a069855
Parents: 7ca8e29
Author: Parth Brahmbhatt <br...@gmail.com>
Authored: Tue May 26 16:12:38 2015 -0700
Committer: Parth Brahmbhatt <br...@gmail.com>
Committed: Tue May 26 16:12:38 2015 -0700
----------------------------------------------------------------------
external/storm-jdbc/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/7062caa0/external/storm-jdbc/README.md
----------------------------------------------------------------------
diff --git a/external/storm-jdbc/README.md b/external/storm-jdbc/README.md
index 8595a39..2d1301a 100644
--- a/external/storm-jdbc/README.md
+++ b/external/storm-jdbc/README.md
@@ -98,7 +98,7 @@ hikariConfigMap.put("dataSource.user","root");
hikariConfigMap.put("dataSource.password","password");
ConnectionProvider connectionProvider = new HikariCPConnectionProvider(map);
String tableName = "user_details";
-JdbcMapper simpleJdbcMapper = new SimpleJdbcMapper(tableName, map);
+JdbcMapper simpleJdbcMapper = new SimpleJdbcMapper(tableName, connectionProvider);
```
The mapper initialized in the example above assumes a storm tuple has value for all the columns of the table you intend to insert data into and its `getColumn`
method will return the columns in the order in which Jdbc connection instance's `connection.getMetaData().getColumns();` method returns them.