public static class TestHiveServer.ConstructHiveContextStatement
extends org.junit.runners.model.Statement
Constructor and Description |
---|
ConstructHiveContextStatement(org.junit.runners.model.Statement wrappedStatement)
Wraps a given Statement
This Statement constructs the all important HiveContext, then evaluates the wrapped Statement
|
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Constructs the all important HiveContext, then evaluates the wrapped Statement
Currently, the HiveContext is made as a singleton
|
org.apache.spark.sql.hive.HiveContext |
getHiveContext()
Provides access to the HiveContext produced by this Statement
|
public ConstructHiveContextStatement(org.junit.runners.model.Statement wrappedStatement)
wrappedStatement
- the statement to wrap, which will be evaluated after the HiveContext is madepublic void evaluate() throws Throwable
evaluate
in class org.junit.runners.model.Statement
Throwable
- as required by the Statement classpublic org.apache.spark.sql.hive.HiveContext getHiveContext()
Copyright © 2016. All rights reserved.