public List<T> getElements() {
            return elements;
        }
A simple collector which collects elements into a list.
@param <T> Type of elements to collect.
inlong-sort/sort-formats/format-common/src/main/java/org/apache/inlong/sort/formats/util/CommonUtils.java