Class Varchars

java.lang.Object
io.trino.spi.type.Varchars

public final class Varchars extends Object
  • Method Details

    • truncateToLength

      public static io.airlift.slice.Slice truncateToLength(io.airlift.slice.Slice slice, Type type)
    • truncateToLength

      public static io.airlift.slice.Slice truncateToLength(io.airlift.slice.Slice slice, VarcharType varcharType)
    • truncateToLength

      public static io.airlift.slice.Slice truncateToLength(io.airlift.slice.Slice slice, int maxLength)
    • byteCount

      public static int byteCount(io.airlift.slice.Slice slice, int offset, int length, int codePointCount)
      Get the byte count of a given with in range to + for at most many code points