Class AbstractRecordFormatter
java.lang.Object
org.komamitsu.fluency.recordformat.AbstractRecordFormatter
- All Implemented Interfaces:
RecordFormatter
- Direct Known Subclasses:
MessagePackRecordFormatter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.komamitsu.fluency.recordformat.RecordFormatter
RecordFormatter.Config -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RecordFormatter.Configprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]abstract byte[]formatFromMessagePack(String tag, Object timestamp, byte[] mapValue, int offset, int len) abstract byte[]formatFromMessagePack(String tag, Object timestamp, ByteBuffer mapValue) abstract Stringprotected longprotected voidregisterObjectMapperModules(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Field Details
-
objectMapperForMessagePack
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapperForMessagePack -
config
-
-
Constructor Details
-
AbstractRecordFormatter
-
-
Method Details
-
format
- Specified by:
formatin interfaceRecordFormatter
-
formatFromMessagePack
public abstract byte[] formatFromMessagePack(String tag, Object timestamp, byte[] mapValue, int offset, int len) - Specified by:
formatFromMessagePackin interfaceRecordFormatter
-
formatFromMessagePack
- Specified by:
formatFromMessagePackin interfaceRecordFormatter
-
formatName
- Specified by:
formatNamein interfaceRecordFormatter
-
getEpoch
-
registerObjectMapperModules
protected void registerObjectMapperModules(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-