use of com.srotya.sidewinder.core.storage.MockMeasurement in project sidewinder by srotya.
the class TestDownSamplingIFunction method before.
@Before
public void before() throws IOException {
measurement = new MockMeasurement(32768, 100);
TimeField.compressionClass = CompressionFactory.getTimeClassByName("byzantine");
}
use of com.srotya.sidewinder.core.storage.MockMeasurement in project sidewinder by srotya.
the class TestBasicSingleFunctions method before.
@Before
public void before() throws IOException {
measurement = new MockMeasurement(32768, 100);
TimeField.compressionClass = CompressionFactory.getTimeClassByName("byzantine");
Field tField = new TimeField(measurement, new LinkedByteString().concat(new ByteString("time")), 121213, new HashMap<>());
long ts = 1546755991280L;
for (int i = 0; i < 200; i++) {
tField.addDataPoint(measurement, ts + i * 1000);
}
Field vField = new ValueField(measurement, new LinkedByteString().concat(new ByteString("field1")), 121213, new HashMap<>());
for (int i = 0; i < 100; i++) {
vField.addDataPoint(measurement, i * 1L);
}
for (int i = 100; i > 0; i--) {
vField.addDataPoint(measurement, i * 1L);
}
itr = new DataPointIterator(tField.queryReader(null, new NoLock()), vField.queryReader(null, new NoLock()));
}
use of com.srotya.sidewinder.core.storage.MockMeasurement in project sidewinder by srotya.
the class TestTumblingWindowFunction method before.
@Before
public void before() throws IOException {
measurement = new MockMeasurement(32768, 100);
TimeField.compressionClass = CompressionFactory.getTimeClassByName("byzantine");
}
Aggregations