com._4paradigm.openmldb.Schema 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 Schema {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected Schema(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Schema 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_Schema(swigCPtr);
}
swigCPtr = 0;
}
}
public Schema() {
this(sql_router_sdkJNI.new_Schema(), true);
}
public int GetColumnCnt() {
return sql_router_sdkJNI.Schema_GetColumnCnt(swigCPtr, this);
}
public String GetColumnName(long index) {
return sql_router_sdkJNI.Schema_GetColumnName(swigCPtr, this, index);
}
public DataType GetColumnType(long index) {
return DataType.swigToEnum(sql_router_sdkJNI.Schema_GetColumnType(swigCPtr, this, index));
}
public boolean IsColumnNotNull(long index) {
return sql_router_sdkJNI.Schema_IsColumnNotNull(swigCPtr, this, index);
}
public boolean IsConstant(long index) {
return sql_router_sdkJNI.Schema_IsConstant(swigCPtr, this, index);
}
}