Package io.trino.spi.type
Class Varchars
java.lang.Object
io.trino.spi.type.Varchars
-
Method Summary
Modifier and TypeMethodDescriptionstatic intbyteCount(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 pointsstatic io.airlift.slice.SlicetruncateToLength(io.airlift.slice.Slice slice, int maxLength) static io.airlift.slice.SlicetruncateToLength(io.airlift.slice.Slice slice, Type type) static io.airlift.slice.SlicetruncateToLength(io.airlift.slice.Slice slice, VarcharType varcharType)
-
Method Details
-
truncateToLength
-
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
-