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

com.harrys.hyppo.executor.proto.res.FetchProcessedDataResult Maven / Gradle / Ivy

There is a newer version: 0.7.5
Show newest version
package com.harrys.hyppo.executor.proto.res;

import com.harrys.hyppo.executor.OperationType;
import com.harrys.hyppo.executor.proto.OperationResult;
import com.harrys.hyppo.source.api.model.DataIngestionTask;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

import java.io.File;

/**
 * Created by jpetty on 7/21/15.
 */
public final class FetchProcessedDataResult extends OperationResult {
    private static final long serialVersionUID = 1L;

    @JsonProperty("task")
    private final DataIngestionTask task;

    @JsonProperty("localDataFile")
    private final File localDataFile;

    @JsonProperty("recordCount")
    private final long recordCount;

    @JsonCreator
    public FetchProcessedDataResult(
            @JsonProperty("task")           final DataIngestionTask task,
            @JsonProperty("localDataFile")  final File localDataFile,
            @JsonProperty("recordCount")    final long recordCount
    ){
        super(OperationType.FetchProcessedData);
        this.task = task;
        this.localDataFile = localDataFile;
        this.recordCount   = recordCount;
    }

    public final DataIngestionTask getTask(){
        return this.task;
    }

    public final File getLocalDataFile(){
        return this.localDataFile;
    }

    public final long getRecordCount(){
        return this.recordCount;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy