com._4paradigm.openmldb.ScanFuture 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 ScanFuture {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected ScanFuture(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ScanFuture 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_ScanFuture(swigCPtr);
}
swigCPtr = 0;
}
}
public ResultSet GetResultSet(Status status) {
long cPtr = sql_router_sdkJNI.ScanFuture_GetResultSet(swigCPtr, this, Status.getCPtr(status), status);
return (cPtr == 0) ? null : new ResultSet(cPtr, true);
}
public boolean IsDone() {
return sql_router_sdkJNI.ScanFuture_IsDone(swigCPtr, this);
}
}