All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ytsaurus.client.request.MergeOperation Maven / Gradle / Ivy

The newest version!
package tech.ytsaurus.client.request;

import tech.ytsaurus.client.operations.MergeSpec;

/**
 * Immutable merge operation request.
 *
 * @see tech.ytsaurus.client.ApiServiceClient#startMerge(MergeOperation)
 * @see 
 * merge documentation
 * 
 */
public class MergeOperation extends BaseOperation {
    MergeOperation(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 MergeOperation}.
     */
    public static class Builder extends BuilderBase {
        /**
         * Create instance of {@link MergeOperation}.
         */
        public MergeOperation build() {
            return new MergeOperation(this);
        }

        protected Builder self() {
            return this;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy