com._4paradigm.openmldb.ColumnIndicesSet Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com._4paradigm.openmldb;
public class ColumnIndicesSet {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected ColumnIndicesSet(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ColumnIndicesSet obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwn = own;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
sql_router_sdkJNI.delete_ColumnIndicesSet(swigCPtr);
}
swigCPtr = 0;
}
}
public ColumnIndicesSet() {
this(sql_router_sdkJNI.new_ColumnIndicesSet__SWIG_0(), true);
}
public ColumnIndicesSet(Schema schema) {
this(sql_router_sdkJNI.new_ColumnIndicesSet__SWIG_1(Schema.getCPtr(schema), schema), true);
}
public boolean Empty() {
return sql_router_sdkJNI.ColumnIndicesSet_Empty(swigCPtr, this);
}
public void AddCommonColumnIdx(long idx) {
sql_router_sdkJNI.ColumnIndicesSet_AddCommonColumnIdx(swigCPtr, this, idx);
}
}