Class IPv4AddressMatchExprMacro
java.lang.Object
org.apache.druid.query.expression.IPv4AddressMatchExprMacro
- All Implemented Interfaces:
ExprMacroTable.ExprMacro,NamedFunction
Implements an expression that checks if an IPv4 address belongs to a particular subnet. Expression signatures: - long ipv4_match(string address, string subnet) - long ipv4_match(long address, string subnet) Valid "address" argument formats are: - unsigned int long (e.g., 3232235521) - IPv4 address dotted-decimal string (e.g., "198.168.0.1") The argument format for the "subnet" argument should be a literal in CIDR notation (e.g., "198.168.0.0/16"). If the "address" argument does not represent an IPv4 address then false is returned.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.math.expr.NamedFunction
processingFailed, processingFailed, validationFailed, validationFailed, validationHelperCheckAnyOfArgumentCount, validationHelperCheckArgIsLiteral, validationHelperCheckArgumentCount, validationHelperCheckArgumentCount, validationHelperCheckArgumentRange, validationHelperCheckLambaArgumentCount, validationHelperCheckMinArgumentCount, validationHelperCheckMinArgumentCount
-
Field Details
-
FN_NAME
- See Also:
-
-
Constructor Details
-
IPv4AddressMatchExprMacro
public IPv4AddressMatchExprMacro()
-
-
Method Details
-
name
Description copied from interface:NamedFunctionName of the function- Specified by:
namein interfaceNamedFunction
-
apply
- Specified by:
applyin interfaceExprMacroTable.ExprMacro
-