Hi,

I recently start working on the issue 
(https://issues.apache.org/jira/browse/IOTDB-13) which is going to implement a 
batched writing interface.

The user could invoke the interface to write a series of data with the static 
schema at once, which they could do as follows:

A class TimeSeries that has two columns: long[] times, double[] values with a 
write method for user to load the data in it.

TimeSeries series = new TimeSeries((int)columnSize);

for(int i = 0; i < columnSize; i++) {
  series.write((long) currentTime, (double) currentValue);
}

TsFileWriter.write(series);

If you have any different idea or opinion, please welcome to discuss with me.

Best regards,
Tsung-Han Tsai

Reply via email to