Class IPv6AddressMatchExprMacro
- java.lang.Object
-
- org.apache.druid.query.expression.IPv6AddressMatchExprMacro
-
- All Implemented Interfaces:
ExprMacroTable.ExprMacro
,NamedFunction
public class IPv6AddressMatchExprMacro extends Object implements ExprMacroTable.ExprMacro
Implements an expression that checks if an IPv6 address belongs to a subnet. Expression signatures: - long ipv6_match(string address, string subnet) Valid "address" argument formats are: - IPv6 address string (e.g., "2001:4860:4860::8888") The argument format for the "subnet" argument should be a literal in CIDR notation (e.g., "2001:db8::/64 "). If the "address" argument does not represent an IPv6 address then false is returned.
-
-
Constructor Summary
Constructors Constructor Description IPv6AddressMatchExprMacro()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expr
apply(List<Expr> args)
String
name()
Name of the function-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.math.expr.NamedFunction
processingFailed, validationFailed, validationFailed, validationHelperCheckAnyOfArgumentCount, validationHelperCheckArgIsLiteral, validationHelperCheckArgumentCount, validationHelperCheckArgumentCount, validationHelperCheckArgumentRange, validationHelperCheckLambaArgumentCount, validationHelperCheckMinArgumentCount, validationHelperCheckMinArgumentCount
-
-
-
-
Field Detail
-
FN_NAME
public static final String FN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public String name()
Description copied from interface:NamedFunction
Name of the function- Specified by:
name
in interfaceNamedFunction
-
apply
public Expr apply(List<Expr> args)
- Specified by:
apply
in interfaceExprMacroTable.ExprMacro
-
-