Class IPv4AddressParseExprMacro
java.lang.Object
org.apache.druid.query.expression.IPv4AddressParseExprMacro
- All Implemented Interfaces:
ExprMacroTable.ExprMacro,NamedFunction
Implements an expression that parses a string or long into an IPv4 address stored (as an unsigned int) in a long. Expression signatures: - long ipv4_parse(string) - long ipv4_parse(long) String arguments should be formatted as a dotted-decimal. Long arguments that can be represented as an IPv4 address are passed through. Invalid arguments return null.
- See Also:
-
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
-
IPv4AddressParseExprMacro
public IPv4AddressParseExprMacro()
-
-
Method Details
-
name
Description copied from interface:NamedFunctionName of the function- Specified by:
namein interfaceNamedFunction
-
apply
- Specified by:
applyin interfaceExprMacroTable.ExprMacro
-