com._4paradigm.openmldb.TableReader 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 TableReader {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected TableReader(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(TableReader 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_TableReader(swigCPtr);
}
swigCPtr = 0;
}
}
public ResultSet Scan(String db, String table, String key, long st, long et, ScanOption so, Status status) {
long cPtr = sql_router_sdkJNI.TableReader_Scan(swigCPtr, this, db, table, key, st, et, ScanOption.getCPtr(so), so, Status.getCPtr(status), status);
return (cPtr == 0) ? null : new ResultSet(cPtr, true);
}
public SWIGTYPE_p_std__shared_ptrT_openmldb__sdk__ScanFuture_t AsyncScan(String db, String table, String key, long st, long et, ScanOption so, long timeout_ms, Status status) {
return new SWIGTYPE_p_std__shared_ptrT_openmldb__sdk__ScanFuture_t(sql_router_sdkJNI.TableReader_AsyncScan(swigCPtr, this, db, table, key, st, et, ScanOption.getCPtr(so), so, timeout_ms, Status.getCPtr(status), status), true);
}
}