Class ParseUrlFunction

java.lang.Object
org.apache.drill.exec.expr.fn.impl.ParseUrlFunction

public class ParseUrlFunction extends Object
The parse_url function takes an URL and returns a map of components of the URL. It acts as a wrapper for URL. If an optional URL component is absent, e.g. there is no anchor (reference) element, the "ref" entry will not be added to resulting map.

For example, parse_url('http://example.com/some/path?key=value#ref') will return:

 {
   "protocol":"http",
   "authority":"example.com",
   "host":"example.com",
   "path":"/some/path",
   "query":"key=value",
   "filename":"/some/path?key=value",
   "ref":"ref"
 }
 
  • Constructor Details

    • ParseUrlFunction

      public ParseUrlFunction()