Class ParseUrlFunction
java.lang.Object
org.apache.drill.exec.expr.fn.impl.ParseUrlFunction
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"
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ParseUrlFunction
public ParseUrlFunction()
-