cascading.operation.assertion
Class AssertGroupSizeLessThan
java.lang.Object
cascading.operation.BaseOperation<C>
cascading.operation.assertion.BaseAssertion<AssertGroupBase.Context>
cascading.operation.assertion.AssertGroupBase
cascading.operation.assertion.AssertGroupSizeLessThan
- All Implemented Interfaces:
- DeclaresResults, Assertion<AssertGroupBase.Context>, GroupAssertion<AssertGroupBase.Context>, Operation<AssertGroupBase.Context>, PlannedOperation<AssertGroupBase.Context>, Serializable
public class AssertGroupSizeLessThan
- extends AssertGroupBase
Class AssertGroupSizeEquals is an GroupAssertion
that asserts the number of items in the current group
is less than the given size.
If a patternString is given, only grouping keys that match the regular expression will have this assertion applied.
Note multiple key values will be delimited by a tab character.
- See Also:
- Serialized Form
Fields inherited from interface cascading.operation.Operation |
ANY |
Constructor Summary |
AssertGroupSizeLessThan(long size)
Constructor AssertGroupSizeLessThan creates a new AssertGroupSizeLessThan instance. |
AssertGroupSizeLessThan(String patternString,
long size)
Constructor AssertGroupSizeLessThan creates a new AssertGroupSizeLessThan instance. |
AssertGroupSizeLessThan
@ConstructorProperties(value="size")
public AssertGroupSizeLessThan(long size)
- Constructor AssertGroupSizeLessThan creates a new AssertGroupSizeLessThan instance.
- Parameters:
size
- of type long
AssertGroupSizeLessThan
@ConstructorProperties(value={"patternString","size"})
public AssertGroupSizeLessThan(String patternString,
long size)
- Constructor AssertGroupSizeLessThan creates a new AssertGroupSizeLessThan instance.
- Parameters:
patternString
- of type Stringsize
- of type long
assertFails
protected boolean assertFails(Long groupSize)
- Specified by:
assertFails
in class AssertGroupBase
Copyright © 2007-2013 Concurrent, Inc. All Rights Reserved.