Interface CompactionLogger.Writer
- Enclosing class:
- CompactionLogger
public static interface CompactionLogger.Writer
This is an interface to allow writing to a different interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(com.fasterxml.jackson.databind.JsonNode statement, CompactionLogger.StrategySummary summary, Object tag) voidwriteStart(com.fasterxml.jackson.databind.JsonNode statement, Object tag) This is used when we are already trying to write out the start of a
-
Method Details
-
writeStart
This is used when we are already trying to write out the start of a- Parameters:
statement- This should be written out to the medium capturing the logstag- This is an identifier for a strategy; each strategy should have a distinct Object
-
write
void write(com.fasterxml.jackson.databind.JsonNode statement, CompactionLogger.StrategySummary summary, Object tag) - Parameters:
statement- This should be written out to the medium capturing the logssummary- This can be used when a tag is not recognized by this writer; this can be because the file has been rolled, or otherwise the writer had to start overtag- This is an identifier for a strategy; each strategy should have a distinct Object
-