From bd19a5d5f43ea9504a0c38b283beb6192e28e0ce Mon Sep 17 00:00:00 2001 From: Saad Rashid Date: Fri, 5 Jul 2013 16:59:36 +0100 Subject: Added Multi Row Inserts in the documentation and changes in the values in JDBC Constants. --- README.md | 2 +- src/main/java/parallelai/spyglass/jdbc/JDBCConstants.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bb2e607..beaa4a4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ SpyGlass ======== -Cascading and Scalding wrapper for HBase with advanced read and write features. JDBC wrapper is recently added to support SQL in taps. Insert/Update/Update on Duplicates are supported. +Cascading and Scalding wrapper for HBase with advanced read and write features. JDBC wrapper is recently added to support SQL in taps. Insert/Update/Upserts (Update on Duplicates) are supported with MultiRowInserts & Batch Modes. Prevent Hot Spotting by the use of transparent key prefixes. diff --git a/src/main/java/parallelai/spyglass/jdbc/JDBCConstants.java b/src/main/java/parallelai/spyglass/jdbc/JDBCConstants.java index 6788624..429b401 100644 --- a/src/main/java/parallelai/spyglass/jdbc/JDBCConstants.java +++ b/src/main/java/parallelai/spyglass/jdbc/JDBCConstants.java @@ -13,7 +13,11 @@ public class JDBCConstants { public enum JdbcSinkMode { INSERT, UPDATE, - UPSERT; + UPSERT, + BATCH_INSERT, + BATCH_UPSERT, + MULTI_ROW_INSERT, + MULTI_ROW_UPSERT; } public static final String START_KEY = "jdbc.%s.startkey"; -- cgit v1.2.3