diff --git a/source/server/mnode/inc/mnodeInt.h b/source/server/mnode/inc/mnodeInt.h new file mode 100644 index 0000000000..60b748f0ea --- /dev/null +++ b/source/server/mnode/inc/mnodeInt.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_MNODE_INT_H_ +#define _TD_MNODE_INT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_MNODE_INT_H_*/ \ No newline at end of file diff --git a/source/server/mnode/test/mnodeTests.cpp b/source/server/mnode/test/mnodeTests.cpp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/source/server/qnode/inc/qnodeInt.h b/source/server/qnode/inc/qnodeInt.h new file mode 100644 index 0000000000..43df47845b --- /dev/null +++ b/source/server/qnode/inc/qnodeInt.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_QNODE_INT_H_ +#define _TD_QNODE_INT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_QNODE_INT_H_*/ \ No newline at end of file diff --git a/source/server/qnode/test/qnodeTests.cpp b/source/server/qnode/test/qnodeTests.cpp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/source/server/vnode/CMakeLists.txt b/source/server/vnode/CMakeLists.txt index 1334bda9c5..75d24ed64e 100644 --- a/source/server/vnode/CMakeLists.txt +++ b/source/server/vnode/CMakeLists.txt @@ -1,7 +1,17 @@ +add_subdirectory(meta) +add_subdirectory(tq) +add_subdirectory(tsdb) + aux_source_directory(src VNODE_SRC) add_library(vnode ${VNODE_SRC}) target_include_directories( vnode PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode" private "${CMAKE_CURRENT_SOURCE_DIR}/inc" +) +target_include_directories( + vnode + PRIVATE meta + PRIVATE tq + PRIVATE tsdb ) \ No newline at end of file diff --git a/source/server/vnode/inc/vnodeInt.h b/source/server/vnode/inc/vnodeInt.h new file mode 100644 index 0000000000..855eb66c8a --- /dev/null +++ b/source/server/vnode/inc/vnodeInt.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_VNODE_INT_H_ +#define _TD_VNODE_INT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_VNODE_INT_H_*/ \ No newline at end of file diff --git a/source/server/vnode/meta/CMakeLists.txt b/source/server/vnode/meta/CMakeLists.txt new file mode 100644 index 0000000000..7ce192ef3e --- /dev/null +++ b/source/server/vnode/meta/CMakeLists.txt @@ -0,0 +1,7 @@ +aux_source_directory(src META_SRC) +add_library(meta ${META_SRC}) +target_include_directories( + meta + PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode/meta" + PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" +) \ No newline at end of file diff --git a/source/server/vnode/meta/inc/metaInt.h b/source/server/vnode/meta/inc/metaInt.h new file mode 100644 index 0000000000..8b9adfca89 --- /dev/null +++ b/source/server/vnode/meta/inc/metaInt.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_META_INT_H_ +#define _TD_META_INT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_META_INT_H_*/ \ No newline at end of file diff --git a/source/server/vnode/meta/src/meta.c b/source/server/vnode/meta/src/meta.c new file mode 100644 index 0000000000..e69de29bb2 diff --git a/source/server/vnode/meta/test/metaTests.cpp b/source/server/vnode/meta/test/metaTests.cpp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/source/server/vnode/test/vnodeTests.cpp b/source/server/vnode/test/vnodeTests.cpp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/source/server/vnode/tq/CMakeLists.txt b/source/server/vnode/tq/CMakeLists.txt new file mode 100644 index 0000000000..f4102b8d4b --- /dev/null +++ b/source/server/vnode/tq/CMakeLists.txt @@ -0,0 +1,7 @@ +aux_source_directory(src TQ_SRC) +add_library(tq ${TQ_SRC}) +target_include_directories( + tq + PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode/tq" + PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" +) \ No newline at end of file diff --git a/source/server/vnode/tq/inc/tqInt.h b/source/server/vnode/tq/inc/tqInt.h new file mode 100644 index 0000000000..9a4b973106 --- /dev/null +++ b/source/server/vnode/tq/inc/tqInt.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_TQ_INT_H_ +#define _TD_TQ_INT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_TQ_INT_H_*/ \ No newline at end of file diff --git a/source/server/vnode/tq/src/tq.c b/source/server/vnode/tq/src/tq.c new file mode 100644 index 0000000000..6dea4a4e57 --- /dev/null +++ b/source/server/vnode/tq/src/tq.c @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ \ No newline at end of file diff --git a/source/server/vnode/tq/test/tqTests.cpp b/source/server/vnode/tq/test/tqTests.cpp new file mode 100644 index 0000000000..e69de29bb2 diff --git a/source/server/vnode/tsdb/CMakeLists.txt b/source/server/vnode/tsdb/CMakeLists.txt new file mode 100644 index 0000000000..19ad9e1591 --- /dev/null +++ b/source/server/vnode/tsdb/CMakeLists.txt @@ -0,0 +1,7 @@ +aux_source_directory(src TSDB_SRC) +add_library(tsdb ${TSDB_SRC}) +target_include_directories( + tsdb + PUBLIC "${CMAKE_SOURCE_DIR}/include/server/vnode/tsdb" + PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" +) \ No newline at end of file diff --git a/source/server/vnode/tsdb/inc/tsdbInt.h b/source/server/vnode/tsdb/inc/tsdbInt.h new file mode 100644 index 0000000000..b9ee525a9d --- /dev/null +++ b/source/server/vnode/tsdb/inc/tsdbInt.h @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#ifndef _TD_TSDB_INT_H_ +#define _TD_TSDB_INT_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /*_TD_TSDB_INT_H_*/ \ No newline at end of file diff --git a/source/server/vnode/tsdb/src/tsdb.c b/source/server/vnode/tsdb/src/tsdb.c new file mode 100644 index 0000000000..6dea4a4e57 --- /dev/null +++ b/source/server/vnode/tsdb/src/tsdb.c @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ \ No newline at end of file diff --git a/source/server/vnode/tsdb/test/tsdbTests.cpp b/source/server/vnode/tsdb/test/tsdbTests.cpp new file mode 100644 index 0000000000..e69de29bb2