Constructor and Description |
---|
SingleExpressionScript(TextResource expressionResource)
Constructs a SingleExpressionScript
The provided hql script will be run as a single expression with no pre-processing
|
Modifier and Type | Method and Description |
---|---|
void |
runScript(org.apache.spark.sql.hive.HiveContext hqlContext)
Runs the hql contained in the constructor given TextResource, treating it as a single expression with no comments
|
org.apache.spark.sql.Row[] |
runScriptReturnResults(org.apache.spark.sql.hive.HiveContext hqlContext)
Runs the hql contained in the constructor given TextResource, treating it as a single expression with no comments
|
public SingleExpressionScript(TextResource expressionResource)
expressionResource
- a TextResource, properly containing one hql expression with no comments or suchpublic 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 HqlScript
hqlContext
- an HqlContext, as provided by spark through the TestHiveServer TestRule, used to run hql expressionsCopyright © 2016. All rights reserved.