-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added iotdb-2.0 module; rolled back iotdb-1.3 module (#441)
* Added iotdb-2.0 module; rolled back iotdb-1.3 module to 'd820b0018f36263e001dc6715f89d72f5b636d6b'. * fix pom
- Loading branch information
1 parent
002ee2d
commit 5ac3036
Showing
30 changed files
with
2,849 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
iotdb-1.3/src/main/java/cn/edu/tsinghua/iot/benchmark/iotdb130/IBenchmarkSession.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package cn.edu.tsinghua.iot.benchmark.iotdb130; | ||
|
||
import org.apache.iotdb.rpc.IoTDBConnectionException; | ||
import org.apache.iotdb.rpc.StatementExecutionException; | ||
|
||
import org.apache.tsfile.enums.TSDataType; | ||
import org.apache.tsfile.write.record.Tablet; | ||
|
||
import java.util.List; | ||
|
||
public interface IBenchmarkSession { | ||
void open() throws IoTDBConnectionException; | ||
|
||
void open(boolean enableRPCCompression) throws IoTDBConnectionException; | ||
|
||
void insertRecord( | ||
String deviceId, | ||
long time, | ||
List<String> measurements, | ||
List<TSDataType> types, | ||
List<Object> values) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void insertAlignedRecord( | ||
String multiSeriesId, | ||
long time, | ||
List<String> multiMeasurementComponents, | ||
List<TSDataType> types, | ||
List<Object> values) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void insertRecords( | ||
List<String> deviceIds, | ||
List<Long> times, | ||
List<List<String>> measurementsList, | ||
List<List<TSDataType>> typesList, | ||
List<List<Object>> valuesList) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void insertAlignedRecords( | ||
List<String> multiSeriesIds, | ||
List<Long> times, | ||
List<List<String>> multiMeasurementComponentsList, | ||
List<List<TSDataType>> typesList, | ||
List<List<Object>> valuesList) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void insertTablet(Tablet tablet) throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void insertAlignedTablet(Tablet tablet) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
ISessionDataSet executeQueryStatement(String sql) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void executeNonQueryStatement(String deleteSeriesSql) | ||
throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void close() throws IoTDBConnectionException; | ||
} |
17 changes: 17 additions & 0 deletions
17
iotdb-1.3/src/main/java/cn/edu/tsinghua/iot/benchmark/iotdb130/ISessionDataSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package cn.edu.tsinghua.iot.benchmark.iotdb130; | ||
|
||
import org.apache.iotdb.isession.SessionDataSet; | ||
import org.apache.iotdb.rpc.IoTDBConnectionException; | ||
import org.apache.iotdb.rpc.StatementExecutionException; | ||
|
||
import org.apache.tsfile.read.common.RowRecord; | ||
|
||
public interface ISessionDataSet { | ||
RowRecord next() throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
boolean hasNext() throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
void close() throws IoTDBConnectionException, StatementExecutionException; | ||
|
||
SessionDataSet.DataIterator iterator(); | ||
} |
Oops, something went wrong.