cascading.operation.assertion
Class AssertSizeMoreThan
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.assertion.BaseAssertion
cascading.operation.assertion.AssertSizeMoreThan
- All Implemented Interfaces:
- DeclaresResults, Assertion, Operation, PlannedOperation, ValueAssertion, Traceable, Serializable
public class AssertSizeMoreThan
- extends BaseAssertion
- implements ValueAssertion
Class AssertSizeMoreThan asserts that the current Tuple
in the stream has a size more than (>) the given size.
On evaluation, Tuple.size()
is called (note Tuples may hold null
values).
- See Also:
- Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
AssertSizeMoreThan(int size)
Constructor AssertSizeMoreThan creates a new AssertSizeMoreThan instance. |
AssertSizeMoreThan
@ConstructorProperties(value="size")
public AssertSizeMoreThan(int size)
- Constructor AssertSizeMoreThan creates a new AssertSizeMoreThan instance.
- Parameters:
size
- of type int
getSize
public int getSize()
doAssert
public void doAssert(FlowProcess flowProcess,
ValueAssertionCall assertionCall)
- Description copied from interface:
ValueAssertion
- Method doAssert performs the assertion.
- Specified by:
doAssert
in interface ValueAssertion
- Parameters:
flowProcess
- of type FlowProcessassertionCall
- of type ValueAssertionCall
equals
public boolean equals(Object object)
- Overrides:
equals
in class BaseAssertion
hashCode
public int hashCode()
- Overrides:
hashCode
in class BaseAssertion
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.