cascading.operation.assertion
Class AssertSizeLessThan
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.assertion.BaseAssertion
cascading.operation.assertion.AssertSizeLessThan
- All Implemented Interfaces:
- Assertion, Operation, ValueAssertion, Serializable
public class AssertSizeLessThan
- extends BaseAssertion
- implements ValueAssertion
Class AssertSizeLessThan asserts that the current Tuple in the stream has a size less 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 |
AssertSizeLessThan(int size)
Constructor AssertSizeLessThan creates a new AssertSizeLessThan instance. |
AssertSizeLessThan
public AssertSizeLessThan(int size)
- Constructor AssertSizeLessThan creates a new AssertSizeLessThan instance.
- Parameters:
size - of type int
doAssert
public void doAssert(FlowProcess flowProcess,
ValueAssertionCall assertionCall)
- Description copied from interface:
ValueAssertion
- Method doAssert performs the assertion.
- Specified by:
doAssert in interface ValueAssertion
- See Also:
ValueAssertion.doAssert(cascading.flow.FlowProcess,cascading.operation.ValueAssertionCall)
Copyright © 2007-2008 Concurrent, Inc. All Rights Reserved.