Package org.apache.spark.util
Interface SparkStringUtils
public interface SparkStringUtils
- 
Method SummaryModifier and TypeMethodDescriptionabbreviate(String str, int len) abbreviate(String str, String abbrevMarker, int len) byte[]fromHexString(String hex) getHexString(byte[] bytes) Returns a pretty string of the byte array which prints each byte as a hex digit and add spaces between them.booleanbooleanbooleanisNotBlank(String str) booleanisNotEmpty(String str) scala.collection.immutable.Seq<String>sideBySide(String left, String right) scala.collection.immutable.Seq<String>sideBySide(scala.collection.immutable.Seq<String> left, scala.collection.immutable.Seq<String> right) scala.collection.immutable.Seq<String>stringToSeq(String str) Try to strip prefix and suffix with the given string 's'
- 
Method Details- 
getHexStringReturns a pretty string of the byte array which prints each byte as a hex digit and add spaces between them. For example, [1A C0].- Parameters:
- bytes- (undocumented)
- Returns:
- (undocumented)
 
- 
fromHexString
- 
isEmpty
- 
isNotEmpty
- 
isBlank
- 
isNotBlank
- 
abbreviate
- 
abbreviate
- 
sideBySide
- 
sideBySide
- 
stringToSeq
- 
stripTry to strip prefix and suffix with the given string 's'
- 
leftPad
- 
rightPad
- 
rightPad
 
-