/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.2
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.twitter.ann.faiss;

public class ClusteringIterationStats {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected ClusteringIterationStats(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(ClusteringIterationStats obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        swigfaissJNI.delete_ClusteringIterationStats(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setObj(float value) {
    swigfaissJNI.ClusteringIterationStats_obj_set(swigCPtr, this, value);
  }

  public float getObj() {
    return swigfaissJNI.ClusteringIterationStats_obj_get(swigCPtr, this);
  }

  public void setTime(double value) {
    swigfaissJNI.ClusteringIterationStats_time_set(swigCPtr, this, value);
  }

  public double getTime() {
    return swigfaissJNI.ClusteringIterationStats_time_get(swigCPtr, this);
  }

  public void setTime_search(double value) {
    swigfaissJNI.ClusteringIterationStats_time_search_set(swigCPtr, this, value);
  }

  public double getTime_search() {
    return swigfaissJNI.ClusteringIterationStats_time_search_get(swigCPtr, this);
  }

  public void setImbalance_factor(double value) {
    swigfaissJNI.ClusteringIterationStats_imbalance_factor_set(swigCPtr, this, value);
  }

  public double getImbalance_factor() {
    return swigfaissJNI.ClusteringIterationStats_imbalance_factor_get(swigCPtr, this);
  }

  public void setNsplit(int value) {
    swigfaissJNI.ClusteringIterationStats_nsplit_set(swigCPtr, this, value);
  }

  public int getNsplit() {
    return swigfaissJNI.ClusteringIterationStats_nsplit_get(swigCPtr, this);
  }

  public ClusteringIterationStats() {
    this(swigfaissJNI.new_ClusteringIterationStats(), true);
  }

}
