Package org.apache.beam.sdk.testing
Enum Class SourceTestUtils.ExpectedSplitOutcome
java.lang.Object
java.lang.Enum<SourceTestUtils.ExpectedSplitOutcome>
org.apache.beam.sdk.testing.SourceTestUtils.ExpectedSplitOutcome
- All Implemented Interfaces:
Serializable
,Comparable<SourceTestUtils.ExpectedSplitOutcome>
,Constable
- Enclosing class:
SourceTestUtils
public static enum SourceTestUtils.ExpectedSplitOutcome
extends Enum<SourceTestUtils.ExpectedSplitOutcome>
Expected outcome of
BoundedSource.BoundedReader.splitAtFraction(double)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operation must either fail, or succeed and the results be consistent.The operation must fail (returnnull
).The operation must succeed and the results must be consistent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SourceTestUtils.ExpectedSplitOutcome[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MUST_SUCCEED_AND_BE_CONSISTENT
The operation must succeed and the results must be consistent. -
MUST_FAIL
The operation must fail (returnnull
). -
MUST_BE_CONSISTENT_IF_SUCCEEDS
The operation must either fail, or succeed and the results be consistent.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-