public final class Varchars extends Object
| Modifier and Type | Method and Description |
|---|---|
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
|
static boolean |
isVarcharType(Type type) |
static io.airlift.slice.Slice |
truncateToLength(io.airlift.slice.Slice slice,
int maxLength) |
static io.airlift.slice.Slice |
truncateToLength(io.airlift.slice.Slice slice,
Type type) |
static io.airlift.slice.Slice |
truncateToLength(io.airlift.slice.Slice slice,
VarcharType varcharType) |
public static boolean isVarcharType(Type type)
public static io.airlift.slice.Slice truncateToLength(io.airlift.slice.Slice slice,
Type type)
public static io.airlift.slice.Slice truncateToLength(io.airlift.slice.Slice slice,
VarcharType varcharType)
public static io.airlift.slice.Slice truncateToLength(io.airlift.slice.Slice slice,
int maxLength)
public static int byteCount(io.airlift.slice.Slice slice,
int offset,
int length,
int codePointCount)
Copyright © 2012–2022. All rights reserved.