-
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.
- Loading branch information
Showing
18 changed files
with
2,406 additions
and
2 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
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,112 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>cn.edu.tsinghua</groupId> | ||
<artifactId>iot-benchmark</artifactId> | ||
<version>1.0.0</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
<artifactId>iotdb-1.3</artifactId> | ||
<name>Benchmark IoTDB 1.3</name> | ||
|
||
<repositories> | ||
<repository> | ||
<id>snapshot_id</id> | ||
<name>snapshot_name</name> | ||
<url>https://repository.apache.org/content/repositories/snapshots</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
|
||
<properties> | ||
<!-- This was the last version to support Java 8 --> | ||
<logback.version>1.3.14</logback.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>cn.edu.tsinghua</groupId> | ||
<artifactId>core</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.iotdb</groupId> | ||
<artifactId>iotdb-jdbc</artifactId> | ||
<version>1.3.1-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.iotdb</groupId> | ||
<artifactId>iotdb-session</artifactId> | ||
<version>1.3.1-SNAPSHOT</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<version>${logback.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-core</artifactId> | ||
<version>${logback.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
<build> | ||
<finalName>iot-benchmark-iotdb-1.3</finalName> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>3.1.0</version> | ||
<executions> | ||
<!-- Package binaries--> | ||
<execution> | ||
<id>server-assembly</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>src/assembly/assembly.xml</descriptor> | ||
</descriptors> | ||
<appendAssemblyId>false</appendAssemblyId> | ||
<archive> | ||
<manifest> | ||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries> | ||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> | ||
</manifest> | ||
</archive> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
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,71 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<assembly> | ||
<id>IoTDB-1.3</id> | ||
<formats> | ||
<format>dir</format> | ||
<format>zip</format> | ||
</formats> | ||
<includeBaseDirectory>true</includeBaseDirectory> | ||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>lib</outputDirectory> | ||
</dependencySet> | ||
</dependencySets> | ||
<fileSets> | ||
<fileSet> | ||
<directory>${maven.multiModuleProjectDirectory}/configuration/bin/</directory> | ||
<outputDirectory>bin</outputDirectory> | ||
<fileMode>0755</fileMode> | ||
</fileSet> | ||
<fileSet> | ||
<directory>${maven.multiModuleProjectDirectory}/configuration/conf/</directory> | ||
<outputDirectory>conf</outputDirectory> | ||
</fileSet> | ||
</fileSets> | ||
<files> | ||
<file> | ||
<source>${maven.multiModuleProjectDirectory}/configuration/benchmark.bat</source> | ||
</file> | ||
<file> | ||
<source>${maven.multiModuleProjectDirectory}/configuration/benchmark.sh</source> | ||
<fileMode>0755</fileMode> | ||
</file> | ||
<file> | ||
<source>${maven.multiModuleProjectDirectory}/configuration/rep-benchmark.sh</source> | ||
<fileMode>0755</fileMode> | ||
</file> | ||
|
||
<file> | ||
<source>${maven.multiModuleProjectDirectory}/configuration/cli-benchmark.sh</source> | ||
<fileMode>0755</fileMode> | ||
</file> | ||
<file> | ||
<source>${maven.multiModuleProjectDirectory}/configuration/routine</source> | ||
</file> | ||
<file> | ||
<source>${maven.multiModuleProjectDirectory}/LICENSE</source> | ||
</file> | ||
<file> | ||
<source>${project.build.outputDirectory}/git.properties</source> | ||
</file> | ||
</files> | ||
</assembly> |
59 changes: 59 additions & 0 deletions
59
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,59 @@ | ||
package cn.edu.tsinghua.iot.benchmark.iotdb130; | ||
|
||
import org.apache.iotdb.rpc.IoTDBConnectionException; | ||
import org.apache.iotdb.rpc.StatementExecutionException; | ||
import org.apache.iotdb.tsfile.file.metadata.enums.TSDataType; | ||
import org.apache.iotdb.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; | ||
} |
16 changes: 16 additions & 0 deletions
16
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,16 @@ | ||
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.iotdb.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.