public interface SortingState
| Modifier and Type | Interface and Description |
|---|---|
static class |
SortingState.Phase
Different phases that sorter goes through
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Method that can be used to try to cancel executing sort operation.
|
void |
cancel(IOException e)
Method that can be used to try to cancel executing sort operation.
|
void |
cancel(RuntimeException e)
Method that can be used to try to cancel executing sort operation.
|
int |
getNumberOfPreSortFiles()
Accessor for checking how many pre-sort files were created during
pre-sort phase.
|
int |
getNumberOfSortRounds()
Accessor for figuring out how many regular sorting rounds need to be taken to
complete sorting, if known.
|
SortingState.Phase |
getPhase() |
int |
getSortRound()
Accessor for checking which sorting round sorter is doing: for pre-sort
it basically means number of segment (0-based) that is being processed
in-memory, for regular sort it is number of (0-based) sorting round.
|
boolean |
isCompleted()
Accessor for determining whether sorting has been successfully completed or not.
|
boolean |
isPreSorting()
Accessor for determining whether sorter is in its in-memory pre-sorting phase.
|
boolean |
isSorting()
Accessor for determining whether sorter is in regular merge-sort phase or not.
|
SortingState.Phase getPhase()
boolean isPreSorting()
boolean isSorting()
boolean isCompleted()
int getNumberOfPreSortFiles()
int getSortRound()
int getNumberOfSortRounds()
void cancel()
void cancel(RuntimeException e)
void cancel(IOException e)
Copyright © 2022 FasterXML. All rights reserved.