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

com._4paradigm.openmldb.sql_router_sdk 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 sql_router_sdk {
  public static SQLRouter NewClusterSQLRouter(SQLRouterOptions options) {
    long cPtr = sql_router_sdkJNI.NewClusterSQLRouter(SQLRouterOptions.getCPtr(options), options);
    return (cPtr == 0) ? null : new SQLRouter(cPtr, true);
  }

  public static SQLRouter NewStandaloneSQLRouter(StandaloneOptions options) {
    long cPtr = sql_router_sdkJNI.NewStandaloneSQLRouter(StandaloneOptions.getCPtr(options), options);
    return (cPtr == 0) ? null : new SQLRouter(cPtr, true);
  }

  public static VectorString GenDDL(String sql, TableColumnDescPairVector schemas) {
    return new VectorString(sql_router_sdkJNI.GenDDL(sql, TableColumnDescPairVector.getCPtr(schemas), schemas), true);
  }

  public static Schema GenOutputSchema(String sql, String db, DBTableColumnDescPairVector schemas) {
    long cPtr = sql_router_sdkJNI.GenOutputSchema(sql, db, DBTableColumnDescPairVector.getCPtr(schemas), schemas);
    return (cPtr == 0) ? null : new Schema(cPtr, true);
  }

  public static VectorString ValidateSQLInBatch(String sql, String db, DBTableColumnDescPairVector schemas) {
    return new VectorString(sql_router_sdkJNI.ValidateSQLInBatch(sql, db, DBTableColumnDescPairVector.getCPtr(schemas), schemas), true);
  }

  public static VectorString ValidateSQLInRequest(String sql, String db, DBTableColumnDescPairVector schemas) {
    return new VectorString(sql_router_sdkJNI.ValidateSQLInRequest(sql, db, DBTableColumnDescPairVector.getCPtr(schemas), schemas), true);
  }

  public static DBTableVector GetDependentTables(String sql, String db, DBTableColumnDescPairVector schemas) {
    return new DBTableVector(sql_router_sdkJNI.GetDependentTables(sql, db, DBTableColumnDescPairVector.getCPtr(schemas), schemas), true);
  }

  public static String DataTypeName(DataType type) {
    return sql_router_sdkJNI.DataTypeName(type.swigValue());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy