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

ai.platon.pulsar.ql.AbstractSQLSession.kt Maven / Gradle / Ivy

There is a newer version: 1.13.2
Show newest version
package ai.platon.pulsar.ql

import ai.platon.pulsar.skeleton.session.AbstractPulsarSession
import ai.platon.pulsar.skeleton.context.support.AbstractPulsarContext
import ai.platon.pulsar.persist.WebPage
import ai.platon.pulsar.ql.common.types.ValueDom
import kotlin.reflect.KClass

abstract class AbstractSQLSession(
    context: AbstractPulsarContext,
    override val sessionDelegate: SessionDelegate,
    config: SessionConfig
) : AbstractPulsarSession(context, config, sessionDelegate.id), SQLSession {

    override val udfClassSamples: MutableSet> = mutableSetOf()

    override val registeredAllUdfClasses: MutableSet> = mutableSetOf()

    override fun parseValueDom(page: WebPage) = ValueDom.get(parse(page))

    override fun execute(sql: String) = sqlContext.execute(sql)

    override fun executeQuery(sql: String) = sqlContext.executeQuery(sql)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy