We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72a2065 commit 79abc93Copy full SHA for 79abc93
1 file changed
common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java
@@ -556,7 +556,12 @@ public UTF8String trim() {
556
/**
557
* Trims whitespaces (<= ASCII 32) from both ends of this string.
558
*
559
- * @return this string with no control characters and spaces at the start or end
+ * Note that, this method is the same as java's {@link String#trim}, and different from
560
+ * {@link UTF8String#trim()} which only remove only spaces(= ASCII 32) from both ends.
561
+ *
562
+ * @return A UTF8String whose value is this UTF8String, with any leading and trailing white
563
+ * space removed, or this UTF8String if it has no leading or trailing whitespace.
564
565
*/
566
public UTF8String trimAll() {
567
int s = 0;
0 commit comments