class UrlExtractProtocol {

  @Udf
  public String extractProtocol(
      @UdfParameter(description = "a valid URL to extract a protocl from") final String input) {
    return UrlParser.extract(input, URI::getScheme);
  }

}