presto-spi/src/main/java/io/prestosql/spi/type/TypeSerde.java/TypeSerde/writeType
class TypeSerde:    public static void writeType(SliceOutput sliceOutput, Type type)
    {
        requireNonNull(sliceOutput, "sliceOutput is null");
        requireNonNull(type, "type is null");
        writeLengthPrefixedString(sliceOutput, type.getTypeId().getId());
    }