Interface Parser<T,D>
- Type Parameters:
T
- The data type of the result.D
- The type of the entity to parse.
- All Known Implementing Classes:
CollectdJsonToRecordParser
,GraphitePlaintextToRecordParser
,JsonToRecordParser
,LogLineParser
,PrometheusToRecordParser
,ProtobufV1ToRecordParser
,ProtobufV2bytesToRecordParser
,ProtobufV2ToRecordParser
,ProtobufV3ToRecordParser
,StatsdToRecordParser
,TelegrafJsonToRecordParser
public interface Parser<T,D>
Interface for classes which create instances of
Parser
.- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot io)
-
Method Summary
-
Method Details
-
parse
Create aRecord
from a serialized representation.- Parameters:
data
- Some serialized representation of aRecord
.- Returns:
- Instance of
Record
from the data. - Throws:
ParsingException
- If parsing of the data fails for any reason.
-