Class HttpdParser

java.lang.Object
org.apache.drill.exec.store.httpd.HttpdParser

public class HttpdParser extends Object
  • Field Details

  • Constructor Details

    • HttpdParser

      public HttpdParser(String logFormat, String timestampFormat, boolean flattenWildcards, boolean parseUserAgent, String logParserRemapping, EasySubScan scan)
  • Method Details

    • parse

      public void parse(String line) throws nl.basjes.parse.core.exceptions.DissectionFailure, nl.basjes.parse.core.exceptions.InvalidDissectorException, nl.basjes.parse.core.exceptions.MissingDissectorsException
      We do not expose the underlying parser or the record which is used to manage the writers.
      Parameters:
      line - log line to tear apart.
      Throws:
      nl.basjes.parse.core.exceptions.DissectionFailure - if there is a generic dissector failure
      nl.basjes.parse.core.exceptions.InvalidDissectorException - if the dissector is not valid
      nl.basjes.parse.core.exceptions.MissingDissectorsException - if the dissector is missing
    • setupParser

      public TupleMetadata setupParser() throws NoSuchMethodException, nl.basjes.parse.core.exceptions.MissingDissectorsException, nl.basjes.parse.core.exceptions.InvalidDissectorException
      Throws:
      NoSuchMethodException
      nl.basjes.parse.core.exceptions.MissingDissectorsException
      nl.basjes.parse.core.exceptions.InvalidDissectorException
    • addFieldsToParser

      public void addFieldsToParser(RowSetLoader rowWriter)
    • isStarQuery

      public boolean isStarQuery()
    • isMetadataQuery

      public boolean isMetadataQuery()
    • isOnlyImplicitColumns

      public boolean isOnlyImplicitColumns()