Interface SparkStringUtils


public interface SparkStringUtils
  • Method Details

    • getHexString

      String getHexString(byte[] bytes)
      Returns 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

      byte[] fromHexString(String hex)
    • isEmpty

      boolean isEmpty(String str)
    • isNotEmpty

      boolean isNotEmpty(String str)
    • isBlank

      boolean isBlank(String str)
    • isNotBlank

      boolean isNotBlank(String str)
    • abbreviate

      String abbreviate(String str, String abbrevMarker, int len)
    • abbreviate

      String abbreviate(String str, int len)
    • sideBySide

      scala.collection.immutable.Seq<String> sideBySide(String left, String right)
    • sideBySide

      scala.collection.immutable.Seq<String> sideBySide(scala.collection.immutable.Seq<String> left, scala.collection.immutable.Seq<String> right)
    • stringToSeq

      scala.collection.immutable.Seq<String> stringToSeq(String str)
    • strip

      String strip(String str, String s)
      Try to strip prefix and suffix with the given string 's'
    • leftPad

      String leftPad(String str, int width)
    • rightPad

      String rightPad(String str, int width)
    • rightPad

      String rightPad(String str, int width, String s)