You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by sk...@apache.org on 2019/07/24 17:28:40 UTC
[phoenix] branch 4.x-HBase-1.5 updated: PHOENIX-5382 : Improved
performace with Bulk operations over iterations (addendum)
This is an automated email from the ASF dual-hosted git repository.
skadam pushed a commit to branch 4.x-HBase-1.5
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x-HBase-1.5 by this push:
new 9a2c310 PHOENIX-5382 : Improved performace with Bulk operations over iterations (addendum)
9a2c310 is described below
commit 9a2c310d63b5b30a496ebf4541f4e46db0450c01
Author: Viraj Jasani <vi...@gmail.com>
AuthorDate: Wed Jul 24 18:21:06 2019 +0530
PHOENIX-5382 : Improved performace with Bulk operations over iterations (addendum)
Signed-off-by: s.kadam <sk...@apache.org>
---
.../src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java b/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java
index 59ed9cf..024e3cd 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/CSVCommonsLoader.java
@@ -158,7 +158,11 @@ public class CSVCommonsLoader {
* @return
*/
public static char asControlCharacter(char delimiter) {
- return CTRL_CHARACTER_TABLE.getOrDefault(delimiter, delimiter);
+ if(CTRL_CHARACTER_TABLE.containsKey(delimiter)) {
+ return CTRL_CHARACTER_TABLE.get(delimiter);
+ } else {
+ return delimiter;
+ }
}
/**