All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.basjes.hadoop.input.OmnitureRecordReader Maven / Gradle / Ivy

/*
 * Apache HTTPD logparsing made easy
 * Copyright (C) 2011-2015 Niels Basjes
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */

package nl.basjes.hadoop.input;

import java.text.ParseException;
import java.util.List;
import java.util.Map;
import java.util.Set;

import nl.basjes.parse.OmnitureLogLineParser;
import nl.basjes.parse.core.Dissector;
import nl.basjes.parse.core.Parser;

@Deprecated
public class OmnitureRecordReader extends ApacheHttpdLogfileRecordReader {

    public OmnitureRecordReader(
            String newLogformat,
            Set newRequestedFields,
            Map> typeRemappings,
            List additionalDissectors) {
        super(newLogformat, newRequestedFields, typeRemappings, additionalDissectors);
    }

    protected Parser instantiateParser(String logFormat) throws ParseException {
        return new OmnitureLogLineParser<>(ParsedRecord.class, logFormat);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy