com._4paradigm.openmldb.SQLInsertRows 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 SQLInsertRows {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected SQLInsertRows(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SQLInsertRows 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_SQLInsertRows(swigCPtr);
}
swigCPtr = 0;
}
}
public SQLInsertRows(SWIGTYPE_p_std__shared_ptrT_openmldb__nameserver__TableInfo_t table_info, Schema schema, SWIGTYPE_p_std__shared_ptrT_std__mapT_unsigned_int_std__shared_ptrT_hybridse__node__ConstNode_t_std__lessT_unsigned_int_t_t_t default_map, long str_size, VectorUint32 hole_idx_arr, boolean put_if_absent) {
this(sql_router_sdkJNI.new_SQLInsertRows(SWIGTYPE_p_std__shared_ptrT_openmldb__nameserver__TableInfo_t.getCPtr(table_info), Schema.getCPtr(schema), schema, SWIGTYPE_p_std__shared_ptrT_std__mapT_unsigned_int_std__shared_ptrT_hybridse__node__ConstNode_t_std__lessT_unsigned_int_t_t_t.getCPtr(default_map), str_size, VectorUint32.getCPtr(hole_idx_arr), hole_idx_arr, put_if_absent), true);
}
public SQLInsertRow NewRow() {
long cPtr = sql_router_sdkJNI.SQLInsertRows_NewRow(swigCPtr, this);
return (cPtr == 0) ? null : new SQLInsertRow(cPtr, true);
}
public long GetCnt() {
return sql_router_sdkJNI.SQLInsertRows_GetCnt(swigCPtr, this);
}
public SQLInsertRow GetRow(long i) {
long cPtr = sql_router_sdkJNI.SQLInsertRows_GetRow(swigCPtr, this, i);
return (cPtr == 0) ? null : new SQLInsertRow(cPtr, true);
}
public Schema GetSchema() {
long cPtr = sql_router_sdkJNI.SQLInsertRows_GetSchema(swigCPtr, this);
return (cPtr == 0) ? null : new Schema(cPtr, true);
}
public VectorUint32 GetHoleIdx() {
return new VectorUint32(sql_router_sdkJNI.SQLInsertRows_GetHoleIdx(swigCPtr, this), true);
}
}