com._4paradigm.openmldb.Condition 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 Condition {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected Condition(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Condition obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
sql_router_sdkJNI.delete_Condition(swigCPtr);
}
swigCPtr = 0;
}
}
public Condition(String name, SWIGTYPE_p_hybridse__node__FnOperator con, SWIGTYPE_p_std__optionalT_std__string_t v, SWIGTYPE_p_openmldb__type__DataType type) {
this(sql_router_sdkJNI.new_Condition(name, SWIGTYPE_p_hybridse__node__FnOperator.getCPtr(con), SWIGTYPE_p_std__optionalT_std__string_t.getCPtr(v), SWIGTYPE_p_openmldb__type__DataType.getCPtr(type)), true);
}
public void setCol_name(String value) {
sql_router_sdkJNI.Condition_col_name_set(swigCPtr, this, value);
}
public String getCol_name() {
return sql_router_sdkJNI.Condition_col_name_get(swigCPtr, this);
}
public void setOp(SWIGTYPE_p_hybridse__node__FnOperator value) {
sql_router_sdkJNI.Condition_op_set(swigCPtr, this, SWIGTYPE_p_hybridse__node__FnOperator.getCPtr(value));
}
public SWIGTYPE_p_hybridse__node__FnOperator getOp() {
return new SWIGTYPE_p_hybridse__node__FnOperator(sql_router_sdkJNI.Condition_op_get(swigCPtr, this), true);
}
public void setVal(SWIGTYPE_p_std__optionalT_std__string_t value) {
sql_router_sdkJNI.Condition_val_set(swigCPtr, this, SWIGTYPE_p_std__optionalT_std__string_t.getCPtr(value));
}
public SWIGTYPE_p_std__optionalT_std__string_t getVal() {
long cPtr = sql_router_sdkJNI.Condition_val_get(swigCPtr, this);
return (cPtr == 0) ? null : new SWIGTYPE_p_std__optionalT_std__string_t(cPtr, false);
}
public void setData_type(SWIGTYPE_p_openmldb__type__DataType value) {
sql_router_sdkJNI.Condition_data_type_set(swigCPtr, this, SWIGTYPE_p_openmldb__type__DataType.getCPtr(value));
}
public SWIGTYPE_p_openmldb__type__DataType getData_type() {
return new SWIGTYPE_p_openmldb__type__DataType(sql_router_sdkJNI.Condition_data_type_get(swigCPtr, this), true);
}
}