com._4paradigm.openmldb.ColumnDescPair 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 ColumnDescPair {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ColumnDescPair(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ColumnDescPair 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_ColumnDescPair(swigCPtr);
}
swigCPtr = 0;
}
}
public ColumnDescPair() {
this(sql_router_sdkJNI.new_ColumnDescPair__SWIG_0(), true);
}
public ColumnDescPair(String first, DataType second) {
this(sql_router_sdkJNI.new_ColumnDescPair__SWIG_1(first, second.swigValue()), true);
}
public ColumnDescPair(ColumnDescPair other) {
this(sql_router_sdkJNI.new_ColumnDescPair__SWIG_2(ColumnDescPair.getCPtr(other), other), true);
}
public void setFirst(String value) {
sql_router_sdkJNI.ColumnDescPair_first_set(swigCPtr, this, value);
}
public String getFirst() {
return sql_router_sdkJNI.ColumnDescPair_first_get(swigCPtr, this);
}
public void setSecond(DataType value) {
sql_router_sdkJNI.ColumnDescPair_second_set(swigCPtr, this, value.swigValue());
}
public DataType getSecond() {
return DataType.swigToEnum(sql_router_sdkJNI.ColumnDescPair_second_get(swigCPtr, this));
}
}