public abstract class SampleProcessor extends Object implements Iterator<Results.Row>
| Constructor and Description |
|---|
SampleProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected Results.Row |
fillMissingSamples(Results.Row row)
Add in NaN samples for any Metrics missing from this
Results.Row |
Collection<Metric> |
getMetrics()
Returns the metrics associated with the stream of samples.
|
SampleProcessor |
getProducer() |
Resource |
getResource() |
void |
remove() |
void |
setProducer(SampleProcessor producer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, nextpublic void setProducer(SampleProcessor producer)
public SampleProcessor getProducer()
public Collection<Metric> getMetrics()
Classes extending SampleProcessor should override this method
when they are the entrance to the chain (the processor added with
SampleProcessorBuilder.prepend(SampleProcessor)), or when they
need to transform the set of metrics as part of their processing.
public Resource getResource()
public void remove()
remove in interface Iterator<Results.Row>protected Results.Row fillMissingSamples(Results.Row row)
Results.Rowrow - the row to transform.Copyright © 2016. All rights reserved.