public class SimpleFileDataSource extends Object implements DataSource
DataSource implementation which read samples from a file dump of
'sample_view' from Archive RDB.| Constructor and Description |
|---|
SimpleFileDataSource(String csvFilePath) |
SimpleFileDataSource(String csvFilePath,
int chunkSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCsvFile() |
DataChunk |
getData(String channelName,
Timestamp from)
Read samples from source ordered by
Timestamp and starting with
the specified one. |
int |
hashCode() |
public SimpleFileDataSource(String csvFilePath)
public SimpleFileDataSource(String csvFilePath, int chunkSize)
public DataChunk getData(String channelName, Timestamp from)
Timestamp and starting with
the specified one. Polled by DataRequestThread.getData in interface DataSourcechannelName - channel to read.from - lowest Timestamp of the first returned sample.DataChunk a chunk of ordered samples with all
Timestamp superior to the specified argument.public String getCsvFile()
Copyright © 2015. All rights reserved.