Class BeamSqlCli
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.BeamSqlCli
-
@Internal public class BeamSqlCli extends java.lang.ObjectBeamSqlCliprovides methods to execute Beam SQL with an interactive client.
-
-
Constructor Summary
Constructors Constructor Description BeamSqlCli()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeamSqlClibuild(BeamSqlEnv.BeamSqlEnvBuilder builder, boolean autoLoadUdfUdaf, org.apache.beam.sdk.options.PipelineOptions pipelineOptions)BeamSqlClicatalogManager(CatalogManager catalogManager)voidexecute(java.lang.String sqlString)Executes the given sql.java.lang.StringexplainQuery(java.lang.String sqlString)Returns a human readable representation of the query execution plan.MetaStoregetMetaStore()BeamSqlClimetaStore(MetaStore metaStore)
-
-
-
Method Detail
-
catalogManager
public BeamSqlCli catalogManager(CatalogManager catalogManager)
-
metaStore
public BeamSqlCli metaStore(MetaStore metaStore)
-
build
public BeamSqlCli build(BeamSqlEnv.BeamSqlEnvBuilder builder, boolean autoLoadUdfUdaf, org.apache.beam.sdk.options.PipelineOptions pipelineOptions)
-
getMetaStore
public MetaStore getMetaStore()
-
explainQuery
public java.lang.String explainQuery(java.lang.String sqlString) throws ParseExceptionReturns a human readable representation of the query execution plan.- Throws:
ParseException
-
execute
public void execute(java.lang.String sqlString) throws ParseExceptionExecutes the given sql.- Throws:
ParseException
-
-