tech.ytsaurus.client.request.MapReduceOperation Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client.request;
import tech.ytsaurus.client.operations.MapReduceSpec;
/**
* Immutable map-reduce operation request.
*
* @see tech.ytsaurus.client.ApiServiceClient#startMapReduce(MapReduceOperation)
* @see
* map_reduce documentation
*
*/
public class MapReduceOperation extends BaseOperation {
MapReduceOperation(Builder builder) {
super(builder);
}
/**
* Construct a builder with options set from this request.
*/
public Builder toBuilder() {
return builder()
.setSpec(getSpec())
.setMutatingOptions(getMutatingOptions())
.setTransactionalOptions(getTransactionalOptions().orElse(null));
}
/**
* Create empty builder.
*/
public static Builder builder() {
return new Builder();
}
/**
* Builder of {@link MapReduceOperation}.
*/
public static class Builder extends BuilderBase {
/**
* Create instance of {@link MapReduceOperation}.
*/
public MapReduceOperation build() {
return new MapReduceOperation(this);
}
protected Builder self() {
return this;
}
}
}