Class Renderer
- java.lang.Object
-
- org.nuxeo.lib.stream.tools.renderer.Renderer
-
- Direct Known Subclasses:
MarkdownRenderer
,TextRenderer
public abstract class Renderer extends Object implements Consumer<LogRecord<Record>>
- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]
AVRO_MESSAGE_V1_HEADER
protected int
dataSize
-
Constructor Summary
Constructors Constructor Description Renderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
footer()
protected long
getFingerPrint(byte[] data)
abstract void
header()
protected boolean
isAvroMessage(byte[] data)
protected String
renderAvroMessage(AvroSchemaStore store, Record record)
protected String
tryToRenderAvroData(AvroSchemaStore store, Record record)
protected String
watermarkString(long watermark)
-
-
-
Field Detail
-
dataSize
protected int dataSize
-
AVRO_MESSAGE_V1_HEADER
public static final byte[] AVRO_MESSAGE_V1_HEADER
-
-
Constructor Detail
-
Renderer
public Renderer()
-
-
Method Detail
-
header
public abstract void header()
-
footer
public abstract void footer()
-
watermarkString
protected String watermarkString(long watermark)
-
tryToRenderAvroData
protected String tryToRenderAvroData(AvroSchemaStore store, Record record)
-
renderAvroMessage
protected String renderAvroMessage(AvroSchemaStore store, Record record)
-
getFingerPrint
protected long getFingerPrint(byte[] data)
-
isAvroMessage
protected boolean isAvroMessage(byte[] data)
-
-