Package org.apache.nifi.controller.queue
Enum Class SortColumn
- All Implemented Interfaces:
Serializable,Comparable<SortColumn>,Constable,Comparator<FlowFileSummary>
Specifies which column to sort on when performing a Listing of FlowFiles via
invalid reference
FlowFileQueue#listFlowFiles(String, SortColumn, SortDirection)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSort based on the 'filename' attribute of the FlowFileSort based on the age of the FlowFile.Sort based on the size of the FlowFileSort based on the UUID of the FlowFileSort based on when the FlowFile's penalization endsSort based on the current position in the queueSort based on how long the FlowFile has been sitting in the queue -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(FlowFileSummary o1, FlowFileSummary o2) static SortColumnReturns the enum constant of this class with the specified name.static SortColumn[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Enum Constant Details
-
QUEUE_POSITION
Sort based on the current position in the queue -
FLOWFILE_UUID
Sort based on the UUID of the FlowFile -
FILENAME
Sort based on the 'filename' attribute of the FlowFile -
FLOWFILE_SIZE
Sort based on the size of the FlowFile -
QUEUED_DURATION
Sort based on how long the FlowFile has been sitting in the queue -
FLOWFILE_AGE
Sort based on the age of the FlowFile. I.e., the time at which the FlowFile's "greatest ancestor" entered the flow -
PENALIZATION
Sort based on when the FlowFile's penalization ends
-
-
Field Details
-
comparator
-
-
Constructor Details
-
SortColumn
-
-
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
-
compare
- Specified by:
comparein interfaceComparator<FlowFileSummary>
-