public enum SortColumn extends Enum<SortColumn> implements Comparator<FlowFileSummary>
FlowFileQueue#listFlowFiles(String, SortColumn, SortDirection)| Enum Constant and Description |
|---|
FILENAME
Sort based on the 'filename' attribute of the FlowFile
|
FLOWFILE_AGE
Sort based on the age of the FlowFile.
|
FLOWFILE_SIZE
Sort based on the size of the FlowFile
|
FLOWFILE_UUID
Sort based on the UUID of the FlowFile
|
PENALIZATION
Sort based on when the FlowFile's penalization ends
|
QUEUE_POSITION
Sort based on the current position in the queue
|
QUEUED_DURATION
Sort based on how long the FlowFile has been sitting in the queue
|
| Modifier and Type | Field and Description |
|---|---|
private Comparator<FlowFileSummary> |
comparator |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(FlowFileSummary o1,
FlowFileSummary o2) |
static SortColumn |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortColumn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic static final SortColumn QUEUE_POSITION
public static final SortColumn FLOWFILE_UUID
public static final SortColumn FILENAME
public static final SortColumn FLOWFILE_SIZE
public static final SortColumn QUEUED_DURATION
public static final SortColumn FLOWFILE_AGE
public static final SortColumn PENALIZATION
private final Comparator<FlowFileSummary> comparator
public static SortColumn[] values()
for (SortColumn c : SortColumn.values()) System.out.println(c);
public static SortColumn 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 compare(FlowFileSummary o1, FlowFileSummary o2)
compare in interface Comparator<FlowFileSummary>Copyright © 2023 Apache NiFi Project. All rights reserved.