Skip to content

Commit

Permalink
introduce AINode to IoTDB (#13303)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycycse authored Aug 28, 2024
1 parent 96a8574 commit 40a5c30
Show file tree
Hide file tree
Showing 161 changed files with 13,153 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,16 @@ public enum TSStatusCode {
CQ_ALREADY_EXIST(1402),
CQ_UPDATE_LAST_EXEC_TIME_ERROR(1403),

// code 1500-1599 are used by IoTDB-ML
// AI
CREATE_MODEL_ERROR(1500),
DROP_MODEL_ERROR(1501),
MODEL_EXIST_ERROR(1502),
GET_MODEL_INFO_ERROR(1503),
NO_REGISTERED_AI_NODE_ERROR(1504),
MODEL_NOT_FOUND_ERROR(1505),
REGISTER_AI_NODE_ERROR(1506),
AI_NODE_INTERNAL_ERROR(1510),
REMOVE_AI_NODE_ERROR(1511),

// Pipe Plugin
CREATE_PIPE_PLUGIN_ERROR(1600),
Expand Down
11 changes: 11 additions & 0 deletions iotdb-core/ainode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# generated by Thrift
/iotdb/thrift/

# generated by maven
/iotdb/conf/

# .whl of ainode, generated by Poetry
/dist/

# the config to build ainode, it will be generated automatically
pyproject.toml
22 changes: 22 additions & 0 deletions iotdb-core/ainode/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
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.
-->

# Apache IoTDB AINode
22 changes: 22 additions & 0 deletions iotdb-core/ainode/README_ZH.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
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.
-->

# Apache IoTDB AINode
62 changes: 62 additions & 0 deletions iotdb-core/ainode/ainode.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?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 xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>ainode-assembly</id>
<formats>
<format>dir</format>
<format>zip</format>
</formats>
<files>
<file>
<source>README.md</source>
</file>
<file>
<source>README_ZH.md</source>
</file>
<file>
<source>${maven.multiModuleProjectDirectory}/LICENSE-binary</source>
<destName>LICENSE</destName>
</file>
<file>
<source>${maven.multiModuleProjectDirectory}/NOTICE-binary</source>
<destName>NOTICE</destName>
</file>
</files>
<fileSets>
<fileSet>
<directory>resources/conf</directory>
<outputDirectory>conf</outputDirectory>
</fileSet>
<fileSet>
<directory>resources/sbin</directory>
<outputDirectory>sbin</outputDirectory>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
<directory>dist</directory>
<outputDirectory>lib</outputDirectory>
<includes>
<include>*.whl</include>
</includes>
</fileSet>
</fileSets>
</assembly>
17 changes: 17 additions & 0 deletions iotdb-core/ainode/iotdb/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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.
#
17 changes: 17 additions & 0 deletions iotdb-core/ainode/iotdb/ainode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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.
#
Loading

0 comments on commit 40a5c30

Please sign in to comment.