72 lines
1.8 KiB
Java
72 lines
1.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 IndexPQStats {
|
|
private transient long swigCPtr;
|
|
protected transient boolean swigCMemOwn;
|
|
|
|
protected IndexPQStats(long cPtr, boolean cMemoryOwn) {
|
|
swigCMemOwn = cMemoryOwn;
|
|
swigCPtr = cPtr;
|
|
}
|
|
|
|
protected static long getCPtr(IndexPQStats 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_IndexPQStats(swigCPtr);
|
|
}
|
|
swigCPtr = 0;
|
|
}
|
|
}
|
|
|
|
public void setNq(long value) {
|
|
swigfaissJNI.IndexPQStats_nq_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getNq() {
|
|
return swigfaissJNI.IndexPQStats_nq_get(swigCPtr, this);
|
|
}
|
|
|
|
public void setNcode(long value) {
|
|
swigfaissJNI.IndexPQStats_ncode_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getNcode() {
|
|
return swigfaissJNI.IndexPQStats_ncode_get(swigCPtr, this);
|
|
}
|
|
|
|
public void setN_hamming_pass(long value) {
|
|
swigfaissJNI.IndexPQStats_n_hamming_pass_set(swigCPtr, this, value);
|
|
}
|
|
|
|
public long getN_hamming_pass() {
|
|
return swigfaissJNI.IndexPQStats_n_hamming_pass_get(swigCPtr, this);
|
|
}
|
|
|
|
public IndexPQStats() {
|
|
this(swigfaissJNI.new_IndexPQStats(), true);
|
|
}
|
|
|
|
public void reset() {
|
|
swigfaissJNI.IndexPQStats_reset(swigCPtr, this);
|
|
}
|
|
|
|
}
|