tech.ytsaurus.client.request.MapOperation Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client.request;
import tech.ytsaurus.client.operations.MapSpec;
/**
* Immutable map operation request.
*
* @see tech.ytsaurus.client.ApiServiceClient#startMap(MapOperation)
* @see
* map documentation
*
*/
public class MapOperation extends BaseOperation {
MapOperation(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 MapOperation}.
*/
public static class Builder extends BuilderBase {
/**
* Create instance of {@link MapOperation}.
*/
public MapOperation build() {
return new MapOperation(this);
}
protected Builder self() {
return this;
}
}
}