public enum AssignerStatus extends Enum<AssignerStatus>
INITIAL_ASSIGNING(start)
|
|
onFinish()
|
↓
INITIAL_ASSIGNING_FINISHED(end)
|
|
suspend() // found newly added tables
|
↓
SUSPENDED --- wakeup() --→ NEWLY_ADDED_ASSIGNING --- onFinish() --→ NEWLY_ADDED_ASSIGNING_FINISHED(end)
↑ |
| |
|----------------- suspend() //found newly added tables -----------|
| Enum Constant and Description |
|---|
INITIAL_ASSIGNING |
INITIAL_ASSIGNING_FINISHED |
NEWLY_ADDED_ASSIGNING |
NEWLY_ADDED_ASSIGNING_FINISHED |
SUSPENDED |
| Modifier and Type | Method and Description |
|---|---|
static AssignerStatus |
fromStatusCode(int statusCode)
Gets the
AssignerStatus from status code. |
abstract AssignerStatus |
getNextStatus() |
int |
getStatusCode() |
static boolean |
isAssigning(AssignerStatus assignerStatus)
Returns whether the split assigner is assigning snapshot splits.
|
static boolean |
isAssigningFinished(AssignerStatus assignerStatus)
Returns whether the split assigner has assigned all snapshot splits, which indicates there is
no more splits and all records of splits have been completely processed in the pipeline.
|
static boolean |
isInitialAssigningFinished(AssignerStatus assignerStatus)
Returns whether the split assigner has finished its initial tables assignment.
|
static boolean |
isNewlyAddedAssigning(AssignerStatus assignerStatus)
Returns whether the split assigner is assigning newly added snapshot splits.
|
static boolean |
isNewlyAddedAssigningFinished(AssignerStatus assignerStatus)
Returns whether the split assigner has finished its newly added tables assignment.
|
static boolean |
isSuspended(AssignerStatus assignerStatus)
Returns whether the split assigner state is suspended.
|
AssignerStatus |
onFinish() |
AssignerStatus |
suspend() |
static AssignerStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssignerStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
AssignerStatus |
wakeup() |
public static final AssignerStatus INITIAL_ASSIGNING
public static final AssignerStatus INITIAL_ASSIGNING_FINISHED
public static final AssignerStatus SUSPENDED
public static final AssignerStatus NEWLY_ADDED_ASSIGNING
public static final AssignerStatus NEWLY_ADDED_ASSIGNING_FINISHED
public static AssignerStatus[] values()
for (AssignerStatus c : AssignerStatus.values()) System.out.println(c);
public static AssignerStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getStatusCode()
public abstract AssignerStatus getNextStatus()
public AssignerStatus onFinish()
public AssignerStatus suspend()
public AssignerStatus wakeup()
public static AssignerStatus fromStatusCode(int statusCode)
AssignerStatus from status code.public static boolean isSuspended(AssignerStatus assignerStatus)
public static boolean isAssigningFinished(AssignerStatus assignerStatus)
public static boolean isAssigning(AssignerStatus assignerStatus)
public static boolean isNewlyAddedAssigning(AssignerStatus assignerStatus)
public static boolean isInitialAssigningFinished(AssignerStatus assignerStatus)
public static boolean isNewlyAddedAssigningFinished(AssignerStatus assignerStatus)
Copyright © 2022 The Apache Software Foundation. All rights reserved.