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

tech.mlsql.plugins.sql.profiler.ProfilerApp.scala Maven / Gradle / Ivy

The newest version!
package tech.mlsql.plugins.sql.profiler

import tech.mlsql.dsl.CommandCollection
import tech.mlsql.ets.register.ETRegister
import tech.mlsql.runtime.AppRuntimeStore
import tech.mlsql.version.VersionCompatibility

/**
 * 27/3/2020 WilliamZhu([email protected])
 */
class ProfilerApp extends tech.mlsql.app.App with VersionCompatibility {
  override def run(args: Seq[String]): Unit = {
    AppRuntimeStore.store.registerController("genSQL", classOf[GenSQLController].getName)
    AppRuntimeStore.store.registerController("indexRewrite", classOf[IndexerRewriteController].getName)
    ETRegister.register(ProfilerApp.MODULE_NAME, classOf[ProfilerCommand].getName)
    ETRegister.register("ZOrdering", classOf[ZOrdering].getName)
    CommandCollection.refreshCommandMapping(Map(ProfilerApp.COMMAND_NAME -> ProfilerApp.MODULE_NAME))
    AppRuntimeStore.store.registerResultRender("IndexerPlugin", classOf[IndexerPlugin].getName)
  }

  override def supportedVersions: Seq[String] = Seq("1.5.0-SNAPSHOT", "1.5.0", "1.6.0-SNAPSHOT", "1.6.0")
}

object ProfilerApp {
  val MODULE_NAME = "ProfilerCommand"
  val COMMAND_NAME = "profiler"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy