Enum Class InputRowFilterResult
- All Implemented Interfaces:
Serializable,Comparable<InputRowFilterResult>,Constable
Result of filtering an input row during ingestion.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe row passed the filter and should be processed.The row's timestamp is after the maximum message time (early message rejection).The row's timestamp is before the minimum message time (late message rejection).The row was filtered out by a transformSpec filter or other row filter.The row was null or the input record was empty.A backwards-compatible value for tracking filter reasons for ingestion tasks using older Druid versions without filter reason tracking. -
Method Summary
Modifier and TypeMethodDescriptionReturns string value representation of thisInputRowFilterResultfor metric emission.booleanReturns true if this result indicates the row was rejected (thrown away).static intReturns total number ofInputRowFilterResultvalues.static InputRowFilterResult[]ReturnsInputRowFilterResultthat are rejection states.static InputRowFilterResultReturns the enum constant of this class with the specified name.static InputRowFilterResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCEPTED
The row passed the filter and should be processed. -
NULL_OR_EMPTY_RECORD
The row was null or the input record was empty. -
BEFORE_MIN_MESSAGE_TIME
The row's timestamp is before the minimum message time (late message rejection). -
AFTER_MAX_MESSAGE_TIME
The row's timestamp is after the maximum message time (early message rejection). -
CUSTOM_FILTER
The row was filtered out by a transformSpec filter or other row filter. -
UNKNOWN
A backwards-compatible value for tracking filter reasons for ingestion tasks using older Druid versions without filter reason tracking.
-
-
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
-
getReason
Returns string value representation of thisInputRowFilterResultfor metric emission. -
isRejected
public boolean isRejected()Returns true if this result indicates the row was rejected (thrown away). Returns false forACCEPTED. -
rejectedValues
ReturnsInputRowFilterResultthat are rejection states. -
numValues
public static int numValues()Returns total number ofInputRowFilterResultvalues.
-