aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu ISHIKAWA <yuu.ishikawa@gmail.com>2015-08-17 23:27:11 -0700
committerReynold Xin <rxin@databricks.com>2015-08-17 23:27:11 -0700
commita0910315dae88b033e38a1de07f39ca21f6552ad (patch)
tree44b32626c641685ff6151cdfcee33451b0c47b27
parente290029a356222bddf4da1be0525a221a5a1630b (diff)
downloadspark-a0910315dae88b033e38a1de07f39ca21f6552ad.tar.gz
spark-a0910315dae88b033e38a1de07f39ca21f6552ad.tar.bz2
spark-a0910315dae88b033e38a1de07f39ca21f6552ad.zip
[MINOR] Format the comment of `translate` at `functions.scala`
Author: Yu ISHIKAWA <yuu.ishikawa@gmail.com> Closes #8265 from yu-iskw/minor-translate-comment.
-rw-r--r--sql/core/src/main/scala/org/apache/spark/sql/functions.scala17
1 files changed, 9 insertions, 8 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
index 79c5f59666..435e6319a6 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/functions.scala
@@ -1863,14 +1863,15 @@ object functions {
def substring_index(str: Column, delim: String, count: Int): Column =
SubstringIndex(str.expr, lit(delim).expr, lit(count).expr)
- /* Translate any character in the src by a character in replaceString.
- * The characters in replaceString is corresponding to the characters in matchingString.
- * The translate will happen when any character in the string matching with the character
- * in the matchingString.
- *
- * @group string_funcs
- * @since 1.5.0
- */
+ /**
+ * Translate any character in the src by a character in replaceString.
+ * The characters in replaceString is corresponding to the characters in matchingString.
+ * The translate will happen when any character in the string matching with the character
+ * in the matchingString.
+ *
+ * @group string_funcs
+ * @since 1.5.0
+ */
def translate(src: Column, matchingString: String, replaceString: String): Column =
StringTranslate(src.expr, lit(matchingString).expr, lit(replaceString).expr)