public class Average extends java.lang.Object implements DataSignal.ProcessorConfig
Modifier and Type | Class and Description |
---|---|
static class |
Average.State
Representation of the average processor's internal state.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FIELD_SAMPLE_SIZE |
byte |
sampleSize |
static java.lang.String |
SCHEME_NAME |
public static final java.lang.String SCHEME_NAME
public static final java.lang.String FIELD_SAMPLE_SIZE
public final byte sampleSize
public Average(java.util.Map<java.lang.String,java.lang.String> query)
query
- String-String map containing the fields from the URI stringpublic Average(byte sampleSize)
sampleSize
- How many data samples to use for computing a running average. Recommended
to be a power of 2 for faster computation.