public class AssertGroupSizeEquals extends AssertGroupBase
GroupAssertion
that asserts the number of items in the current group
is equal 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.
AssertGroupBase.Context
patternString, size
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
AssertGroupSizeEquals(long size)
Constructor AssertGroupSizeEquals creates a new AssertGroupSizeEquals instance.
|
AssertGroupSizeEquals(java.lang.String patternString,
long size)
Constructor AssertGroupSizeEquals creates a new AssertGroupSizeEquals instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
assertFails(java.lang.Long groupSize) |
long |
getSize() |
aggregate, doAssert, equals, getPatternString, hashCode, prepare, start
fail, fail, getMessage, supportsPlannerLevel, throwFail, throwFail
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
supportsPlannerLevel
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="size") public AssertGroupSizeEquals(long size)
size
- of type long@ConstructorProperties(value={"patternString","size"}) public AssertGroupSizeEquals(java.lang.String patternString, long size)
patternString
- of type Stringsize
- of type longpublic long getSize()
getSize
in class AssertGroupBase
protected boolean assertFails(java.lang.Long groupSize)
assertFails
in class AssertGroupBase
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.