/** * Create a builder to configure the relevant Input and Output. </p> This method should only be * used when using a custom Partitioner which requires specific Configuration. {@link * #newBuilder(String, String, String)} is the preferred method to crate an instance of the * Builder * * @param keyClassName the key class name * @param valueClassName the value class name * @param partitionerClassName the partitioner class name * @param partitionerConf the partitioner configuration. This can be null, and is a {@link * java.util.Map} of key-value pairs. The keys should be limited to * the ones required by the partitioner. * @return a builder to configure the edge */ public static Builder newBuilder(String keyClassName, String valueClassName, String partitionerClassName, @Nullable Map<String, String> partitionerConf) { return new Builder(keyClassName, valueClassName, partitionerClassName, partitionerConf); }