public class GeoLocationResolverUDF extends Object implements org.wso2.carbon.analytics.spark.core.udf.CarbonUDF
This implementation supports only the GeoLite2 Country database. At the initialization it checks whether the country database file is available at repository/resources.
| Constructor and Description |
|---|
GeoLocationResolverUDF() |
public String getCountry(String ipAddress) throws IOException
ipAddress - ip addressIOExceptionCopyright © 2016 WSO2. All rights reserved.