public abstract class QueryDataBuffer extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
QueryDataBuffer.Data |
Modifier and Type | Field and Description |
---|---|
static String |
AVG |
static String |
MAX |
static String |
MIN |
protected QueryState |
state |
static String |
STDDEV |
Constructor and Description |
---|
QueryDataBuffer(QueryListener listener,
Executor executor,
Date fixedStartDate,
Date fixedEndDate)
Create a new query data buffer
|
Modifier and Type | Method and Description |
---|---|
protected static void |
fillDataCells(QueryDataBuffer.Data[] data,
Calendar start,
Calendar end,
DataFactory dataFactory) |
protected static void |
fillDataCells(QueryDataBuffer.Data[] data,
long start,
long end,
DataFactory dataFactory)
This fills the data cell buffer with start and end timestamp for each
entry
|
protected abstract QueryDataBuffer.Data[] |
getData() |
protected void |
notifyData(int startIndex,
int endIndex) |
protected void |
notifyData(int index,
Map<String,List<Double>> values,
List<ValueInformation> valueInformation) |
protected void |
notifyParameterUpdate(QueryParameters parameters,
Set<String> valueTypes) |
protected void |
notifyStateUpdate(QueryState state) |
public static final String STDDEV
public static final String MAX
public static final String MIN
public static final String AVG
protected QueryState state
public QueryDataBuffer(QueryListener listener, Executor executor, Date fixedStartDate, Date fixedEndDate)
listener
- the listener that will receive update eventsexecutor
- the executor that will be used to send update eventsfixedStartDate
- fixedEndDate
- protected abstract QueryDataBuffer.Data[] getData()
protected static void fillDataCells(QueryDataBuffer.Data[] data, Calendar start, Calendar end, DataFactory dataFactory)
protected static void fillDataCells(QueryDataBuffer.Data[] data, long start, long end, DataFactory dataFactory)
data
- start
- end
- dataFactory
- protected void notifyParameterUpdate(QueryParameters parameters, Set<String> valueTypes)
protected void notifyData(int index, Map<String,List<Double>> values, List<ValueInformation> valueInformation)
protected void notifyStateUpdate(QueryState state)
protected void notifyData(int startIndex, int endIndex)
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.