Skip to content

Commit 79abc93

Browse files
committed
doc
1 parent 72a2065 commit 79abc93

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,12 @@ public UTF8String trim() {
556556
/**
557557
* Trims whitespaces (<= ASCII 32) from both ends of this string.
558558
*
559-
* @return this string with no control characters and spaces at the start or end
559+
* 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+
*
560565
*/
561566
public UTF8String trimAll() {
562567
int s = 0;

0 commit comments

Comments
 (0)