Sha256: cea015f2e4f6a7eba8c44aa40e053f93b42eab2e17a589c12401303fd533344b
Contents?: true
Size: 972 Bytes
Versions: 4
Compression:
Stored size: 972 Bytes
Contents
package org.embulk.parser.apache.log; import org.embulk.config.ConfigSource; import org.embulk.spi.ColumnConfig; import org.embulk.spi.PageBuilder; import org.embulk.spi.type.Type; public abstract class LogElement<T> { protected String name; protected String regexp; protected final Type outputType; public LogElement(String name, String regex, Type outputType){ this.name = name; this.regexp = regex; this.outputType = outputType; } public String getName(){ return name; } public String getRegexp() { return regexp; } public Type getOutputType() { return outputType; } public abstract T parse(String s); public abstract void setToPageBuilder(PageBuilder pageBuilder, int i, String value); public ColumnConfig getColumnConfig(ConfigSource config){ return new ColumnConfig(name, outputType, config); } }
Version data entries
4 entries across 4 versions & 1 rubygems