public class DataFilter extends Object implements IDataFilter
Default implementation of IDataFilter
returning null on all filter
predicates. It is meant be used as a base to implement your own filter and
unlike IDataFilter
doesn't require implementing all methods.
Constructor and Description |
---|
DataFilter(String recordType) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getProducerIDs()
Gets filter criteria for selecting data records associated to certain producers.
Only data records associated to one of the listed producer IDs will be selected. If the list is null or empty, no filtering on producer ID will be applied. |
String |
getRecordType() |
double[] |
getTimeStampRange()
Gets filter criteria for selecting data records based on time stamp.
Only records whose time stamp (usually sampling time for sensors) lies within that range will be selected (range is inclusive). If range is null, no filtering on time stamp will be applied. |
public DataFilter(String recordType)
public String getRecordType()
getRecordType
in interface IDataFilter
public double[] getTimeStampRange()
IDataFilter
getTimeStampRange
in interface IDataFilter
public Collection<String> getProducerIDs()
IDataFilter
getProducerIDs
in interface IDataFilter
Copyright © 2016 Sensia Software LLC. All rights reserved.