Class FluentdRecordFormatter

java.lang.Object
org.komamitsu.fluency.recordformat.AbstractRecordFormatter
org.komamitsu.fluency.fluentd.recordformat.FluentdRecordFormatter
All Implemented Interfaces:
org.komamitsu.fluency.recordformat.RecordFormatter

public class FluentdRecordFormatter extends org.komamitsu.fluency.recordformat.AbstractRecordFormatter implements org.komamitsu.fluency.recordformat.RecordFormatter
  • Constructor Details

    • FluentdRecordFormatter

      public FluentdRecordFormatter()
    • FluentdRecordFormatter

      public FluentdRecordFormatter(FluentdRecordFormatter.Config config)
  • Method Details

    • format

      public byte[] format(String tag, Object timestamp, Map<String,Object> data)
      Specified by:
      format in interface org.komamitsu.fluency.recordformat.RecordFormatter
      Specified by:
      format in class org.komamitsu.fluency.recordformat.AbstractRecordFormatter
    • formatFromMessagePack

      public byte[] formatFromMessagePack(String tag, Object timestamp, byte[] mapValue, int offset, int len)
      Specified by:
      formatFromMessagePack in interface org.komamitsu.fluency.recordformat.RecordFormatter
      Specified by:
      formatFromMessagePack in class org.komamitsu.fluency.recordformat.AbstractRecordFormatter
    • formatFromMessagePack

      public byte[] formatFromMessagePack(String tag, Object timestamp, ByteBuffer mapValue)
      Specified by:
      formatFromMessagePack in interface org.komamitsu.fluency.recordformat.RecordFormatter
      Specified by:
      formatFromMessagePack in class org.komamitsu.fluency.recordformat.AbstractRecordFormatter
    • formatName

      public String formatName()
      Specified by:
      formatName in interface org.komamitsu.fluency.recordformat.RecordFormatter
      Specified by:
      formatName in class org.komamitsu.fluency.recordformat.AbstractRecordFormatter