Class RangeFilterLogHandler
java.lang.Object
com.complexible.stardog.api.admin.RangeFilterLogHandler
- All Implemented Interfaces:
com.complexible.tx.api.logging.ClosableLogHandler,com.complexible.tx.api.logging.LogHandler,AutoCloseable
public class RangeFilterLogHandler
extends Object
implements com.complexible.tx.api.logging.ClosableLogHandler
Log handler that filters records based on a specified UUID and/or timestamp range. Wraps another
LogHandler and discards records outside
the range.
Open-ended ranges are supported: with no start bound the handler emits records from the beginning of the log, and with no end bound it emits through the end. Calling with neither bound is a no-op filter (everything passes).
UUID and date bounds cannot be combined on the same side of the range. --from-uuid X --from-time T is rejected because the semantics
are ambiguous: the user picks one mechanism per end of the range.
-
Constructor Summary
ConstructorsConstructorDescriptionRangeFilterLogHandler(AdminConnection.TxLogRange range, com.complexible.tx.api.logging.LogHandler delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intvoidhandleRecord(com.complexible.tx.api.logging.TxLogRecord theRecord)
-
Constructor Details
-
RangeFilterLogHandler
public RangeFilterLogHandler(AdminConnection.TxLogRange range, com.complexible.tx.api.logging.LogHandler delegate)
-
-
Method Details
-
handleRecord
public void handleRecord(com.complexible.tx.api.logging.TxLogRecord theRecord) - Specified by:
handleRecordin interfacecom.complexible.tx.api.logging.LogHandler
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacecom.complexible.tx.api.logging.ClosableLogHandler
-
getFilteredCount
public int getFilteredCount()
-