| Constructor and Description |
|---|
MultiExpressionScript(TextResource expressionResource)
Constructs a MultiExpressionScript
|
| Modifier and Type | Method and Description |
|---|---|
void |
runScript(org.apache.spark.sql.hive.HiveContext hqlContext)
Splits the bundled hql script into multiple expressions using ScriptSlitter utility class
Each expression is run on the provided HiveContext
|
org.apache.spark.sql.Row[] |
runScriptReturnResults(org.apache.spark.sql.hive.HiveContext hqlContext)
Splits the bundled hql script into multiple expressions using ScriptSlitter utility class
Each expression is run on the provided HiveContext
|
public MultiExpressionScript(TextResource expressionResource)
expressionResource - a TextResource containing an hql script for MultiExpressionScript to runpublic void runScript(org.apache.spark.sql.hive.HiveContext hqlContext)
public org.apache.spark.sql.Row[] runScriptReturnResults(org.apache.spark.sql.hive.HiveContext hqlContext)
runScriptReturnResults in interface HqlScripthqlContext - an HqlContext, as provided by spark through the TestHiveServer TestRule, used to run hql expressionsCopyright © 2016. All rights reserved.