- java.lang.Object
-
- com.pervasive.datarush.operators.OperatorTestHelper
-
public final class OperatorTestHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description OperatorTestHelper(Class<?> relativeTo, String testName)
-
Method Summary
-
-
-
Method Detail
-
setBatchSize
public OperatorTestHelper setBatchSize(int batchSize)
-
setOutputNameBase
public void setOutputNameBase(String name)
-
getParallelism
public int getParallelism()
-
setParallelism
public void setParallelism(int parallelism)
-
enableCluster
public void enableCluster(int parallelism)
-
enableStatsDump
public void enableStatsDump()
-
createTestConfig
public final EngineConfig createTestConfig()
-
assertTokenCount
public static final void assertTokenCount(LogicalGraphInstance instance, LogicalPort inputPort, long value)
-
getMismatchFilter
public Assertions.MismatchFilter getMismatchFilter()
-
setMismatchFilter
public void setMismatchFilter(Assertions.MismatchFilter filter)
-
compile
public final LogicalGraphInstance compile(LogicalGraph graph)
-
run
public final LogicalGraphInstance run(LogicalGraph graph)
-
testLocalOutput
public final LogicalGraphInstance testLocalOutput(LogicalGraph graph, RecordPort port)
-
localOutput
public DumpPartitions localOutput(OperatorComposable graph, RecordPort port, boolean sort)
-
localExpectedPath
public String localExpectedPath()
-
testLocalOutput
public final LogicalGraphInstance testLocalOutput(LogicalGraph graph, RecordPort port, boolean sort)
-
testDistributedOutput
public final LogicalGraphInstance testDistributedOutput(LogicalGraph graph, RecordPort port)
-
distributedOutput
public DumpPartitions distributedOutput(OperatorComposable graph, RecordPort port, boolean sort)
-
distributedExpectedPath
public String distributedExpectedPath()
-
testDistributedOutput
public final LogicalGraphInstance testDistributedOutput(LogicalGraph graph, RecordPort port, boolean sort)
-
assertDirectoriesEqual
public final void assertDirectoriesEqual(String expectedPath, String actualPath)
-
assertDirectoriesEqual
public final void assertDirectoriesEqual(File expectedPath, File actualPath)
-
negativeCompile
public final void negativeCompile(LogicalGraph graph)
-
negativeRun
public final void negativeRun(LogicalGraph graph) throws Exception
- Throws:
Exception
-
-