Class IPv4AddressParseExprMacro

java.lang.Object
org.apache.druid.query.expression.IPv4AddressParseExprMacro
All Implemented Interfaces:
ExprMacroTable.ExprMacro, NamedFunction

public class IPv4AddressParseExprMacro extends Object implements ExprMacroTable.ExprMacro
 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: