Add IPAddress java library as dependency and migrate IPv4 functions to use the new...
authorAbhishek Radhakrishnan <abhishek.rb19@gmail.com>
Thu, 12 May 2022 05:06:20 +0000 (01:06 -0400)
committerGitHub <noreply@github.com>
Thu, 12 May 2022 05:06:20 +0000 (22:06 -0700)
commit9177515be224269dc0299eae809591cb373d83a0
tree48757f5f013b3b6135c0e4e4f5775aca10e76284
parent9e5a940cf1fc04b00f9cb0216ec8766d8fed0ee2
Add IPAddress java library as dependency and migrate IPv4 functions to use the new library. (#11634)

* Add ipaddress library as dependency.

* IPv4 functions to use the inet.ipaddr package.

* Remove unused imports.

* Add new function.

* Minor rename.

* Add more unit tests.

* IPv4 address expr utils unit tests and address options.

* Adjust the IPv4Util functions.

* Move the UTs a bit around.

* Javadoc comments.

* Add license info for IPAddress.

* Fix groupId, artifact and version in license.yaml.

* Remove redundant subnet in messages - fixes UT.

* Remove unused commons-net dependency for /processing project.

* Make class and methods public so it can be accessed.

* Add initial version of benchmark

* Add subnetutils package for benchmarks.

* Auto generate ip addresses.

* Add more v4 address representations in setup to avoid bias.

* Use ThreadLocalRandom to avoid forbidden API usage.

* Adjust IPv4AddressBenchmark to adhere to codestyle rules.

* Update ipaddress library to latest 5.3.4

* Add ipaddress package dependency to benchmarks project.
benchmarks/pom.xml
benchmarks/src/test/java/org/apache/druid/benchmark/IPv4AddressBenchmark.java [new file with mode: 0644]
licenses.yaml
pom.xml
processing/pom.xml
processing/src/main/java/org/apache/druid/query/expression/IPv4AddressExprUtils.java
processing/src/main/java/org/apache/druid/query/expression/IPv4AddressMatchExprMacro.java
processing/src/main/java/org/apache/druid/query/expression/IPv4AddressParseExprMacro.java
processing/src/main/java/org/apache/druid/query/expression/IPv4AddressStringifyExprMacro.java
processing/src/test/java/org/apache/druid/query/expression/IPv4AddressExprUtilsTest.java