public static ReadPhase getReadPhaseByCode(int code) {
        return Stream.of(ReadPhase.values()).filter(v -> v.getCode() == code).findFirst().orElse(null);
    }
get the read phase enum by code

@param code the code
@return the read phase enum
inlong-sort/sort-flink/base/src/main/java/org/apache/inlong/sort/base/enums/ReadPhase.java