Class CombinedLogFormat

  • All Implemented Interfaces:
    LogFormat

    public class CombinedLogFormat
    extends AbstractRegexLogFormat
    Describes the format of a web server log in NCSA Combined log format. The format pattern specifies whether or not the cookie field is present in the data.
    • Constructor Detail

      • CombinedLogFormat

        public CombinedLogFormat()
        Create a log format for accessing combined log format data.
      • CombinedLogFormat

        public CombinedLogFormat​(String formatPattern)
        Create a log format for accessing combined log format data.
        Parameters:
        formatPattern - boolean string that determines if cookies are present
    • Method Detail

      • getType

        public RecordTokenType getType()
        Description copied from interface: LogFormat
        Gets the record type associated with the format. Records produced by the associated parser or consumed by the associated formatter will be of this type.

        For many formats, this may be derived from a schema object describing the format layout.

        Returns:
        the format's record type
      • isSplittable

        public boolean isSplittable()
        Description copied from interface: LogFormat
        Indicates if the format supports parsing of subsections of a file.

        A format should only return true if it can, at least in some situations, support this sort of parsing. If a format requires reading the entire file, it must return false.

        If a format is not splittable, a file in the format cannot be parsed in parallel; however, individual files can still be parsed independently in parallel, as when reading the contents of a directory or using a file globbing pattern.

        Specified by:
        isSplittable in interface LogFormat
        Overrides:
        isSplittable in class AbstractRegexLogFormat
        Returns:
        true if the format supports parsing only a portion of the file, false otherwise