public static enum SourceTestUtils.ExpectedSplitOutcome extends java.lang.Enum<SourceTestUtils.ExpectedSplitOutcome>
BoundedSource.BoundedReader.splitAtFraction(double)
.Enum Constant and Description |
---|
MUST_BE_CONSISTENT_IF_SUCCEEDS
The operation must either fail, or succeed and the results be consistent.
|
MUST_FAIL
The operation must fail (return
null ). |
MUST_SUCCEED_AND_BE_CONSISTENT
The operation must succeed and the results must be consistent.
|
Modifier and Type | Method and Description |
---|---|
static SourceTestUtils.ExpectedSplitOutcome |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SourceTestUtils.ExpectedSplitOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SourceTestUtils.ExpectedSplitOutcome MUST_SUCCEED_AND_BE_CONSISTENT
public static final SourceTestUtils.ExpectedSplitOutcome MUST_FAIL
null
).public static final SourceTestUtils.ExpectedSplitOutcome MUST_BE_CONSISTENT_IF_SUCCEEDS
public static SourceTestUtils.ExpectedSplitOutcome[] values()
for (SourceTestUtils.ExpectedSplitOutcome c : SourceTestUtils.ExpectedSplitOutcome.values()) System.out.println(c);
public static SourceTestUtils.ExpectedSplitOutcome valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null