Package | Description |
---|---|
org.finra.hqlunit | |
org.finra.hqlunit.resources | |
org.finra.hqlunit.resources.manipulation | |
org.finra.hqlunit.rules | |
org.finra.hqlunit.script |
Modifier and Type | Method and Description |
---|---|
static void |
HqlUnitTest.createTable(TextResource tableDDL) |
static void |
HqlUnitTest.diffActualAndExpected(TextResource diffScript) |
static void |
HqlUnitTest.diffActualAndExpected(TextResource diffScript,
TextResource tearDownScript) |
static void |
HqlUnitTest.loadTableData(String tableName,
TextResource tableData) |
static void |
HqlUnitTest.loadTableData(String tableName,
TextResource tableData,
String partitionInfo) |
static void |
HqlUnitTest.runScript(TextResource script) |
Modifier and Type | Class and Description |
---|---|
class |
InputStreamResource
Provides an abstract TextResource for building TextResource classes that access InputStream accessible resources
InputStreamResource handles the utility of reading out the content of an InputStream into a String
Child classes provide the InputStream to read from
|
class |
LocalFileResource
Handles access to text resources contained in files on the local file system
|
class |
ResourceFolderResource
Jars can have files packaged into the resources folder of the jar
This TextResource handles access to said resource folder files
|
class |
TextLiteralResource
The most basic TextResource - wraps text literals or Java strings as a TextResource
|
Modifier and Type | Class and Description |
---|---|
class |
Dos2UnixResource
A decorative TextResource which can wrap any TextResource
Replaces \r\n line endings in the wrapped TextResource with \n line endings
The wrapped resource is not actually altered, it only looks different to calling code
|
class |
SubstituteVariableResource
A decorative TextResource which can wrap any TextResource
Substitutes variables in a TextResources content represented by ${variableName} with a desired value
Replaces all such instances of ${variableName} with the desired value
The wrapped resource is not actually altered, it only looks different to calling code
|
Constructor and Description |
---|
Dos2UnixResource(TextResource baseResource)
Constructs a TextResource that disguises Windows line endings in a wrapped resource with Unix line endings
|
SubstituteVariableResource(String variableName,
String replacementValue,
TextResource baseResource)
Constructs a TextResource that substitutes variables with values in a wrapped TextResource
|
Modifier and Type | Method and Description |
---|---|
void |
TestDataLoader.loadDataIntoTable(String tableName,
TextResource tableDataResource)
Loads data from a TextResource into a hive table
A temporary file on the local file system is used as a staging ground for the data
|
void |
TestDataLoader.loadDataIntoTable(String tableName,
TextResource tableDataResource,
String partitionInfo)
Loads data from a TextResource into a hive table
A temporary file on the local file system is used as a staging ground for the data
|
Constructor and Description |
---|
MultiExpressionScript(TextResource expressionResource)
Constructs a MultiExpressionScript
|
SingleExpressionScript(TextResource expressionResource)
Constructs a SingleExpressionScript
The provided hql script will be run as a single expression with no pre-processing
|
Copyright © 2016. All rights reserved.