All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com._4paradigm.openmldb.DefaultValueContainer Maven / Gradle / Ivy

There is a newer version: 0.9.2-macos
Show newest version
/* ----------------------------------------------------------------------------
 * 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 DefaultValueContainer {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

  protected DefaultValueContainer(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(DefaultValueContainer 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_DefaultValueContainer(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public DefaultValueContainer(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) {
    this(sql_router_sdkJNI.new_DefaultValueContainer(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)), true);
  }

  public VectorUint32 GetAllPosition() {
    return new VectorUint32(sql_router_sdkJNI.DefaultValueContainer_GetAllPosition(swigCPtr, this), true);
  }

  public boolean IsValid(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_IsValid(swigCPtr, this, idx);
  }

  public int Size() {
    return sql_router_sdkJNI.DefaultValueContainer_Size(swigCPtr, this);
  }

  public boolean IsNull(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_IsNull(swigCPtr, this, idx);
  }

  public boolean GetBool(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetBool(swigCPtr, this, idx);
  }

  public short GetSmallInt(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetSmallInt(swigCPtr, this, idx);
  }

  public int GetInt(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetInt(swigCPtr, this, idx);
  }

  public long GetBigInt(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetBigInt(swigCPtr, this, idx);
  }

  public float GetFloat(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetFloat(swigCPtr, this, idx);
  }

  public double GetDouble(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetDouble(swigCPtr, this, idx);
  }

  public int GetDate(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetDate(swigCPtr, this, idx);
  }

  public long GetTimeStamp(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetTimeStamp(swigCPtr, this, idx);
  }

  public String GetString(int idx) {
    return sql_router_sdkJNI.DefaultValueContainer_GetString(swigCPtr, this, idx);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy