Enum ChunkStatus
- All Implemented Interfaces:
Serializable,Comparable<ChunkStatus>,java.lang.constant.Constable
Represents the lifecycle states of a data chunk during the download and processing pipeline. A
chunk transitions through these states as it moves from initial request to final consumption.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe download operation was explicitly cancelled.The chunk's data has been fully consumed and its memory resources have been released back to the system.The download operation encountered an error.The chunk download operation has been initiated and is currently executing.Indicates that a failed download is being retried.The chunk data has been successfully downloaded and is available locally.Initial state where the chunk is awaiting URL assignment.The conversion of Arrow data into record batch lists failed.Arrow data has been successfully processed: Decompression completed (if compression was enabled) Data converted into record batch lists Ready for consumption by the application.The download URL has been successfully retrieved. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTransitionTo(ChunkStatus targetStatus) Checks if a transition to the target state is valid from this state.Returns the set of valid target states from this state.static ChunkStatusReturns the enum constant of this type with the specified name.static ChunkStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PENDING
Initial state where the chunk is awaiting URL assignment. No download URL has been fetched or assigned yet. -
URL_FETCHED
The download URL has been successfully retrieved. Chunk is ready to begin the download process. -
DOWNLOAD_IN_PROGRESS
The chunk download operation has been initiated and is currently executing. Data transfer is in progress. -
DOWNLOAD_SUCCEEDED
The chunk data has been successfully downloaded and is available locally. Ready for extraction and processing. -
PROCESSING_SUCCEEDED
Arrow data has been successfully processed:- Decompression completed (if compression was enabled)
- Data converted into record batch lists
-
DOWNLOAD_FAILED
The download operation encountered an error. System will attempt to retry the download. -
PROCESSING_FAILED
The conversion of Arrow data into record batch lists failed. Indicates a processing error after successful download. -
CANCELLED
The download operation was explicitly cancelled. No further processing will occur for this chunk. -
CHUNK_RELEASED
The chunk's data has been fully consumed and its memory resources have been released back to the system. -
DOWNLOAD_RETRY
Indicates that a failed download is being retried. Transitional state between DOWNLOAD_FAILED and DOWNLOAD_IN_PROGRESS.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValidTransitions
Returns the set of valid target states from this state.- Returns:
- Set of valid target states
-
canTransitionTo
Checks if a transition to the target state is valid from this state.- Parameters:
targetStatus- The target state to check- Returns:
- true if the transition is valid, false otherwise
-