Class CSVWriter<O extends Observation>
- java.lang.Object
-
- org.processmining.specpp.supervision.CSVWriter<O>
-
- All Implemented Interfaces:
java.util.function.Consumer<O>,AsyncObserver<O>,Buffering,Observer<O>,Stoppable,Triggerable
public class CSVWriter<O extends Observation> extends java.lang.Object implements AsyncObserver<O>, Buffering, Stoppable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()voidflushBuffer()booleanisBufferNonEmpty()voidobserve(O observation)voidobserveAsync(java.util.concurrent.CompletableFuture<O> futureObservation)voidstop()
-
-
-
Constructor Detail
-
CSVWriter
public CSVWriter(java.lang.String filePath, java.lang.String[] columnLabels, java.util.function.Function<O,java.lang.String[]> rowMapper)
-
-
Method Detail
-
observeAsync
public void observeAsync(java.util.concurrent.CompletableFuture<O> futureObservation)
- Specified by:
observeAsyncin interfaceAsyncObserver<O extends Observation>
-
observe
public void observe(O observation)
- Specified by:
observein interfaceObserver<O extends Observation>
-
flushBuffer
public void flushBuffer()
- Specified by:
flushBufferin interfaceBuffering
-
isBufferNonEmpty
public boolean isBufferNonEmpty()
- Specified by:
isBufferNonEmptyin interfaceBuffering
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
-