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

com.dropchop.textonic.model.dto.doc.output.result.AnalysisStats Maven / Gradle / Ivy

package com.dropchop.textonic.model.dto.doc.output.result;

import com.dropchop.recyclone.base.api.model.base.Dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import org.eclipse.microprofile.openapi.annotations.media.Schema;

import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;

/**
 * @author Nikola Ivačič  on 5. 10. 22.
 */
@Getter
@Setter
@NoArgsConstructor
@RequiredArgsConstructor
@JsonInclude(NON_NULL)
public class AnalysisStats implements Dto {
  @JsonProperty("c")
  @Schema(
    description = "String code identifier composed from ModelStep, ML Engine code, ML Model code separated with column."
  )
  @NonNull
  private String semCode;

  @JsonProperty("cms")
  @Schema(
    description = "Raw computation time excluding trafficking, serialization, preprocessing, ... etc."
  )
  private long computeMs;

  @JsonProperty("tms")
  @Schema(
    description = "Total time taken for a given step."
  )
  private long totalMs;

  public AnalysisStats semCode(String semCode) {
    this.semCode = semCode;
    return this;
  }

  public AnalysisStats computeMs(long computeMs) {
    this.computeMs = computeMs;
    return this;
  }

  public AnalysisStats totalMs(long totalMs) {
    this.totalMs = totalMs;
    return this;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy