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

net.snowflake.ingest.connection.IngestResponse Maven / Gradle / Ivy

There is a newer version: 3.0.1
Show newest version
/*
 * Copyright (c) 2012-2017 Snowflake Computing Inc. All rights reserved.
 */

package net.snowflake.ingest.connection;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
import java.util.UUID;

/**
 * IngestResponse - an object which contains a successful response from the service for the insert
 * request
 *
 * @author obabarinsa
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class IngestResponse {
  // the requestId given to us by the user
  private String requestId;

  // response from the API
  private String responseCode;

  // the files that were skipped
  private List skippedFiles;

  // the files that did not match the pipe's pattern
  private List unmatchedPatternFiles;

  @Override
  public String toString() {
    return "IngestResponse{"
        + "requestId='"
        + requestId
        + '\''
        + ", responseCode='"
        + responseCode
        + '\''
        + ", skippedFiles='"
        + skippedFiles
        + '\''
        + ", unmatchedPatternFiles='"
        + unmatchedPatternFiles
        + '\''
        + '}';
  }

  /**
   * getRequestUUID - the requestId as a UUID
   *
   * @return UUID version of the requestId
   */
  public UUID getRequestUUID() {
    return UUID.fromString(requestId);
  }

  public String getRequestId() {
    return requestId;
  }

  public List getSkippedFiles() {
    return skippedFiles;
  }

  public List getUnmatchedPatternFiles() {
    return unmatchedPatternFiles;
  }

  public String getResponseCode() {
    return responseCode;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy