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

com.twitter.ambrose.pig.InputInfo Maven / Gradle / Ivy

package com.twitter.ambrose.pig;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Class that represents information about a data input to a job.
 */
public class InputInfo {
  private String name;
  private String location;
  private long numberBytes;
  private long numberRecords;
  private boolean successful;
  private String inputType;

  @JsonCreator
  public InputInfo(@JsonProperty("name") String name,
                   @JsonProperty("location") String location,
                   @JsonProperty("numberBytes") long numberBytes,
                   @JsonProperty("numberRecords") long numberRecords,
                   @JsonProperty("successful") boolean successful,
                   @JsonProperty("inputType") String inputType) {
    this.name = name;
    this.location = location;
    this.numberBytes = numberBytes;
    this.numberRecords = numberRecords;
    this.successful = successful;
    this.inputType = inputType;
  }

  public String getName() { return name; }
  public String getLocation() { return location; }
  public long getNumberBytes() { return numberBytes; }
  public long getNumberRecords() { return numberRecords; }
  public boolean isSuccessful() { return successful; }
  public String getInputType() { return inputType; }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy