public class AssertSizeEquals extends BaseAssertion implements ValueAssertion
Tuple
in the stream is exactly the given size.
On evaluation, Tuple.size()
is called (note Tuples may hold null
values).
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
AssertSizeEquals(int size)
Constructor AssertSizeEquals creates a new AssertSizeEquals instance.
|
Modifier and Type | Method and Description |
---|---|
void |
doAssert(FlowProcess flowProcess,
ValueAssertionCall assertionCall)
Method doAssert performs the assertion.
|
boolean |
equals(java.lang.Object object) |
int |
getSize() |
int |
hashCode() |
fail, fail, getMessage, supportsPlannerLevel, throwFail, throwFail
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, prepare, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
supportsPlannerLevel
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe, prepare
@ConstructorProperties(value="size") public AssertSizeEquals(int size)
size
- of type intpublic int getSize()
public void doAssert(FlowProcess flowProcess, ValueAssertionCall assertionCall)
ValueAssertion
doAssert
in interface ValueAssertion
flowProcess
- of type FlowProcessassertionCall
- of type ValueAssertionCallpublic boolean equals(java.lang.Object object)
equals
in class BaseAssertion
public int hashCode()
hashCode
in class BaseAssertion
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.