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

    Modifier and Type
    Method
    Description
    parse(D data)
    Create a Record from a serialized representation.
  • Method Details

    • parse

      T parse(D data) throws ParsingException
      Create a Record from a serialized representation.
      Parameters:
      data - Some serialized representation of a Record.
      Returns:
      Instance of Record from the data.
      Throws:
      ParsingException - If parsing of the data fails for any reason.