112 lines
2.8 KiB
Java
112 lines
2.8 KiB
Java
/* ----------------------------------------------------------------------------
|
|
* 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 HNSWStats {
|
|
private transient long swigCPtr;
|
|
protected transient boolean swigCMemOwn;
|
|
|
|
protected HNSWStats(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(HNSWStats 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_HNSWStats(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
}
|
|
|
|
public void setN1(long value) {
|
|
swigfaissJNI.HNSWStats_n1_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getN1() {
|
|
return swigfaissJNI.HNSWStats_n1_get(swigCPtr, this);
|
|
}
|
|
|
|
public void setN2(long value) {
|
|
swigfaissJNI.HNSWStats_n2_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getN2() {
|
|
return swigfaissJNI.HNSWStats_n2_get(swigCPtr, this);
|
|
}
|
|
|
|
public void setN3(long value) {
|
|
swigfaissJNI.HNSWStats_n3_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getN3() {
|
|
return swigfaissJNI.HNSWStats_n3_get(swigCPtr, this);
|
|
}
|
|
|
|
public void setNdis(long value) {
|
|
swigfaissJNI.HNSWStats_ndis_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getNdis() {
|
|
return swigfaissJNI.HNSWStats_ndis_get(swigCPtr, this);
|
|
}
|
|
|
|
public void setNreorder(long value) {
|
|
swigfaissJNI.HNSWStats_nreorder_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getNreorder() {
|
|
return swigfaissJNI.HNSWStats_nreorder_get(swigCPtr, this);
|
|
}
|
|
|
|
public HNSWStats(long n1, long n2, long n3, long ndis, long nreorder) {
|
|
this(swigfaissJNI.new_HNSWStats__SWIG_0(n1, n2, n3, ndis, nreorder), true);
|
|
}
|
|
|
|
public HNSWStats(long n1, long n2, long n3, long ndis) {
|
|
this(swigfaissJNI.new_HNSWStats__SWIG_1(n1, n2, n3, ndis), true);
|
|
}
|
|
|
|
public HNSWStats(long n1, long n2, long n3) {
|
|
this(swigfaissJNI.new_HNSWStats__SWIG_2(n1, n2, n3), true);
|
|
}
|
|
|
|
public HNSWStats(long n1, long n2) {
|
|
this(swigfaissJNI.new_HNSWStats__SWIG_3(n1, n2), true);
|
|
}
|
|
|
|
public HNSWStats(long n1) {
|
|
this(swigfaissJNI.new_HNSWStats__SWIG_4(n1), true);
|
|
}
|
|
|
|
public HNSWStats() {
|
|
this(swigfaissJNI.new_HNSWStats__SWIG_5(), true);
|
|
}
|
|
|
|
public void reset() {
|
|
swigfaissJNI.HNSWStats_reset(swigCPtr, this);
|
|
}
|
|
|
|
public void combine(HNSWStats other) {
|
|
swigfaissJNI.HNSWStats_combine(swigCPtr, this, HNSWStats.getCPtr(other), other);
|
|
}
|
|
|
|
}
|