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

org.embulk.exec.ResumeState Maven / Gradle / Ivy

package org.embulk.exec;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
import java.util.List;
import org.embulk.config.ConfigSource;
import org.embulk.config.TaskReport;
import org.embulk.config.TaskSource;
import org.embulk.spi.Schema;

public class ResumeState {
    private final ConfigSource execSessionConfigSource;
    private final TaskSource inputTaskSource;
    private final TaskSource outputTaskSource;
    private final Schema inputSchema;
    private final Schema outputSchema;
    private final List> inputTaskReports;
    private final List> outputTaskReports;

    @JsonCreator
    public ResumeState(
            @JsonProperty("exec_task") ConfigSource execSessionConfigSource,
            @JsonProperty("in_task") TaskSource inputTaskSource,
            @JsonProperty("out_task") TaskSource outputTaskSource,
            @JsonProperty("in_schema") Schema inputSchema,
            @JsonProperty("out_schema") Schema outputSchema,
            @JsonProperty("in_reports") List> inputTaskReports,
            @JsonProperty("out_reports") List> outputTaskReports) {
        this.execSessionConfigSource = execSessionConfigSource;
        this.inputTaskSource = inputTaskSource;
        this.outputTaskSource = outputTaskSource;
        this.inputSchema = inputSchema;
        this.outputSchema = outputSchema;
        this.inputTaskReports = inputTaskReports;
        this.outputTaskReports = outputTaskReports;
    }

    @JsonProperty("exec_task")
    public ConfigSource getExecSessionConfigSource() {
        return execSessionConfigSource;
    }

    @JsonProperty("in_task")
    public TaskSource getInputTaskSource() {
        return inputTaskSource;
    }

    @JsonProperty("out_task")
    public TaskSource getOutputTaskSource() {
        return outputTaskSource;
    }

    @JsonProperty("in_schema")
    public Schema getInputSchema() {
        return inputSchema;
    }

    @JsonProperty("out_schema")
    public Schema getOutputSchema() {
        return outputSchema;
    }

    @JsonProperty("in_reports")
    public List> getInputTaskReports() {
        return inputTaskReports;
    }

    @JsonProperty("out_reports")
    public List> getOutputTaskReports() {
        return outputTaskReports;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy