Package org.apache.drill.exec.udfs
Class NetworkFunctions.InetAtonFunction
java.lang.Object
org.apache.drill.exec.udfs.NetworkFunctions.InetAtonFunction
- All Implemented Interfaces:
DrillFunc
,DrillSimpleFunc
- Enclosing class:
- NetworkFunctions
This function converts an IPv4 address into a BigInt. Useful for sorting IPs, or looking for IP ranges.
IE:
SELECT *
FROM
ORDER BY inet_aton( ip ) ASC
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
InetAtonFunction
public InetAtonFunction()
-
-
Method Details
-
setup
public void setup()- Specified by:
setup
in interfaceDrillSimpleFunc
-
eval
public void eval()- Specified by:
eval
in interfaceDrillSimpleFunc
-