public Builder distributionMode(DistributionMode mode) {
            Preconditions.checkArgument(
                    !DistributionMode.RANGE.equals(mode),
                    "Flink does not support 'range' write distribution mode now.");
            if (mode != null) {
                writeOptions.put(FlinkWriteOptions.DISTRIBUTION_MODE.key(), mode.modeName());
            }
            return this;
        }
Configure the write {@link DistributionMode} that the flink sink will use. Currently, flink
support {@link DistributionMode#NONE} and {@link DistributionMode#HASH}.

@param mode to specify the write distribution mode.
@return {@link Builder} to connect the iceberg table.
inlong-sort/sort-flink/sort-flink-v1.15/sort-connectors/iceberg/src/main/java/org/apache/inlong/sort/iceberg/sink/FlinkSink.java