| Package | Description |
|---|---|
| eu.stratosphere.core.testing | |
| eu.stratosphere.core.testing.fuzzy |
| Modifier and Type | Method and Description |
|---|---|
TypeConfig<T> |
TypeConfig.clone() |
protected TypeConfig<T> |
GenericTestPlan.getDefaultConfig()
Returns the defaultConfig.
|
static TypeConfig<eu.stratosphere.types.Record> |
TestRecords.getRecordConfig(Class<? extends eu.stratosphere.types.Value>[] schema)
Creates the type config specific for Stratosphere
Records with the given schema. |
static TypeConfig<eu.stratosphere.types.Record> |
TestRecords.getRecordConfig(Class<? extends eu.stratosphere.types.Value> firstEntry,
Class<?>... remainingEntries)
Creates the type config specific for Stratosphere
Records with the given schema. |
TypeConfig<T> |
GenericTestRecords.getTypeConfig()
Returns the typeConfig.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
AssertUtil.assertIteratorEquals(Iterator<T> expectedIterator,
Iterator<T> actualIterator,
TypeConfig<T> config)
Asserts that two iterators generate equal series of objects.
|
static <T> void |
AssertUtil.assertIteratorEquals(String message,
Iterator<T> expectedIterator,
Iterator<T> actualIterator,
TypeConfig<T> config)
Asserts that two iterators generate equal series of objects.
|
static eu.stratosphere.api.common.operators.FileDataSink |
GenericTestPlan.createDefaultSink(String name,
TypeConfig<?> typeConfig)
Creates a default sink with the given name.
|
static eu.stratosphere.api.common.operators.FileDataSource |
GenericTestPlan.createDefaultSource(String name,
TypeConfig<?> typeConfig)
Creates a default source with the given name.
|
protected TestRecords |
TestPlan.createTestRecords(TypeConfig<eu.stratosphere.types.Record> typeConfig) |
protected abstract Records |
GenericTestPlan.createTestRecords(TypeConfig<T> typeConfig)
Creates the concrete implementation of
GenericTestRecords for this plan. |
Records |
GenericTestPlan.getActualOutput(eu.stratosphere.api.common.operators.GenericDataSink sink,
TypeConfig<T> typeConfig)
Returns the output
GenericTestRecords of the TestPlan associated with the
given sink. |
Records |
GenericTestPlan.getActualOutput(int sinkNumber,
TypeConfig<T> typeConfig)
Returns the output
GenericTestRecords of the TestPlan associated with the
ith sink.The values are only meaningful after a GenericTestPlan.run(). |
Records |
GenericTestPlan.getActualOutput(TypeConfig<T> typeConfig)
Returns the first output
GenericTestRecords of the TestPlan associated with the
given sink. |
Records |
GenericTestPlan.getExpectedOutput(eu.stratosphere.api.common.operators.GenericDataSink sink,
TypeConfig<T> typeConfig)
Returns the expected output
GenericTestRecords with the given TypeConfig of the TestPlan
associated with the given sink. |
Records |
GenericTestPlan.getExpectedOutput(int number,
TypeConfig<T> typeConfig)
Returns the expected output
GenericTestRecords associated with the
ith expected output of the TestPlan. |
Records |
GenericTestPlan.getExpectedOutput(TypeConfig<T> typeConfig)
Returns the first expected output
GenericTestRecords of the TestPlan. |
Records |
GenericTestPlan.getInput(eu.stratosphere.api.common.operators.GenericDataSource<?> source,
TypeConfig<T> typeConfig)
Returns the input
GenericTestRecords of the TestPlan associated with the
given source. |
Records |
GenericTestPlan.getInput(int number,
TypeConfig<T> typeConfig)
Returns the input
GenericTestRecords associated with the ith input
of the TestPlan. |
static Class<? extends eu.stratosphere.types.Value>[] |
TestRecords.getSchema(TypeConfig<eu.stratosphere.types.Record> config)
Returns the schema from the given config.
|
Iterator<T> |
GenericTestRecords.iterator(TypeConfig<T> typeConfig)
Retrieves an iterator over all entries sorted according to the provided
TypeConfig. |
protected void |
GenericTestPlan.setDefaultConfig(TypeConfig<T> defaultConfig)
Sets the defaultConfig to the specified value.
|
void |
GenericTestRecords.setTypeConfig(TypeConfig<T> typeConfig)
Sets the typeConfig to the specified value.
|
| Constructor and Description |
|---|
GenericTestPlan(TypeConfig<T> defaultConfig,
Collection<? extends eu.stratosphere.api.common.operators.Operator> contracts)
Initializes TestPlan with the given
Operators. |
GenericTestPlan(TypeConfig<T> defaultConfig,
eu.stratosphere.api.common.operators.Operator... contracts)
Initializes TestPlan with the given
Operators. |
GenericTestRecords(TypeConfig<T> typeConfig)
Initializes GenericTestRecords with the given
TypeConfig. |
TestRecords(TypeConfig<eu.stratosphere.types.Record> typeConfig)
Initializes TestRecords with the given type config.
|
| Modifier and Type | Method and Description |
|---|---|
double |
RecordDistance.getDistance(TypeConfig<eu.stratosphere.types.Record> typeConfig,
eu.stratosphere.types.Record expectedRecord,
eu.stratosphere.types.Record actualRecord)
Calculates the overall distance between the expected and actual record.
|
double |
TypeDistance.getDistance(TypeConfig<T> typeConfig,
T record1,
T record2) |
void |
EqualityValueMatcher.removeMatchingValues(TypeConfig<T> typeConfig,
Collection<T> expectedValues,
Collection<T> actualValues) |
void |
FuzzyValueMatcher.removeMatchingValues(TypeConfig<T> typeConfig,
Collection<T> expectedValues,
Collection<T> actualValues)
Removes all pairs of matching items from the two collections.
|
void |
NaiveFuzzyValueMatcher.removeMatchingValues(TypeConfig<T> typeConfig,
Collection<T> expectedValues,
Collection<T> actualValues) |
Copyright © 2014. All rights reserved.