public class IrcInputRowParser extends Object implements io.druid.data.input.impl.InputRowParser<com.metamx.common.Pair<org.joda.time.DateTime,com.ircclouds.irc.api.domain.messages.ChannelPrivMsg>>
Example Usage
Decoder definition: wikipedia-decoder.json
<p/>
{
"type": "wikipedia",
"namespaces": {
"#en.wikipedia": {
"": "main",
"Category": "category",
"Template talk": "template talk",
"Help talk": "help talk",
"Media": "media",
"MediaWiki talk": "mediawiki talk",
"File talk": "file talk",
"MediaWiki": "mediawiki",
"User": "user",
"File": "file",
"User talk": "user talk",
"Template": "template",
"Help": "help",
"Special": "special",
"Talk": "talk",
"Category talk": "category talk"
}
},
"geoIpDatabase": "path/to/GeoLite2-City.mmdb"
}
Constructor and Description |
---|
IrcInputRowParser(io.druid.data.input.impl.ParseSpec parseSpec,
IrcDecoder decoder) |
Modifier and Type | Method and Description |
---|---|
IrcDecoder |
getDecoder() |
io.druid.data.input.impl.ParseSpec |
getParseSpec() |
io.druid.data.input.InputRow |
parse(com.metamx.common.Pair<org.joda.time.DateTime,com.ircclouds.irc.api.domain.messages.ChannelPrivMsg> msg) |
io.druid.data.input.impl.InputRowParser |
withParseSpec(io.druid.data.input.impl.ParseSpec parseSpec) |
public IrcInputRowParser(io.druid.data.input.impl.ParseSpec parseSpec, IrcDecoder decoder)
public IrcDecoder getDecoder()
public io.druid.data.input.InputRow parse(com.metamx.common.Pair<org.joda.time.DateTime,com.ircclouds.irc.api.domain.messages.ChannelPrivMsg> msg)
parse
in interface io.druid.data.input.impl.InputRowParser<com.metamx.common.Pair<org.joda.time.DateTime,com.ircclouds.irc.api.domain.messages.ChannelPrivMsg>>
public io.druid.data.input.impl.ParseSpec getParseSpec()
getParseSpec
in interface io.druid.data.input.impl.InputRowParser<com.metamx.common.Pair<org.joda.time.DateTime,com.ircclouds.irc.api.domain.messages.ChannelPrivMsg>>
public io.druid.data.input.impl.InputRowParser withParseSpec(io.druid.data.input.impl.ParseSpec parseSpec)
withParseSpec
in interface io.druid.data.input.impl.InputRowParser<com.metamx.common.Pair<org.joda.time.DateTime,com.ircclouds.irc.api.domain.messages.ChannelPrivMsg>>
Copyright © 2011–2015. All rights reserved.