You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ha...@apache.org on 2024/07/07 13:28:27 UTC
(tsfile) branch iotdb updated (5ea48cd1 -> e625bbbd)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
from 5ea48cd1 upgrade version to bf6a2f3
new 26f00fe8 Implement chunk reader without statistics (#133)
new 39f0289f Add "Navigating-Time-Series Data" document
new ae9df85c Add a Data Model document (#138)
new e76fb3dc Modify directory order (#140)
new 0b3b72f5 change readme content order (#142)
new d289efb5 Fix the bitpack_codec to keep it consistent with the Java version. (#123)
new 0af0ec3b fix/plain_decoder (#125)
new f844be8f fix the class to prevent the program from crashing unexpectedly (#126)
new 08e0fad4 fix ZigZagCodec (#124)
new 1e864101 [CPP] Fix syntax and logic errors in files under the 'filter' directory (#135)
new f8c0b5ea Update Quick Start Document (#145)
new 3be4c18e fix rlbe (#143)
new f98273cf apply spotless
new 425fb467 feature: finish multiple flush for c++_tsfile (#110)
new 5c3fb4d1 Python wrapper. (#112)
new 2fe90ead fix error link (#148)
new 71bf1a14 Fix Invalid GitHub label (#149)
new 374d366e feature/unittests (#134)
new ccc6aba6 Bump org.apache.maven.plugins:maven-source-plugin from 3.2.1 to 3.3.1 (#105)
new 45ae3075 Bump org.xerial.snappy:snappy-java from 1.1.10.4 to 1.1.10.5 (#106)
new e5cbef96 Bump au.com.acegi:xml-format-maven-plugin from 3.2.2 to 3.3.1 (#15)
new 7042afb7 Bump com.gradle:gradle-enterprise-maven-extension from 1.19.2 to 1.20.1 (#36)
new e8200c8b Bump com.github.luben:zstd-jni from 1.5.5-5 to 1.5.6-3 (#70)
new 03c39745 Create codeql.yml for code scan (#150)
new 0ae8ddab support separated aligned chunk (#151)
new 0bfec3b3 fix get_cur_timestamp (#159)
new ab5c48db Bump org.apache.rat:apache-rat-plugin from 0.15 to 0.16.1 (#152)
new 74c7ec46 Bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.3.0 (#153)
new c045903c Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.1 to 3.5.0 (#154)
new a31a9ae7 Bump org.codehaus.mojo:extra-enforcer-rules from 1.7.0 to 1.8.0 (#155)
new eb74c0a9 enhance test for direct buffer (#146)
new 9c68a357 Fix uncompress page data (#161)
new e625bbbd upgrade version to 9c68a35
The 33 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.asf.yaml | 2 +
.github/workflows/codeql.yml | 84 +
.github/workflows/unit-test.yml | 13 +-
.gitignore | 11 +
.mvn/extensions.xml | 2 +-
README-zh.md | 4 +-
README.md | 4 +-
cpp/CMakeLists.txt | 3 +
cpp/README-zh.md | 4 +-
cpp/pom.xml | 4 +-
cpp/src/common/allocator/byte_stream.h | 2 +-
cpp/src/common/config/config.h | 2 +
cpp/src/common/container/array.h | 2 +-
cpp/src/common/container/hash_table.h | 4 +-
cpp/src/common/container/simple_vector.h | 2 +
cpp/src/common/datatype/value.h | 11 +-
cpp/src/common/global.cc | 2 +
cpp/src/common/tsfile_common.h | 9 +
cpp/src/cwrapper/TsFile-cwrapper.cc | 16 +-
cpp/src/encoding/bitpack_decoder.h | 16 +-
cpp/src/encoding/bitpack_encoder.h | 55 +-
cpp/src/encoding/dictionary_encoder.h | 6 +
cpp/src/encoding/encoder.h | 8 +
cpp/src/encoding/gorilla_encoder.h | 6 +-
cpp/src/encoding/intpacker.h | 27 +-
cpp/src/encoding/plain_decoder.h | 2 +
cpp/src/encoding/plain_encoder.h | 8 +-
cpp/src/encoding/ts2diff_encoder.h | 5 +
cpp/src/encoding/zigzag_decoder.h | 22 +-
cpp/src/encoding/zigzag_encoder.h | 28 +-
cpp/src/file/tsfile_io_writer.cc | 2 -
cpp/src/file/tsfile_io_writer.h | 4 +-
cpp/src/reader/filter/between.h | 2 +
cpp/src/reader/filter/eq.h | 21 +-
cpp/src/reader/filter/gt.h | 23 +-
cpp/src/reader/filter/gt_eq.h | 23 +-
cpp/src/reader/filter/in.h | 8 +-
cpp/src/reader/filter/lt.h | 28 +-
cpp/src/reader/filter/lt_eq.h | 25 +-
cpp/src/reader/filter/not_eq.h | 27 +-
cpp/src/reader/filter/object.h | 182 +-
cpp/src/reader/filter/or_filter.h | 53 +-
cpp/src/reader/tsfile_executor.cc | 4 +
cpp/src/utils/db_utils.h | 2 +-
cpp/src/writer/chunk_writer.cc | 9 +
cpp/src/writer/chunk_writer.h | 2 +
cpp/src/writer/page_writer.h | 12 +
cpp/src/writer/tsfile_writer.cc | 104 +-
cpp/src/writer/tsfile_writer.h | 8 +-
cpp/test/CMakeLists.txt | 54 +
cpp/test/common/allocator/alloc_base_test.cc | 64 +
cpp/test/common/allocator/byte_stream_test.cc | 286 ++
cpp/test/common/allocator/my_string_test.cc | 105 +
cpp/test/common/allocator/page_arena_test.cc | 58 +
cpp/test/common/container/array_test.cc | 168 +
cpp/test/common/container/bit_map_test.cc | 93 +
cpp/test/common/container/byte_buffer_test.cc | 69 +
cpp/test/common/container/list_test.cc | 95 +
cpp/test/common/container/murmur_hash3_test.cc | 57 +
.../common/container/simple_vector_test.cc} | 43 +-
cpp/test/common/container/slice_test.cc | 96 +
cpp/test/common/container/sorted_array_test.cc | 157 +
cpp/test/common/datatype/value_test.cc | 127 +
cpp/test/common/record_test.cc | 129 +
cpp/test/common/row_record_test.cc | 155 +
cpp/test/common/schema_test.cc | 54 +
cpp/test/common/statistic_test.cc | 202 +
cpp/test/common/tablet_test.cc | 64 +
cpp/test/common/tsblock/tslock_test.cc | 153 +
cpp/test/common/tsblock/tuple_desc_test.cc | 104 +
.../tsblock/vector/fixed_length_vector_test.cc | 75 +
.../tsblock/vector/variable_length_vector_test.cc | 75 +
cpp/test/common/tsfile_common_test.cc | 415 ++
cpp/test/compress/lz4_compressor_test.cc | 131 +
cpp/test/encoding/bitpack_codec_test.cc | 289 ++
cpp/test/encoding/dictionary_codec_test.cc | 101 +
cpp/test/encoding/gorilla_codec_test.cc | 110 +
cpp/test/encoding/inpacker_test.cc | 57 +
cpp/test/encoding/plain_codec_test.cc | 91 +
cpp/test/encoding/ts2diff_codec_test.cc | 92 +
cpp/test/encoding/zigzag_codec_test.cc | 136 +
cpp/test/file/open_file_test.cc | 113 +
cpp/test/file/write_file_test.cc | 107 +
cpp/test/utils/db_utils_test.cc | 218 +
cpp/test/writer/chunk_writer_test.cc | 99 +
cpp/test/writer/page_writer_test.cc | 93 +
cpp/test/writer/tsfile_writer_test.cc | 216 +
docs/pnpm-lock.yaml | 4950 +++++++++-----------
docs/src/.vuepress/sidebar/V1.0.x/en.ts | 11 +
docs/src/.vuepress/sidebar/V1.0.x/zh.ts | 11 +
docs/src/UserGuide/latest/QuickStart/Data-Model.md | 65 +
.../QuickStart/Navigating_Time_Series_Data.md | 64 +
docs/src/UserGuide/latest/QuickStart/QuickStart.md | 566 +--
.../latest/QuickStart => stage}/QuickStart.md | 0
.../zh/UserGuide/latest/QuickStart/Data-Model.md | 65 +
.../QuickStart/Navigating_Time_Series_Data.md | 67 +
.../zh/UserGuide/latest/QuickStart/QuickStart.md | 560 +--
.../latest/QuickStart => stage}/QuickStart.md | 0
java/common/pom.xml | 2 +-
java/examples/pom.xml | 4 +-
.../java/org/apache/tsfile/TsFileSequenceRead.java | 76 +-
java/pom.xml | 8 +-
java/tsfile/README-zh.md | 45 +-
java/tsfile/README.md | 45 +-
java/tsfile/pom.xml | 4 +-
.../apache/tsfile/encoding/decoder/Decoder.java | 3 +-
.../tsfile/encoding/decoder/FloatDecoder.java | 11 +
.../tsfile/encoding/encoder/FloatEncoder.java | 9 +
.../tsfile/encoding/encoder/TSEncodingBuilder.java | 6 +-
.../apache/tsfile/read/TsFileSequenceReader.java | 30 +-
.../read/reader/chunk/AlignedChunkReader.java | 10 +-
.../AlignedChunkReaderWithoutStatistics.java} | 27 +-
.../tsfile/read/reader/chunk/ChunkReader.java | 10 +-
.../chunk/ChunkReaderWithoutStatistics.java} | 17 +-
.../tsfile/read/reader/page/AlignedPageReader.java | 8 +
.../tsfile/write/chunk/AlignedChunkWriterImpl.java | 14 +-
.../apache/tsfile/write/chunk/TimeChunkWriter.java | 14 +-
.../java/org/apache/tsfile/compress/LZ4Test.java | 27 +
.../java/org/apache/tsfile/compress/LZMA2Test.java | 2 +-
.../java/org/apache/tsfile/compress/ZstdTest.java | 2 +-
...> AlignedChunkReaderWithoutStatisticsTest.java} | 48 +-
....java => ChunkReaderWithoutStatisticsTest.java} | 25 +-
pom.xml | 51 +-
{cpp => python}/README-zh.md | 6 +-
python/README.md | 66 +
python/examlpes.py | 82 +
python/pom.xml | 127 +
cpp/test_all.sh => python/requirements.txt | 8 +-
python/setup.py | 125 +
python/test.py | 171 +
cpp/test_all.sh => python/tsfile/__init__.py | 2 +-
python/tsfile/tsfile.pxd | 104 +
python/tsfile/tsfile.py | 145 +
python/tsfile/tsfile_pywrapper.pyx | 348 ++
134 files changed, 9648 insertions(+), 4047 deletions(-)
create mode 100644 .github/workflows/codeql.yml
create mode 100644 cpp/test/CMakeLists.txt
create mode 100644 cpp/test/common/allocator/alloc_base_test.cc
create mode 100644 cpp/test/common/allocator/byte_stream_test.cc
create mode 100644 cpp/test/common/allocator/my_string_test.cc
create mode 100644 cpp/test/common/allocator/page_arena_test.cc
create mode 100644 cpp/test/common/container/array_test.cc
create mode 100644 cpp/test/common/container/bit_map_test.cc
create mode 100644 cpp/test/common/container/byte_buffer_test.cc
create mode 100644 cpp/test/common/container/list_test.cc
create mode 100644 cpp/test/common/container/murmur_hash3_test.cc
copy cpp/{src/common/container/bit_map.cc => test/common/container/simple_vector_test.cc} (55%)
create mode 100644 cpp/test/common/container/slice_test.cc
create mode 100644 cpp/test/common/container/sorted_array_test.cc
create mode 100644 cpp/test/common/datatype/value_test.cc
create mode 100644 cpp/test/common/record_test.cc
create mode 100644 cpp/test/common/row_record_test.cc
create mode 100644 cpp/test/common/schema_test.cc
create mode 100644 cpp/test/common/statistic_test.cc
create mode 100644 cpp/test/common/tablet_test.cc
create mode 100644 cpp/test/common/tsblock/tslock_test.cc
create mode 100644 cpp/test/common/tsblock/tuple_desc_test.cc
create mode 100644 cpp/test/common/tsblock/vector/fixed_length_vector_test.cc
create mode 100644 cpp/test/common/tsblock/vector/variable_length_vector_test.cc
create mode 100644 cpp/test/common/tsfile_common_test.cc
create mode 100644 cpp/test/compress/lz4_compressor_test.cc
create mode 100644 cpp/test/encoding/bitpack_codec_test.cc
create mode 100644 cpp/test/encoding/dictionary_codec_test.cc
create mode 100644 cpp/test/encoding/gorilla_codec_test.cc
create mode 100644 cpp/test/encoding/inpacker_test.cc
create mode 100644 cpp/test/encoding/plain_codec_test.cc
create mode 100644 cpp/test/encoding/ts2diff_codec_test.cc
create mode 100644 cpp/test/encoding/zigzag_codec_test.cc
create mode 100644 cpp/test/file/open_file_test.cc
create mode 100644 cpp/test/file/write_file_test.cc
create mode 100644 cpp/test/utils/db_utils_test.cc
create mode 100644 cpp/test/writer/chunk_writer_test.cc
create mode 100644 cpp/test/writer/page_writer_test.cc
create mode 100644 cpp/test/writer/tsfile_writer_test.cc
create mode 100644 docs/src/UserGuide/latest/QuickStart/Data-Model.md
create mode 100644 docs/src/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md
copy docs/src/{UserGuide/latest/QuickStart => stage}/QuickStart.md (100%)
create mode 100644 docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md
create mode 100644 docs/src/zh/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md
copy docs/src/zh/{UserGuide/latest/QuickStart => stage}/QuickStart.md (100%)
copy java/tsfile/src/main/java/org/apache/tsfile/read/{filter/basic/DisableStatisticsValueFilter.java => reader/chunk/AlignedChunkReaderWithoutStatistics.java} (56%)
copy java/tsfile/src/main/java/org/apache/tsfile/{fileSystem/fileInputFactory/LocalFSInputFactory.java => read/reader/chunk/ChunkReaderWithoutStatistics.java} (69%)
copy java/tsfile/src/test/java/org/apache/tsfile/read/reader/{ChunkReaderTest.java => AlignedChunkReaderWithoutStatisticsTest.java} (63%)
copy java/tsfile/src/test/java/org/apache/tsfile/read/reader/{ChunkReaderTest.java => ChunkReaderWithoutStatisticsTest.java} (81%)
copy {cpp => python}/README-zh.md (96%)
create mode 100644 python/README.md
create mode 100644 python/examlpes.py
create mode 100644 python/pom.xml
copy cpp/test_all.sh => python/requirements.txt (86%)
create mode 100644 python/setup.py
create mode 100644 python/test.py
copy cpp/test_all.sh => python/tsfile/__init__.py (94%)
create mode 100644 python/tsfile/tsfile.pxd
create mode 100644 python/tsfile/tsfile.py
create mode 100644 python/tsfile/tsfile_pywrapper.pyx
(tsfile) 19/33: Bump org.apache.maven.plugins:maven-source-plugin from 3.2.1 to 3.3.1 (#105)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit ccc6aba68b34a37d7cc5378aaf0cf3dff43dfbe8
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Thu Jul 4 20:50:48 2024 +0800
Bump org.apache.maven.plugins:maven-source-plugin from 3.2.1 to 3.3.1 (#105)
Bumps [org.apache.maven.plugins:maven-source-plugin](https://github.com/apache/maven-source-plugin) from 3.2.1 to 3.3.1.
- [Commits](https://github.com/apache/maven-source-plugin/compare/maven-source-plugin-3.2.1...maven-source-plugin-3.3.1)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-source-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 4927e735..9689d0d0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -175,7 +175,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
- <version>3.2.1</version>
+ <version>3.3.1</version>
</plugin>
<plugin>
<groupId>au.com.acegi</groupId>
(tsfile) 29/33: Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.1 to 3.5.0 (#154)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit c045903c216ebe0b4cc2023ff38d007357eb3669
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Jul 5 18:52:26 2024 +0800
Bump org.apache.maven.plugins:maven-enforcer-plugin from 3.4.1 to 3.5.0 (#154)
Bumps [org.apache.maven.plugins:maven-enforcer-plugin](https://github.com/apache/maven-enforcer) from 3.4.1 to 3.5.0.
- [Release notes](https://github.com/apache/maven-enforcer/releases)
- [Commits](https://github.com/apache/maven-enforcer/compare/enforcer-3.4.1...enforcer-3.5.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-enforcer-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 3f2f6b74..5a920aa1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -160,7 +160,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
- <version>3.4.1</version>
+ <version>3.5.0</version>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
(tsfile) 09/33: fix ZigZagCodec (#124)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 08e0fad43bc43ea7991d52b41502e62f6a12ba32
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Thu Jun 27 11:36:28 2024 +0800
fix ZigZagCodec (#124)
* fix ZigZagCodec
* fix ZigZagCodec
---
cpp/src/encoding/zigzag_decoder.h | 22 ++++++++--------------
cpp/src/encoding/zigzag_encoder.h | 28 ++++++++++++----------------
2 files changed, 20 insertions(+), 30 deletions(-)
diff --git a/cpp/src/encoding/zigzag_decoder.h b/cpp/src/encoding/zigzag_decoder.h
index 54be5ee4..176c0ccd 100644
--- a/cpp/src/encoding/zigzag_decoder.h
+++ b/cpp/src/encoding/zigzag_decoder.h
@@ -61,14 +61,8 @@ class ZigzagDecoder {
}
void read_header(common::ByteStream &in) {
- flush_byte_if_empty(in);
- zigzag_length_ = buffer_;
- buffer_ = 0;
- bits_left_ = 0;
- flush_byte_if_empty(in);
- int_length_ = buffer_;
- buffer_ = 0;
- bits_left_ = 0;
+ common::SerializationUtil::read_var_uint(zigzag_length_, in);
+ common::SerializationUtil::read_var_uint(int_length_, in);
}
void flush_byte_if_empty(common::ByteStream &in) {
@@ -112,7 +106,7 @@ class ZigzagDecoder {
}
int64_t zigzag_decoder(int64_t stored_value_) {
- stored_value_ = (stored_value_ >> 1) ^ -(stored_value_ & 1);
+ stored_value_ = ((uint64_t)stored_value_ >> 1) ^ -(stored_value_ & 1);
return stored_value_;
}
@@ -127,8 +121,8 @@ class ZigzagDecoder {
int first_bit_of_byte_;
int num_of_sorts_of_zigzag_;
bool first_read_;
- uint8_t zigzag_length_;
- uint8_t int_length_;
+ uint32_t zigzag_length_;
+ uint32_t int_length_;
std::vector<uint8_t> list_transit_in_zd_;
};
@@ -141,7 +135,7 @@ int32_t ZigzagDecoder<int32_t>::decode(common::ByteStream &in) {
buffer_ = 0;
first_read_ = false;
list_transit_in_zd_.clear();
- for (uint8_t i = 0; i < zigzag_length_; i++) {
+ for (uint32_t i = 0; i < zigzag_length_; i++) {
flush_byte_if_empty(in);
list_transit_in_zd_.push_back(buffer_);
buffer_ = 0;
@@ -174,7 +168,7 @@ int64_t ZigzagDecoder<int64_t>::decode(common::ByteStream &in) {
buffer_ = 0;
first_read_ = false;
list_transit_in_zd_.clear();
- for (uint8_t i = 0; i < zigzag_length_; i++) {
+ for (uint32_t i = 0; i < zigzag_length_; i++) {
flush_byte_if_empty(in);
list_transit_in_zd_.push_back(buffer_);
buffer_ = 0;
@@ -202,4 +196,4 @@ typedef ZigzagDecoder<int32_t> IntZigzagDecoder;
typedef ZigzagDecoder<int64_t> LongZigzagDecoder;
} // end namespace storage
-#endif // ENCODING_zigzag_DECODER_H
+#endif // ENCODING_zigzag_DECODER_H
\ No newline at end of file
diff --git a/cpp/src/encoding/zigzag_encoder.h b/cpp/src/encoding/zigzag_encoder.h
index bcb3aa4f..887ba07d 100644
--- a/cpp/src/encoding/zigzag_encoder.h
+++ b/cpp/src/encoding/zigzag_encoder.h
@@ -97,15 +97,15 @@ int ZigzagEncoder<int32_t>::encode(int32_t value) {
int32_t value_zigzag = (value << 1) ^ (value >> 31);
if ((value_zigzag & ~0x7F) != 0) {
write_byte_with_subsequence(value_zigzag);
- value_zigzag = value_zigzag >> 7;
+ value_zigzag = (uint32_t)value_zigzag >> 7;
while ((value_zigzag & ~0x7F) != 0) {
write_byte_with_subsequence(value_zigzag);
- value_zigzag = value_zigzag >> 7;
+ value_zigzag = (uint32_t)value_zigzag >> 7;
}
}
write_byte_without_subsequence(value_zigzag);
- value_zigzag = value_zigzag >> 7;
+ value_zigzag = (uint32_t)value_zigzag >> 7;
return common::E_OK;
}
@@ -120,26 +120,24 @@ int ZigzagEncoder<int64_t>::encode(int64_t value) {
int64_t value_zigzag = (value << 1) ^ (value >> 63);
if ((value_zigzag & ~0x7F) != 0) {
write_byte_with_subsequence(value_zigzag);
- value_zigzag = value_zigzag >> 7;
+ value_zigzag = (uint64_t)value_zigzag >> 7;
while ((value_zigzag & ~0x7F) != 0) {
write_byte_with_subsequence(value_zigzag);
- value_zigzag = value_zigzag >> 7;
+ value_zigzag = (uint64_t)value_zigzag >> 7;
}
}
write_byte_without_subsequence(value_zigzag);
- value_zigzag = value_zigzag >> 7;
+ value_zigzag = (uint64_t)value_zigzag >> 7;
return common::E_OK;
}
template <>
int ZigzagEncoder<int32_t>::flush(common::ByteStream &out) {
- buffer_ = (uint8_t)(length_of_encode_bytestream_);
- flush_byte(out);
-
- buffer_ = (uint8_t)(length_of_input_bytestream_);
- flush_byte(out);
+ common::SerializationUtil::write_var_uint(length_of_encode_bytestream_,
+ out);
+ common::SerializationUtil::write_var_uint(length_of_input_bytestream_, out);
for (int i = 0; i < length_of_encode_bytestream_; i++) {
buffer_ = (uint8_t)(list_transit_in_ze_[i]);
@@ -151,11 +149,9 @@ int ZigzagEncoder<int32_t>::flush(common::ByteStream &out) {
template <>
int ZigzagEncoder<int64_t>::flush(common::ByteStream &out) {
- buffer_ = (uint8_t)(length_of_encode_bytestream_);
- flush_byte(out);
-
- buffer_ = (uint8_t)(length_of_input_bytestream_);
- flush_byte(out);
+ common::SerializationUtil::write_var_uint(length_of_encode_bytestream_,
+ out);
+ common::SerializationUtil::write_var_uint(length_of_input_bytestream_, out);
for (int i = 0; i < length_of_encode_bytestream_; i++) {
buffer_ = (uint8_t)(list_transit_in_ze_[i]);
(tsfile) 07/33: fix/plain_decoder (#125)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 0af0ec3b5af8872158b742ffce6f7c8d104fd805
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Thu Jun 27 11:23:21 2024 +0800
fix/plain_decoder (#125)
---
cpp/src/encoding/plain_decoder.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpp/src/encoding/plain_decoder.h b/cpp/src/encoding/plain_decoder.h
index c6e04fe2..fb65bcad 100644
--- a/cpp/src/encoding/plain_decoder.h
+++ b/cpp/src/encoding/plain_decoder.h
@@ -20,6 +20,8 @@
#ifndef ENCODING_PLAIN_DECODER_H
#define ENCODING_PLAIN_DECODER_H
+#include "decoder.h"
+
namespace storage {
class PlainDecoder : public Decoder {
(tsfile) 15/33: Python wrapper. (#112)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 5c3fb4d1a30f73cf5ae556eed700369e1f1e7646
Author: Colin Lee <10...@users.noreply.github.com>
AuthorDate: Wed Jul 3 16:23:15 2024 +0800
Python wrapper. (#112)
* Add TsFile Python.
* Fix macos and windows build
* fix import error in windows python over 3.8.
* refine python code.
---------
Co-authored-by: Haonan <hh...@outlook.com>
---
.github/workflows/unit-test.yml | 13 +-
.gitignore | 11 ++
cpp/src/cwrapper/TsFile-cwrapper.cc | 16 +-
cpp/src/reader/tsfile_executor.cc | 4 +
pom.xml | 37 ++++
python/README.md | 66 +++++++
python/examlpes.py | 82 +++++++++
python/pom.xml | 127 +++++++++++++
python/requirements.txt | 24 +++
python/setup.py | 125 +++++++++++++
python/test.py | 171 ++++++++++++++++++
python/tsfile/__init__.py | 18 ++
python/tsfile/tsfile.pxd | 104 +++++++++++
python/tsfile/tsfile.py | 145 +++++++++++++++
python/tsfile/tsfile_pywrapper.pyx | 348 ++++++++++++++++++++++++++++++++++++
15 files changed, 1279 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index afc521f8..a529989d 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -73,13 +73,16 @@ jobs:
core.setOutput('platform_suffix', ``)
}
- - name: Install python packages
- if: ${{ matrix.os == 'ubuntu-latest'}}
- run: pip3 install cython pandas numpy
-
+ # Use python 3.12 to avoid Cython files don't compile on Mingw-w64 64-bit
+ # https://bugs.python.org/issue40167
+ - name: Set up python 3.12 for windows
+ if: ${{ matrix.os == 'windows-latest'}}
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.12'
# Run the actual maven build including all unit- and integration-tests.
- name: Build and test with Maven (All others)
shell: bash
run: |
- ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P with-java,with-cpp clean verify
+ ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -P with-java,with-cpp,with-python clean verify
diff --git a/.gitignore b/.gitignore
index 77f4d73a..944ecf5a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,14 @@ docs/node_modules/
docs/src/.vuepress/.cache/
docs/src/.vuepress/.temp/
docs/src/.vuepress/dist/
+
+# python files
+python/build
+python/tsfile/__pycache__
+python/tsfile/*so*
+python/tsfile/*dll*
+python/tsfile/*dylib*
+python/tsfile/*.h
+python/tsfile/*.cpp
+python/data
+python/venv/*
diff --git a/cpp/src/cwrapper/TsFile-cwrapper.cc b/cpp/src/cwrapper/TsFile-cwrapper.cc
index d2153a1d..df38ce72 100644
--- a/cpp/src/cwrapper/TsFile-cwrapper.cc
+++ b/cpp/src/cwrapper/TsFile-cwrapper.cc
@@ -206,10 +206,6 @@ ErrorCode tsfile_register_table_column(CTsFileWriter writer,
get_datatype(schema->column_def),
get_data_encoding(schema->column_def),
get_data_compression(schema->column_def));
- std::cout << "register table column name" << table_name << std::endl;
- std::cout << "register column name" << schema->name << std::endl;
- std::cout << "register column type" << get_datatype(schema->column_def)
- << std::endl;
return ret;
}
@@ -644,7 +640,9 @@ QueryDataRet ts_reader_begin_end(CTsFileReader reader, const char* table_name,
ret->data = qds;
ret->column_num = column_num;
ret->column_names = (char**)malloc(column_num * sizeof(char*));
- memcpy(ret->column_names, columns_name, column_num * sizeof(char*));
+ for (int i = 0; i < column_num; i++) {
+ ret->column_names[i] = strdup(columns_name[i]);
+ }
storage::QueryExpression::destory(query_expr);
return ret;
}
@@ -666,7 +664,9 @@ QueryDataRet ts_reader_read(CTsFileReader reader, const char* table_name,
ret->data = qds;
ret->column_names = (char**)malloc(column_num * sizeof(char*));
ret->column_num = column_num;
- memcpy(ret->column_names, columns_name, column_num * sizeof(char*));
+ for (int i = 0; i < column_num; i++) {
+ ret->column_names[i] = strdup(columns_name[i]);
+ }
storage::QueryExpression::destory(query_expr);
return ret;
}
@@ -674,6 +674,9 @@ QueryDataRet ts_reader_read(CTsFileReader reader, const char* table_name,
ErrorCode destory_query_dataret(QueryDataRet data) {
storage::QueryDataSet* qds = (storage::QueryDataSet*)data->data;
delete qds;
+ for (int i = 0; i < data->column_num; i++) {
+ free(data->column_names[i]);
+ }
free(data->column_names);
free(data);
return E_OK;
@@ -699,7 +702,6 @@ DataResult* ts_next(QueryDataRet data, int expect_line_count) {
get_schema_info(field->type_));
}
init_tablet = true;
- std::cout << "init finished" << std::endl;
}
for (int col = 0; col < column_num; col++) {
storage::Field* field = record->get_field(col);
diff --git a/cpp/src/reader/tsfile_executor.cc b/cpp/src/reader/tsfile_executor.cc
index e2be78af..757a8e23 100644
--- a/cpp/src/reader/tsfile_executor.cc
+++ b/cpp/src/reader/tsfile_executor.cc
@@ -74,10 +74,14 @@ int TsFileExecutor::execute(QueryExpression *query_expr,
}
if (regular_expr == nullptr || regular_expr->type_ == GLOBALTIME_EXPR) {
+#if DEBUG_SE
std::cout << "got into 1 path" << std::endl;
+#endif
return execute_may_with_global_timefilter(query_exprs_, ret_qds);
} else {
+#if DEBUG_SE
std::cout << "got into 2 path" << std::endl;
+#endif
// no filter or just global time filter
return execute_with_timegenerator(query_exprs_, ret_qds);
}
diff --git a/pom.xml b/pom.xml
index 9c0e1432..4927e735 100644
--- a/pom.xml
+++ b/pom.xml
@@ -121,6 +121,7 @@
<exclude>**/.clang-format</exclude>
<!-- generated by cython-->
<exclude>**/tsfile/tsfile_pywrapper.cpp</exclude>
+ <exclude>**/venv/**</exclude>
</excludes>
</configuration>
</plugin>
@@ -191,6 +192,11 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.6.0</version>
+ </plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
@@ -579,6 +585,13 @@
<module>cpp</module>
</modules>
</profile>
+ <!-- Build the python version of TsFile -->
+ <profile>
+ <id>with-python</id>
+ <modules>
+ <module>python</module>
+ </modules>
+ </profile>
<profile>
<id>.java-9-and-above</id>
<activation>
@@ -653,6 +666,9 @@
<os.suffix>linux</os.suffix>
<os.classifier>linux-x86_64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
+ <python.venv.bin>venv/bin/</python.venv.bin>
+ <python.exe.bin>python3</python.exe.bin>
+ <python.compiler.argument> </python.compiler.argument>
</properties>
</profile>
<!-- Profile for linux amd64 (mainly AMD Processors) (Self-Enabling) -->
@@ -669,6 +685,9 @@
<os.suffix>linux</os.suffix>
<os.classifier>linux-amd64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
+ <python.venv.bin>venv/bin/</python.venv.bin>
+ <python.exe.bin>python3</python.exe.bin>
+ <python.compiler.argument> </python.compiler.argument>
</properties>
</profile>
<!-- Profile for linux aarch64 (mainly newer Mac or Raspberry PI Processors) (Self-Enabling) -->
@@ -685,6 +704,9 @@
<os.suffix>linux</os.suffix>
<os.classifier>linux-${os.arch}</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
+ <python.venv.bin>venv/bin/</python.venv.bin>
+ <python.exe.bin>python3</python.exe.bin>
+ <python.compiler.argument> </python.compiler.argument>
</properties>
</profile>
<!-- Profile for mac x86_64 (mainly Intel Processors) (Self-Enabling) -->
@@ -700,6 +722,9 @@
<os.suffix>mac</os.suffix>
<os.classifier>mac-x86_64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
+ <python.venv.bin>venv/bin/</python.venv.bin>
+ <python.exe.bin>python3</python.exe.bin>
+ <python.compiler.argument> </python.compiler.argument>
</properties>
</profile>
<!-- Profile for mac aarch64 (mainly AMD Processors) (Self-Enabling) -->
@@ -715,6 +740,9 @@
<os.suffix>mac</os.suffix>
<os.classifier>mac-aarch64</os.classifier>
<cmake.generator>Unix Makefiles</cmake.generator>
+ <python.venv.bin>venv/bin/</python.venv.bin>
+ <python.exe.bin>python3</python.exe.bin>
+ <python.compiler.argument> </python.compiler.argument>
</properties>
</profile>
<!-- profile for windows x86_64 (mainly Intel Processors) (Self-Enabling) -->
@@ -732,6 +760,9 @@
<cmake.generator>MinGW Makefiles</cmake.generator>
<!-- The generated code relied on Boost and that relies on VS and can't be built with MinGW -->
<!--cmake.generator>Visual Studio 17 2022</cmake.generator-->
+ <python.venv.bin>venv/Scripts/</python.venv.bin>
+ <python.exe.bin>python</python.exe.bin>
+ <python.compiler.argument>--compiler=mingw32</python.compiler.argument>
</properties>
</profile>
<!-- profile for windows amd64 (mainly AMD Processors) (Self-Enabling) -->
@@ -749,6 +780,9 @@
<cmake.generator>MinGW Makefiles</cmake.generator>
<!-- The generated code relied on Boost and that relies on VS and can't be built with MinGW -->
<!--cmake.generator>Visual Studio 17 2022</cmake.generator-->
+ <python.venv.bin>venv/Scripts/</python.venv.bin>
+ <python.exe.bin>python</python.exe.bin>
+ <python.compiler.argument>--compiler=mingw32</python.compiler.argument>
</properties>
</profile>
<!-- profile for windows aarch64 (mainly newer Mac or Raspberry PI Processors) (Self-Enabling) -->
@@ -766,6 +800,9 @@
<cmake.generator>MinGW Makefiles</cmake.generator>
<!-- The generated code relied on Boost and that relies on VS and can't be built with MinGW -->
<!--cmake.generator>Visual Studio 17 2022</cmake.generator-->
+ <python.venv.bin>venv/Scripts/</python.venv.bin>
+ <python.exe.bin>python</python.exe.bin>
+ <python.compiler.argument>--compiler=mingw32</python.compiler.argument>
</properties>
</profile>
<!-- Little helper profile that will disable running the cmake tests when the maven tests are being skipped -->
diff --git a/python/README.md b/python/README.md
new file mode 100644
index 00000000..0e9ff438
--- /dev/null
+++ b/python/README.md
@@ -0,0 +1,66 @@
+<!--
+
+ 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.
+
+-->
+
+# TsFile Python Document
+
+<pre>
+___________ ___________.__.__
+\__ ___/____\_ _____/|__| | ____
+ | | / ___/| __) | | | _/ __ \
+ | | \___ \ | \ | | |_\ ___/
+ |____|/____ >\___ / |__|____/\___ > version 1.0.0
+ \/ \/ \/
+</pre>
+
+
+## Introduction
+
+This directory contains the Python implementation of TsFile. The Python version is built on the CPP version and uses the Cython package to integrate TsFile's read and write capabilities into the Python environment. Users can read and write TsFile as easily as they use read_csv and write_csv in Pandas.
+
+The source code can be found in the `./tsfile` directory. Files ending with `.pyx` and `.pyd` are wrapper code written in Cython. The `tsfile/tsfile.py` defines some user interfaces. You can find some examples of reading and writing in the `.examples/examples.py`.
+
+
+## How to make contributions
+
+Using pylint to check Python code is recommended. However, there is no suitable style checking tool for Cython code, and this part of the code should be consistent with the Python style required by pylint.
+
+**Feature List**
+- [ ] In pywrapper, invoke the batch reading interface implemented in CPP version of TsFile.
+- [ ] Supports writing multiple DataFrames into one single TsFile.
+
+
+
+## Build
+
+Before constructing Python version of TsFile, it is necessary to build [CPP version of TsFile](../cpp/README.md) first, because Python version of TsFile relies on the shared library files provided by CPP version of TsFile.
+
+Build by mvn in root directory:
+
+```sh
+mvn -P with-cpp,with-python clean verify
+```
+
+Build by python command:
+
+```sh
+python setup.py build_ext --inplace
+```
+
diff --git a/python/examlpes.py b/python/examlpes.py
new file mode 100644
index 00000000..00ced4eb
--- /dev/null
+++ b/python/examlpes.py
@@ -0,0 +1,82 @@
+# 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.
+#
+
+import numpy as np
+import pandas as pd
+import os
+
+import tsfile as ts
+
+
+# test writing data
+data_dir = os.path.join(os.path.dirname(__file__), "test.tsfile")
+DEVICE_NAME = "test_table"
+
+# 1000 rows data
+time = np.arange(1, 1001, dtype=np.int64)
+level = np.linspace(2000, 3000, num=1000, dtype=np.float32)
+num = np.arange(10000, 11000, dtype=np.int64)
+df = pd.DataFrame({"Time": time, "level": level, "num": num})
+
+if os.path.exists(data_dir):
+ os.remove(data_dir)
+ts.write_tsfile(data_dir, DEVICE_NAME, df)
+
+
+# read data we already wrote
+# with 20 chunksize
+tsfile_ret = ts.read_tsfile(data_dir, DEVICE_NAME, ["level", "num"], chunksize=20)
+print(tsfile_ret.shape)
+
+# with 100 chunksize
+tsfile_ret = ts.read_tsfile(data_dir, DEVICE_NAME, ["level", "num"], chunksize=100)
+print(tsfile_ret.shape)
+
+# get all data
+tsfile_ret = ts.read_tsfile(data_dir, DEVICE_NAME, ["level", "num"])
+print(tsfile_ret.shape)
+
+# with iterator
+with ts.read_tsfile(
+ data_dir, DEVICE_NAME, ["level", "num"], iterator=True, chunksize=100
+) as reader:
+ for chunk in reader:
+ print(chunk.shape)
+
+# with time scale and chunksize
+tsfile_ret = ts.read_tsfile(
+ data_dir, DEVICE_NAME, ["level"], start_time=50, end_time=100, chunksize=10
+)
+print(tsfile_ret.shape)
+
+# with time scale
+tsfile_ret = ts.read_tsfile(data_dir, DEVICE_NAME, ["num"], start_time=50, end_time=100)
+print(tsfile_ret.shape)
+
+# with time scale, iterator and chunksize
+with ts.read_tsfile(
+ data_dir,
+ DEVICE_NAME,
+ ["level", "num"],
+ iterator=True,
+ start_time=100,
+ end_time=500,
+ chunksize=100,
+) as reader:
+ for chunk in reader:
+ print(chunk.shape)
diff --git a/python/pom.xml b/python/pom.xml
new file mode 100644
index 00000000..94856f7e
--- /dev/null
+++ b/python/pom.xml
@@ -0,0 +1,127 @@
+<?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
+
+ https://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>org.apache.tsfile</groupId>
+ <artifactId>tsfile-parent</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ </parent>
+ <artifactId>tsfile-python</artifactId>
+ <packaging>pom</packaging>
+ <name>TsFile: Python</name>
+ <properties>
+ <unity.version>2.6.0</unity.version>
+ <groovy.version>4.0.21</groovy.version>
+ <!-- Tell Sonar where to find the sources -->
+ <sonar.sources>tsfile</sonar.sources>
+ <sonar.cfamily.build-wrapper-output>${project.build.directory}/build-wrapper-output</sonar.cfamily.build-wrapper-output>
+ </properties>
+ <build>
+ <sourceDirectory>${project.basedir}</sourceDirectory>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <!-- Create python virtual environment -->
+ <execution>
+ <id>python-venv</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${python.exe.bin}</executable>
+ <arguments>
+ <argument>-m</argument>
+ <argument>venv</argument>
+ <argument>${project.basedir}/venv</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>python-upgrade-pip</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${python.venv.bin}${python.exe.bin}</executable>
+ <arguments>
+ <argument>-m</argument>
+ <argument>pip</argument>
+ <argument>install</argument>
+ <argument>--upgrade</argument>
+ <argument>pip</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>python-install-requirements</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${python.venv.bin}${python.exe.bin}</executable>
+ <arguments>
+ <argument>-m</argument>
+ <argument>pip</argument>
+ <argument>install</argument>
+ <argument>-r</argument>
+ <argument>${project.basedir}/requirements.txt</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>compile-python-code</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${python.venv.bin}${python.exe.bin}</executable>
+ <arguments>
+ <argument>setup.py</argument>
+ <argument>build_ext</argument>
+ <argument>--inplace</argument>
+ <argument>${python.compiler.argument}</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>run-python-tests</id>
+ <phase>test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${python.venv.bin}${python.exe.bin}</executable>
+ <arguments>
+ <argument>${project.basedir}/test.py</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/python/requirements.txt b/python/requirements.txt
new file mode 100644
index 00000000..176150e9
--- /dev/null
+++ b/python/requirements.txt
@@ -0,0 +1,24 @@
+#
+# 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
+#
+# https://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.
+#
+
+cython==3.0.10
+numpy==1.26.4
+pandas==2.2.2
+setuptools==69.5.1
+
diff --git a/python/setup.py b/python/setup.py
new file mode 100644
index 00000000..3d57e55f
--- /dev/null
+++ b/python/setup.py
@@ -0,0 +1,125 @@
+# 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.
+#
+
+from setuptools import setup, Extension
+from setuptools.command.build_ext import build_ext
+from Cython.Build import cythonize
+import numpy as np
+import platform
+import shutil
+import os
+
+
+def copy_lib_files(system, source_dir, target_dir, suffix):
+
+ lib_file_name = f"libtsfile.{suffix}"
+ source = os.path.join(source_dir, lib_file_name)
+ target = os.path.join(target_dir, lib_file_name)
+ shutil.copyfile(source, target)
+
+ if system == "Linux":
+ link_name = os.path.join(target_dir, f"libtsfile.so")
+ if os.path.exists(link_name):
+ os.remove(link_name)
+ os.symlink(lib_file_name, link_name)
+
+
+def copy_header(source, target):
+ shutil.copyfile(source, target)
+
+
+class BuildExt(build_ext):
+ def build_extensions(self):
+ numpy_include = np.get_include()
+ for ext in self.extensions:
+ ext.include_dirs.append(numpy_include)
+ super().build_extensions()
+
+
+project_dir = os.path.dirname(__file__)
+libtsfile_shard_dir = os.path.join(project_dir, "..", "cpp", "target", "build", "lib")
+libtsfile_dir = os.path.join(project_dir, "tsfile")
+include_dir = os.path.join(project_dir, "tsfile")
+source_file = os.path.join(project_dir, "tsfile", "tsfile_pywrapper.pyx")
+
+if platform.system() == "Darwin":
+ copy_lib_files("Darwin", libtsfile_shard_dir, libtsfile_dir, "dylib")
+ copy_lib_files("Darwin", libtsfile_shard_dir, libtsfile_dir, "1.0.dylib")
+elif platform.system() == "Linux":
+ copy_lib_files("Linux", libtsfile_shard_dir, libtsfile_dir, "so.1.0")
+else:
+ copy_lib_files("Windows", libtsfile_shard_dir, libtsfile_dir, "dll")
+ copy_lib_files("Windows", libtsfile_shard_dir, libtsfile_dir, "dll.a")
+
+
+source_include_dir = os.path.join(
+ project_dir, "..", "cpp", "src", "cwrapper", "TsFile-cwrapper.h"
+)
+target_include_dir = os.path.join(project_dir, "tsfile", "TsFile-cwrapper.h")
+copy_header(source_include_dir, target_include_dir)
+
+
+if platform.system() == "Windows":
+ ext_modules_tsfile = [
+ Extension(
+ "tsfile.tsfile_pywrapper",
+ sources=[source_file],
+ libraries=["tsfile"],
+ library_dirs=[libtsfile_dir],
+ include_dirs=[include_dir, np.get_include()],
+ extra_compile_args=["-std=c++11"],
+ language="c++",
+ )
+ ]
+else:
+ ext_modules_tsfile = [
+ Extension(
+ "tsfile.tsfile_pywrapper",
+ sources=[source_file],
+ libraries=["tsfile"],
+ library_dirs=[libtsfile_dir],
+ include_dirs=[include_dir, np.get_include()],
+ runtime_library_dirs=[libtsfile_dir],
+ extra_compile_args=["-std=c++11"],
+ language="c++",
+ )
+ ]
+
+setup(
+ name="tsfile",
+ version="0.1",
+ description="Tsfile reader and writer for python",
+ url="https://tsfile.apache.org",
+ author='"Apache TsFile"',
+ packages=["tsfile"],
+ license="Apache 2.0",
+ ext_modules=cythonize(ext_modules_tsfile),
+ cmdclass={"build_ext": BuildExt},
+ include_dirs=[np.get_include()],
+ package_data={
+ "tsfile": [
+ os.path.join("*tsfile", "*.so*"),
+ os.path.join("*tsfile", "*.dylib"),
+ os.path.join("*tsfile", "*.pyd"),
+ os.path.join("*tsfile", "*.dll"),
+ os.path.join("*tsfile", "*.dll.a"),
+ os.path.join("tsfile", "tsfile.py"),
+ ]
+ },
+ include_package_data=True,
+)
diff --git a/python/test.py b/python/test.py
new file mode 100644
index 00000000..7b0786c1
--- /dev/null
+++ b/python/test.py
@@ -0,0 +1,171 @@
+# 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.
+#
+
+import os
+import platform
+import shutil
+import glob
+
+import unittest as ut
+import numpy as np
+import pandas as pd
+
+if platform.system() == "Windows":
+ extra_dll_dir = os.path.join(os.path.dirname(__file__), "tsfile")
+ os.add_dll_directory(extra_dll_dir)
+ print(extra_dll_dir)
+ print(glob.glob(extra_dll_dir + "/*"))
+
+import tsfile as ts
+from tsfile.tsfile import EmptyFileError
+
+TABLE_NAME = "test_table"
+DATA_PATH = os.path.join(os.path.dirname(__file__), "data")
+
+
+# test writing data
+def test_write_tsfile():
+ # test write empty data
+ df = pd.DataFrame()
+ ts.write_tsfile(DATA_PATH + "/empty.tsfile", TABLE_NAME, df)
+ assert not os.path.exists(DATA_PATH + "/empty.tsfile")
+
+ # data without Time
+ # 1000 rows data
+ level = np.linspace(2000, 3000, num=1000, dtype=np.float32)
+ num = np.arange(10000, 11000, dtype=np.int64)
+ df = pd.DataFrame({"level": level, "num": num})
+ with ut.TestCase().assertRaises(AttributeError):
+ ts.write_tsfile(DATA_PATH + "/no_time.tsfile", TABLE_NAME, df)
+
+ # time with wrong type
+ time = np.arange(1, 1001, dtype=np.float32)
+ df = pd.DataFrame({"Time": time, "level": level, "num": num})
+ with ut.TestCase().assertRaises(TypeError):
+ ts.write_tsfile(DATA_PATH + "/wrong_time_type.tsfile", TABLE_NAME, df)
+ # TXT is not support yet
+ time = np.arange(1, 1001, dtype=np.int64)
+ text = np.random.choice(["a", "b", "c"], 1000)
+ df = pd.DataFrame({"Time": time, "text": text})
+ with ut.TestCase().assertRaises(TypeError):
+ ts.write_tsfile(DATA_PATH + "/txt.tsfile", TABLE_NAME, df)
+
+ # full datatypes test
+ time = np.arange(1, 1001, dtype=np.int64) # int64
+ level = np.linspace(2000, 3000, num=1000, dtype=np.float32) # float32
+ num = np.arange(10000, 11000, dtype=np.int64) # int64
+ bools = np.random.choice([True, False], 1000) # bool
+ double = np.random.rand(1000) # double
+ df = pd.DataFrame(
+ {"Time": time, "level": level, "num": num, "bools": bools, "double": double}
+ )
+ ts.write_tsfile(DATA_PATH + "/full_datatypes.tsfile", TABLE_NAME, df)
+
+
+# test reading data
+def test_read_tsfile():
+ # skip test on windows because of the bug in the tsfile library
+ if platform.system() == "Windows":
+ return
+ # test read a non-existent file
+ with ut.TestCase().assertRaises(FileNotFoundError):
+ ts.read_tsfile(DATA_PATH + "/notexist.tsfile", TABLE_NAME, ["level", "num"])
+
+ # test read empty file
+ with open(DATA_PATH + "/empty.tsfile", "w", encoding="utf-8") as f:
+ pass
+
+ with ut.TestCase().assertRaises(EmptyFileError):
+ ts.read_tsfile(DATA_PATH + "/empty.tsfile", TABLE_NAME, ["level", "num"])
+
+ FILE_NAME = DATA_PATH + "/full_datatypes.tsfile"
+ # test read data
+ ## 1. read all data
+ df, _ = ts.read_tsfile(FILE_NAME, TABLE_NAME, ["level", "num", "bools", "double"])
+ assert df.shape == (1000, 5)
+ assert df["level"].dtype == np.float32
+ assert df["Time"].dtype == np.int64
+ assert df["num"].dtype == np.int64
+ assert df["bools"].dtype == np.bool_
+ assert df["double"].dtype == np.float64
+
+ ## 2. read with chunksize
+ df, _ = ts.read_tsfile(FILE_NAME, TABLE_NAME, ["level", "num"], chunksize=100)
+ assert df.shape == (100, 3)
+ assert df["level"].dtype == np.float32
+ assert df["Time"].sum() == np.arange(1, 101).sum()
+
+ ## 3. read with iterator
+ chunk_num = 0
+ with ts.read_tsfile(
+ FILE_NAME, TABLE_NAME, ["level", "num"], iterator=True, chunksize=100
+ ) as reader:
+ for chunk, _ in reader:
+ assert chunk.shape == (100, 3)
+ assert chunk["level"].dtype == np.float32
+ assert (
+ chunk["Time"].sum()
+ == np.arange(1 + chunk_num * 100, 101 + chunk_num * 100).sum()
+ )
+ chunk_num += 1
+ assert chunk_num == 10
+
+ ## 4. read with time scale
+ df, _ = ts.read_tsfile(FILE_NAME, TABLE_NAME, ["num"], start_time=50, end_time=99)
+ assert df.shape == (50, 2)
+ assert df["num"][0] == 10049
+ assert df["num"][9] == 10058
+
+ ## 5. read with time scale and chunksize
+ df, _ = ts.read_tsfile(
+ FILE_NAME, TABLE_NAME, ["num"], start_time=50, end_time=99, chunksize=10
+ )
+ assert df.shape == (10, 2)
+ assert df["num"][0] == 10049
+ assert df["num"][9] == 10058
+
+ ## 6. read with time scale and iterator
+ chunk_num = 0
+ with ts.read_tsfile(
+ FILE_NAME,
+ TABLE_NAME,
+ ["num"],
+ start_time=50,
+ end_time=99,
+ iterator=True,
+ chunksize=10,
+ ) as reader:
+ for chunk, _ in reader:
+ assert chunk.shape == (10, 2)
+ assert chunk["num"][0] == 10049 + chunk_num * 10
+ assert chunk["num"][9] == 10058 + chunk_num * 10
+ chunk_num += 1
+ assert chunk_num == 5
+
+
+if __name__ == "__main__":
+ if os.path.exists(DATA_PATH):
+ print("Remove old data")
+ shutil.rmtree(DATA_PATH)
+ os.makedirs(DATA_PATH)
+ else:
+ os.makedirs(DATA_PATH)
+ test_write_tsfile()
+ test_read_tsfile()
+ print("All tests passed")
+ shutil.rmtree(DATA_PATH)
diff --git a/python/tsfile/__init__.py b/python/tsfile/__init__.py
new file mode 100644
index 00000000..daa9e0d6
--- /dev/null
+++ b/python/tsfile/__init__.py
@@ -0,0 +1,18 @@
+# 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.
+#
+from .tsfile import read_tsfile, write_tsfile
diff --git a/python/tsfile/tsfile.pxd b/python/tsfile/tsfile.pxd
new file mode 100644
index 00000000..a41794e2
--- /dev/null
+++ b/python/tsfile/tsfile.pxd
@@ -0,0 +1,104 @@
+# 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.
+#
+
+#cython: language_level=3
+cdef extern from "limits.h":
+ long long LLONG_MAX
+ long long LLONG_MIN
+
+cdef extern from "./TsFile-cwrapper.h":
+ # common
+ ctypedef int ErrorCode
+ ctypedef long long timestamp
+ ctypedef long long SchemaInfo
+
+
+
+ # for read data from tsfile
+ ctypedef void* CTsFileReader
+ ctypedef void* TsFileRowData
+ ctypedef void* QueryDataRetINTERNAL
+ ctypedef void* TimeFilterExpression
+
+ cdef struct query_data_ret:
+ char** column_names
+ int column_num
+ QueryDataRetINTERNAL data
+
+ ctypedef query_data_ret* QueryDataRet
+
+
+ # for writer data to tsfile
+ ctypedef void* CTsFileWriter
+ cdef struct column_schema:
+ char* name
+ SchemaInfo column_def
+ ctypedef column_schema ColumnSchema
+
+ cdef struct TableSchema:
+ char* table_name
+ ColumnSchema** column_schema
+ int column_num
+
+ cdef struct Tablet:
+ char* table_name
+ ColumnSchema** column_schema
+ int column_num
+ timestamp* times
+ bint** bitmap
+ void** value
+ int cur_num
+ int max_capacity
+
+ ctypedef Tablet DataResult
+
+ # Function Declarations
+ # reader:tsfile reader
+ CTsFileReader ts_reader_open(const char* path, ErrorCode* err_code)
+ ErrorCode ts_reader_close(CTsFileReader reader)
+
+ # writer:tsfile writer
+ CTsFileWriter ts_writer_open(const char* path, ErrorCode* err_code)
+ ErrorCode ts_writer_close(CTsFileWriter writer)
+
+
+ # read tsfile data
+ QueryDataRet ts_reader_begin_end(CTsFileReader reader, const char* table_name,
+ char** columns, int colum_num, timestamp start_time, timestamp end_time)
+ QueryDataRet ts_reader_read(CTsFileReader reader, const char* table_name,
+ char** columns, int colum_num)
+ DataResult* ts_next(QueryDataRet data, int expect_line_count)
+ ErrorCode destory_query_dataret(QueryDataRet query_data_set)
+ ErrorCode destory_tablet(Tablet* tablet)
+
+ # writer tsfile data
+ ErrorCode tsfile_register_table(CTsFileWriter writer, TableSchema* schema)
+ ErrorCode tsfile_register_table_column(CTsFileWriter writer, const char* table_name, ColumnSchema* schema)
+ TsFileRowData create_tsfile_row(const char* table_name, timestamp timestamp, int column_length)
+ ErrorCode insert_data_into_tsfile_row_int32(TsFileRowData row_data, char* column_name, int value)
+ ErrorCode insert_data_into_tsfile_row_int64(TsFileRowData row_data, char* column_name, long long value)
+ ErrorCode insert_data_into_tsfile_row_float(TsFileRowData row_data, char* column_name, float value)
+ ErrorCode insert_data_into_tsfile_row_double(TsFileRowData row_data, char* column_name, double value)
+ ErrorCode insert_data_into_tsfile_row_boolean(TsFileRowData row_data, char* column_name, bint value)
+ ErrorCode tsfile_write_row_data(CTsFileWriter writer, TsFileRowData data);
+ ErrorCode tsfile_flush_data(CTsFileWriter writer)
+ ErrorCode destory_tsfile_row(TsFileRowData data)
+
+
+
+
\ No newline at end of file
diff --git a/python/tsfile/tsfile.py b/python/tsfile/tsfile.py
new file mode 100644
index 00000000..0edb1bd5
--- /dev/null
+++ b/python/tsfile/tsfile.py
@@ -0,0 +1,145 @@
+# 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.
+#
+import os
+import platform
+import ctypes
+
+if platform.system() == "Windows":
+ ctypes.CDLL(os.path.join(os.path.dirname(__file__), "libtsfile.dll"), winmode=0)
+from .tsfile_pywrapper import tsfile_reader, tsfile_writer
+from typing import overload
+from pandas import DataFrame
+
+TIMESTAMP_STR = "Time"
+
+class EmptyFileError(Exception):
+ def __init__(self, message="File is empty"):
+ self.message = message
+ super().__init__(self.message)
+
+
+# default case -> Dataframe
+@overload
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+) -> DataFrame: ...
+
+
+# case with filter -> Dataframe
+@overload
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+ filter: str,
+ start_time: int,
+ end_time: int,
+) -> DataFrame: ...
+
+
+# chunksize = int -> Dataframe
+@overload
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+ chunksize: int,
+) -> DataFrame: ...
+
+
+@overload
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+ filter: str,
+ start_time: int,
+ end_time: int,
+ chunksize: int,
+) -> DataFrame: ...
+
+
+# iterator = True -> Iterator
+@overload
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+ iterator: bool,
+ chunksize: int,
+) -> tsfile_reader: ...
+
+
+@overload
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+ start_time: int,
+ end_time: int,
+ iterator: bool,
+ chunksize: int,
+) -> tsfile_reader: ...
+
+
+def read_tsfile(
+ file_path: str,
+ table_name: str,
+ columns: list[str] | str,
+ start_time: int = None,
+ end_time: int = None,
+ chunksize: int = None,
+ iterator: bool = False,
+) -> DataFrame | tsfile_reader:
+ if not os.path.exists(file_path):
+ raise FileNotFoundError(f"File '{file_path}' does not exist")
+ if os.path.getsize(file_path) == 0:
+ raise EmptyFileError(f"File '{file_path}' is empty")
+ reader = tsfile_reader(
+ file_path, table_name, columns, start_time, end_time, chunksize
+ )
+ if iterator:
+ return reader
+ else:
+ return reader.read_tsfile()
+
+
+def write_tsfile(
+ file_path: str,
+ table_name: str,
+ data: DataFrame,
+):
+ if data.empty:
+ return
+ column_names = data.columns.tolist()
+ column_types = data.dtypes
+
+ if TIMESTAMP_STR not in column_names:
+ raise AttributeError("Time column is missing")
+ if column_types[TIMESTAMP_STR] != "int64":
+ raise TypeError("Time column must be of type int64")
+ allowed_types = {"int64", "int32", "bool", "float32", "float64"}
+
+ for col, dtype in column_types.items():
+ if dtype.name not in allowed_types:
+ raise TypeError(f"Column '{col}' has an invalid type '{dtype}'.")
+
+ writer = tsfile_writer(file_path)
+ writer.write_tsfile(table_name, data)
diff --git a/python/tsfile/tsfile_pywrapper.pyx b/python/tsfile/tsfile_pywrapper.pyx
new file mode 100644
index 00000000..a910a496
--- /dev/null
+++ b/python/tsfile/tsfile_pywrapper.pyx
@@ -0,0 +1,348 @@
+# 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.
+#
+
+#cython: language_level=3
+from libc.string cimport strcpy
+from libc.stdlib cimport malloc, free
+import pandas as pd
+from cpython.bytes cimport PyBytes_AsString
+cimport numpy as cnp
+import numpy as np
+from .tsfile cimport *
+
+TIMESTAMP_STR = "Time"
+TS_TYPE_INT32 = 1 << 8
+TS_TYPE_BOOLEAN = 1 << 9
+TS_TYPE_FLOAT = 1 << 10
+TS_TYPE_DOUBLE = 1 << 11
+TS_TYPE_INT64 = 1 << 12
+TS_TYPE_TEXT = 1 << 13
+
+type_mapping = {
+ 'int32': TS_TYPE_INT32,
+ 'bool': TS_TYPE_BOOLEAN,
+ 'float32': TS_TYPE_FLOAT,
+ 'float64': TS_TYPE_DOUBLE,
+ 'int64': TS_TYPE_INT64
+}
+
+cdef class tsfile_reader:
+
+ cdef CTsFileReader reader
+ cdef QueryDataRet ret
+ cdef int batch_size
+ cdef bint read_all_at_once
+
+
+
+ def __init__(self, pathname, table_name, columns, start_time=None, end_time=None, batch_size=None):
+ self.open_reader(pathname)
+ self.query_data_ret(table_name, columns, start_time, end_time)
+
+ if batch_size is not None:
+ self.batch_size = batch_size
+ self.read_all_at_once = False
+ else:
+ self.batch_size = 1024
+ self.read_all_at_once = True
+
+ cdef open_reader(self, pathname):
+ cdef ErrorCode err_code
+ err_code = 0
+ self.reader = ts_reader_open(pathname.encode('utf-8'), &err_code)
+ if (err_code != 0):
+ raise Exception("Failed to open tsfile: %s, %s" %( pathname, err_code))
+
+ cdef query_data_ret(self, table_name, columns, start_time = None, end_time=None):
+ cdef bytes py_table_name
+ cdef char** c_columns
+ py_table_name = table_name.encode('utf-8')
+ c_table_name = PyBytes_AsString(py_table_name)
+ if isinstance(columns, str):
+ columns = [columns]
+
+ c_columns = <char**>malloc(len(columns) * sizeof(char*))
+ if not c_columns:
+ raise MemoryError("Failed to allocate memory for columns")
+
+ for i in range(len(columns)):
+ c_columns[i] = <char*>malloc(len(columns[i]) + 1)
+ if not c_columns[i]:
+ for j in range(i):
+ free(c_columns[j])
+ free(c_columns)
+ raise MemoryError("Failed to allocate memory for columns")
+ column_binary = columns[i].encode('utf-8')
+ column = PyBytes_AsString(column_binary)
+ strcpy(c_columns[i], column)
+
+ # query data from tsfile
+ if start_time is not None or end_time is not None:
+ if start_time is None:
+ start_time = LLONG_MIN
+ if end_time is None:
+ end_time = LLONG_MAX
+ self.ret = ts_reader_begin_end(self.reader, c_table_name, c_columns, len(columns), start_time, end_time)
+ else:
+ self.ret = ts_reader_read(self.reader, table_name.encode('utf-8'), c_columns, len(columns))
+
+ for i in range(len(columns)):
+ free(c_columns[i])
+ free(c_columns)
+
+
+ def read_tsfile(self):
+ # open tsfile to read
+ res = pd.DataFrame()
+ not_null_maps = []
+ if self.read_all_at_once:
+ while True:
+ chunk, not_null_map = self.get_next_dataframe()
+ if chunk is not None:
+ res = pd.concat([res, chunk])
+ not_null_maps.append(not_null_map)
+ else:
+ break
+ else:
+ res, not_null_map = self.get_next_dataframe()
+ not_null_maps.append(not_null_map)
+
+ self.free_resources()
+ not_null_map_all = None
+ if (not_null_maps != []):
+ not_null_map_all = np.vstack(not_null_maps)
+ return res, not_null_map_all
+
+ def __iter__(self):
+ return self
+
+ def __next__(self):
+ res, not_null_map = self.get_next_dataframe()
+ if res is None:
+ raise StopIteration
+ return res, not_null_map
+
+ def get_next_dataframe(self):
+ cdef:
+ DataResult* result
+ ColumnSchema* schema = NULL
+ cnp.ndarray[cnp.int64_t, ndim=1, mode='c'] np_array_i64
+ cnp.ndarray[cnp.int32_t, ndim=1, mode='c'] np_array_i32
+ cnp.ndarray[cnp.float32_t, ndim=1, mode='c'] np_array_float
+ cnp.ndarray[cnp.float64_t, ndim=1, mode='c'] np_array_double
+ cnp.ndarray[bint, ndim=1, mode='c'] np_array_bool
+ cnp.npy_intp length
+ bint has_null
+ bytes pystr
+ str py_string
+
+ res = {}
+ column_order = []
+ not_null_map = []
+
+ # Time column will be the first column
+ column_order.append(TIMESTAMP_STR)
+
+ for i in range(self.ret.column_num):
+ pystr = self.ret.column_names[i]
+ py_string = pystr.decode('utf-8', 'ignore')
+ column_order.append(py_string)
+ res[py_string] = []
+
+ res[TIMESTAMP_STR] = []
+
+ if self.ret.data == NULL:
+ return None, None
+
+ result = ts_next(self.ret, self.batch_size)
+
+ # there is no data meet our requirement
+ if result.column_schema == NULL:
+ # free memory
+ if (destory_tablet(result) != 0):
+ raise Exception("Failed to destroy tablet")
+ return None, None
+
+ # time column
+ length = result.cur_num + 1
+ cdef cnp.ndarray[cnp.int64_t, ndim=1, mode='c'] data_array = \
+ cnp.PyArray_SimpleNewFromData(1, &length, cnp.NPY_INT64, result.times)
+ res[TIMESTAMP_STR] = np.array(data_array, dtype = np.int64)
+
+ for i in range(result.column_num):
+
+ # column name
+ schema = result.column_schema[i]
+ pystr = schema.name
+ column_name = pystr.decode('utf-8')
+
+ # column bitmap
+ is_not_null = np.empty(length, dtype = bool)
+ bool_ptr = <char*> result.bitmap[i]
+ has_null = False
+ for j in range(length):
+ is_not_null[j] = bool_ptr[j] != 0
+ if bool_ptr[j] == 0 and ~has_null:
+ has_null = True
+
+
+ if schema.column_def == TS_TYPE_INT32:
+ np_array_i32 = cnp.PyArray_SimpleNewFromData(1, &length, cnp.NPY_INT32, result.value[i])
+ arr = np.array(np_array_i32, dtype = np.int32)
+
+ elif schema.column_def == TS_TYPE_BOOLEAN:
+ arr_bool_ = np.empty(length, dtype=np.bool_)
+ bool_ptr = <char*> result.value[i]
+ for j in range(length):
+ arr_bool_[j] = bool_ptr[j] != 0
+ arr = np.array(arr_bool_, dtype = np.bool_)
+
+ elif schema.column_def == TS_TYPE_FLOAT:
+ np_array_float = cnp.PyArray_SimpleNewFromData(1, &length, cnp.NPY_FLOAT32, result.value[i])
+ arr = np.array(np_array_float, dtype = np.float32)
+ arr = np.where(is_not_null, arr, np.nan)
+ res[column_name]=arr
+ continue
+
+ elif schema.column_def == TS_TYPE_DOUBLE:
+ np_array_double = cnp.PyArray_SimpleNewFromData(1, &length, cnp.NPY_FLOAT64, result.value[i])
+ arr= np.array(np_array_double, dtype = np.float64)
+ arr = np.where(is_not_null, arr, np.nan)
+ res[column_name]=arr
+ continue
+
+ elif schema.column_def == TS_TYPE_INT64:
+ np_array_i64 = cnp.PyArray_SimpleNewFromData(1, &length, cnp.NPY_INT64, result.value[i])
+ arr = np.array(np_array_i64, dtype = np.int64)
+ else:
+ raise Exception("UnSupport column type")
+
+ if has_null:
+ tmp_array = np.full(length, np.nan, np.float64)
+ tmp_array[is_not_null] = arr[is_not_null]
+ if schema.column_def == TS_TYPE_INT32:
+ arr = pd.Series(tmp_array).astype('Int32')
+ elif schema.column_def == TS_TYPE_BOOLEAN:
+ arr = pd.Series(tmp_array).astype(np.bool_)
+ elif schema.column_def == TS_TYPE_INT64:
+ arr = pd.Series(tmp_array).astype('Int64')
+
+ res[column_name] = arr
+ not_null_map.append(is_not_null)
+ if (destory_tablet(result) != 0):
+ raise Exception("Failed to destroy tablet")
+ return pd.DataFrame(res, columns = column_order), not_null_map
+
+ def __dealloc__(self):
+ self.free_resources()
+
+ def __enter__(self):
+ return self
+
+ def __exit__(self, exc_type, exc_value, traceback):
+ self.free_resources()
+
+ cdef free_resources(self):
+ if self.reader:
+ if ts_reader_close(self.reader) != 0 :
+ raise Exception("Failed to close tsfile")
+ if self.ret:
+ if destory_query_dataret(self.ret) != 0:
+ raise Exception("Failed to free query data ret")
+ self.reader = NULL
+ self.ret = NULL
+
+cdef class tsfile_writer:
+ cdef CTsFileWriter writer
+ cdef TsFileRowData row_data
+
+ def __init__(self, pathname):
+ self.open_writer(pathname)
+
+
+ cdef open_writer(self, pathname):
+ cdef ErrorCode err_code
+ err_code = 0
+ self.writer = ts_writer_open(pathname.encode('utf-8'), &err_code)
+ if (err_code != 0):
+ raise Exception("Failed to open tsfile: %s, %s" %( pathname, err_code))
+
+ def resister_timeseries(self, table_name, column_name, data_type):
+ cdef char* c_columns
+ cdef bytes py_table_name
+ cdef ColumnSchema schema
+ cdef bytes encoded_column_name = column_name.encode('utf-8')
+ py_table_name = table_name.encode('utf-8')
+ c_table_name = PyBytes_AsString(py_table_name)
+ schema.name = encoded_column_name
+ schema.column_def = data_type
+ if tsfile_register_table_column(self.writer, c_table_name, &schema) != 0:
+ raise Exception("Failed to register timeseries")
+ cdef create_row_data(self, table_name, time, column_length):
+ self.row_data = create_tsfile_row(table_name.encode('utf-8'), time, column_length)
+ def write_into_row_data(self, column_name, value, type):
+ cdef char* c_column_name = PyBytes_AsString(column_name.encode('utf-8'))
+ if type == TS_TYPE_INT32:
+ insert_data_into_tsfile_row_int32(self.row_data, c_column_name, value)
+ elif type == TS_TYPE_BOOLEAN:
+ insert_data_into_tsfile_row_boolean(self.row_data, c_column_name, value)
+ elif type == TS_TYPE_FLOAT:
+ insert_data_into_tsfile_row_float(self.row_data, c_column_name, value)
+ elif type == TS_TYPE_DOUBLE:
+ insert_data_into_tsfile_row_double(self.row_data, c_column_name, value)
+ elif type == TS_TYPE_INT64:
+ insert_data_into_tsfile_row_int64(self.row_data, c_column_name, value)
+ else:
+ raise TypeError("Unknown column type")
+ def write_tsfile(self, table_name, df):
+ column_names = df.columns.tolist()
+ column_types = df.dtypes
+ column_ctypes = []
+ for i in range(len(column_names)):
+ column_type = column_types[i].name
+ if column_type in type_mapping:
+ column_ctypes.append(type_mapping[column_type])
+ else:
+ raise TypeError("Unknown column type")
+
+ if (column_names[i] != TIMESTAMP_STR):
+ self.resister_timeseries(table_name, column_names[i], column_ctypes[i])
+
+
+ for i in range(len(df)):
+ time = df.iloc[i][TIMESTAMP_STR]
+ self.create_row_data(table_name, time, len(column_names))
+ for j in range(1, len(column_names)):
+ column_name = column_names[j]
+ column_value = df.iloc[i][column_name]
+ column_ctype = column_ctypes[j]
+ self.write_into_row_data(column_name, column_value, column_ctype)
+ if tsfile_write_row_data(self.writer, self.row_data) != 0:
+ raise Exception("Failed to write row data")
+
+ if tsfile_flush_data(self.writer) != 0:
+ raise Exception("Failed to flush data")
+ self.row_data = NULL
+ self.free_resources()
+ def free_resources(self):
+ if self.writer != NULL:
+ if ts_writer_close(self.writer) != 0:
+ raise Exception("Failed to close tsfile")
+ self.writer = NULL
+ def __dealloc__(self):
+ self.free_resources()
(tsfile) 01/33: Implement chunk reader without statistics (#133)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 26f00fe8d71a4464a1db37af440815c2022c5f04
Author: Caideyipi <87...@users.noreply.github.com>
AuthorDate: Mon Jun 24 12:20:57 2024 +0800
Implement chunk reader without statistics (#133)
---
.../read/reader/chunk/AlignedChunkReader.java | 10 +-
.../chunk/AlignedChunkReaderWithoutStatistics.java | 45 ++++++++
.../tsfile/read/reader/chunk/ChunkReader.java | 2 +-
.../reader/chunk/ChunkReaderWithoutStatistics.java | 37 +++++++
.../AlignedChunkReaderWithoutStatisticsTest.java | 121 +++++++++++++++++++++
.../reader/ChunkReaderWithoutStatisticsTest.java | 110 +++++++++++++++++++
6 files changed, 321 insertions(+), 4 deletions(-)
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReader.java
index c967a298..7191d853 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReader.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReader.java
@@ -133,7 +133,7 @@ public class AlignedChunkReader extends AbstractChunkReader {
}
}
- if (isAllNull || timePageHeader.getEndTime() < readStopTime) {
+ if (isAllNull || isEarlierThanReadStopTime(timePageHeader)) {
// when there is only one page in the chunk, the page statistic is the same as the chunk, so
// we needn't filter the page again
skipCurrentPage(timePageHeader, valuePageHeaderList);
@@ -159,13 +159,17 @@ public class AlignedChunkReader extends AbstractChunkReader {
}
}
- if (isAllNull || timePageHeader.getEndTime() < readStopTime || pageCanSkip(timePageHeader)) {
+ if (isAllNull || isEarlierThanReadStopTime(timePageHeader) || pageCanSkip(timePageHeader)) {
skipCurrentPage(timePageHeader, valuePageHeaderList);
return null;
}
return constructAlignedPageReader(timePageHeader, valuePageHeaderList);
}
+ protected boolean isEarlierThanReadStopTime(final PageHeader timePageHeader) {
+ return timePageHeader.getEndTime() < readStopTime;
+ }
+
private boolean pageCanSkip(PageHeader pageHeader) {
return queryFilter != null
&& !queryFilter.satisfyStartEndTime(pageHeader.getStartTime(), pageHeader.getEndTime());
@@ -253,7 +257,7 @@ public class AlignedChunkReader extends AbstractChunkReader {
return alignedPageReader;
}
- private boolean pageDeleted(PageHeader pageHeader, List<TimeRange> deleteIntervals) {
+ protected boolean pageDeleted(PageHeader pageHeader, List<TimeRange> deleteIntervals) {
if (pageHeader.getEndTime() < readStopTime) {
return true;
}
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReaderWithoutStatistics.java b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReaderWithoutStatistics.java
new file mode 100644
index 00000000..b9fe8b72
--- /dev/null
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/AlignedChunkReaderWithoutStatistics.java
@@ -0,0 +1,45 @@
+/*
+ * 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.
+ */
+
+package org.apache.tsfile.read.reader.chunk;
+
+import org.apache.tsfile.file.header.PageHeader;
+import org.apache.tsfile.read.common.Chunk;
+import org.apache.tsfile.read.common.TimeRange;
+
+import java.io.IOException;
+import java.util.List;
+
+public class AlignedChunkReaderWithoutStatistics extends AlignedChunkReader {
+ public AlignedChunkReaderWithoutStatistics(
+ final Chunk timeChunk, final List<Chunk> valueChunkList) throws IOException {
+ super(timeChunk, valueChunkList);
+ }
+
+ @Override
+ protected boolean isEarlierThanReadStopTime(final PageHeader timePageHeader) {
+ return false;
+ }
+
+ @Override
+ protected boolean pageDeleted(
+ final PageHeader pageHeader, final List<TimeRange> deleteIntervals) {
+ return false;
+ }
+}
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java
index a85683b1..dc5af465 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java
@@ -99,7 +99,7 @@ public class ChunkReader extends AbstractChunkReader {
&& !queryFilter.satisfyStartEndTime(pageHeader.getStartTime(), pageHeader.getEndTime());
}
- private boolean pageDeleted(PageHeader pageHeader) {
+ protected boolean pageDeleted(PageHeader pageHeader) {
if (readStopTime > pageHeader.getEndTime()) {
// used for chunk reader by timestamp
return true;
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReaderWithoutStatistics.java b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReaderWithoutStatistics.java
new file mode 100644
index 00000000..e960c89b
--- /dev/null
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReaderWithoutStatistics.java
@@ -0,0 +1,37 @@
+/*
+ * 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.
+ */
+
+package org.apache.tsfile.read.reader.chunk;
+
+import org.apache.tsfile.file.header.PageHeader;
+import org.apache.tsfile.read.common.Chunk;
+
+import java.io.IOException;
+
+public class ChunkReaderWithoutStatistics extends ChunkReader {
+
+ public ChunkReaderWithoutStatistics(final Chunk chunk) throws IOException {
+ super(chunk);
+ }
+
+ @Override
+ protected boolean pageDeleted(final PageHeader pageHeader) {
+ return false;
+ }
+}
diff --git a/java/tsfile/src/test/java/org/apache/tsfile/read/reader/AlignedChunkReaderWithoutStatisticsTest.java b/java/tsfile/src/test/java/org/apache/tsfile/read/reader/AlignedChunkReaderWithoutStatisticsTest.java
new file mode 100644
index 00000000..b3dfc5d5
--- /dev/null
+++ b/java/tsfile/src/test/java/org/apache/tsfile/read/reader/AlignedChunkReaderWithoutStatisticsTest.java
@@ -0,0 +1,121 @@
+/*
+ * 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.
+ */
+
+package org.apache.tsfile.read.reader;
+
+import org.apache.tsfile.common.conf.TSFileDescriptor;
+import org.apache.tsfile.constant.TestConstant;
+import org.apache.tsfile.exception.write.WriteProcessException;
+import org.apache.tsfile.file.metadata.AlignedChunkMetadata;
+import org.apache.tsfile.file.metadata.ChunkMetadata;
+import org.apache.tsfile.file.metadata.IChunkMetadata;
+import org.apache.tsfile.file.metadata.PlainDeviceID;
+import org.apache.tsfile.read.TsFileSequenceReader;
+import org.apache.tsfile.read.common.Chunk;
+import org.apache.tsfile.read.reader.chunk.AlignedChunkReader;
+import org.apache.tsfile.read.reader.chunk.AlignedChunkReaderWithoutStatistics;
+import org.apache.tsfile.utils.FilePathUtils;
+import org.apache.tsfile.utils.TsFileGeneratorUtils;
+
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import static org.apache.tsfile.common.constant.TsFileConstant.PATH_SEPARATOR;
+
+public class AlignedChunkReaderWithoutStatisticsTest {
+ private final String testStorageGroup = TsFileGeneratorUtils.testStorageGroup;
+ private final File SEQ_DIRS =
+ new File(
+ TestConstant.BASE_OUTPUT_PATH
+ + "data"
+ + File.separator
+ + "sequence"
+ + File.separator
+ + testStorageGroup
+ + File.separator
+ + "0"
+ + File.separator
+ + "0");
+
+ private File file;
+ private final int oldMaxPointNumInPage =
+ TSFileDescriptor.getInstance().getConfig().getMaxNumberOfPointsInPage();
+ private final int deviceNum = 5;
+ private final int measurementNum = 10;
+
+ @Before
+ public void setUp() throws IOException, WriteProcessException {
+ TSFileDescriptor.getInstance().getConfig().setMaxNumberOfPointsInPage(500);
+ if (!SEQ_DIRS.exists()) {
+ Assert.assertTrue(SEQ_DIRS.mkdirs());
+ }
+ String fileName =
+ System.currentTimeMillis() + FilePathUtils.FILE_NAME_SEPARATOR + "0-0-0.tsfile";
+ String filePath = SEQ_DIRS.getPath() + File.separator + fileName;
+ file =
+ TsFileGeneratorUtils.generateAlignedTsFile(
+ filePath, deviceNum, measurementNum, 500, 0, 0, 0, 0);
+ }
+
+ @After
+ public void tearDown() {
+ TSFileDescriptor.getInstance().getConfig().setMaxNumberOfPointsInPage(oldMaxPointNumInPage);
+ if (file.exists()) {
+ file.delete();
+ }
+ if (SEQ_DIRS.exists()) {
+ SEQ_DIRS.delete();
+ }
+ }
+
+ @Test
+ public void testChunkReaderWithoutStatistics() throws IOException {
+ try (final TsFileSequenceReader tsFileSequenceReader =
+ new TsFileSequenceReader(file.getPath())) {
+ for (int i = 0; i < deviceNum; i++) {
+ final List<AlignedChunkMetadata> chunkMetadataList =
+ tsFileSequenceReader.getAlignedChunkMetadata(
+ new PlainDeviceID(testStorageGroup + PATH_SEPARATOR + "d1000" + i));
+ for (final AlignedChunkMetadata chunkMetadata : chunkMetadataList) {
+ Chunk timeChunk =
+ tsFileSequenceReader.readMemChunk(
+ (ChunkMetadata) chunkMetadata.getTimeChunkMetadata());
+ timeChunk = new Chunk(timeChunk.getHeader(), timeChunk.getData());
+ final List<Chunk> valueChunkList = new ArrayList<>();
+ for (final IChunkMetadata valueChunkMetadata :
+ chunkMetadata.getValueChunkMetadataList()) {
+ final Chunk valueChunk =
+ tsFileSequenceReader.readMemChunk((ChunkMetadata) valueChunkMetadata);
+ valueChunkList.add(new Chunk(valueChunk.getHeader(), valueChunk.getData()));
+ }
+ final AlignedChunkReader chunkReader =
+ new AlignedChunkReaderWithoutStatistics(timeChunk, valueChunkList);
+ Assert.assertEquals(1, chunkReader.loadPageReaderList().size());
+ }
+ }
+ }
+ }
+}
diff --git a/java/tsfile/src/test/java/org/apache/tsfile/read/reader/ChunkReaderWithoutStatisticsTest.java b/java/tsfile/src/test/java/org/apache/tsfile/read/reader/ChunkReaderWithoutStatisticsTest.java
new file mode 100644
index 00000000..57891b1f
--- /dev/null
+++ b/java/tsfile/src/test/java/org/apache/tsfile/read/reader/ChunkReaderWithoutStatisticsTest.java
@@ -0,0 +1,110 @@
+/*
+ * 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.
+ */
+
+package org.apache.tsfile.read.reader;
+
+import org.apache.tsfile.common.conf.TSFileDescriptor;
+import org.apache.tsfile.constant.TestConstant;
+import org.apache.tsfile.exception.write.WriteProcessException;
+import org.apache.tsfile.file.metadata.ChunkMetadata;
+import org.apache.tsfile.read.TsFileSequenceReader;
+import org.apache.tsfile.read.common.Chunk;
+import org.apache.tsfile.read.common.Path;
+import org.apache.tsfile.read.reader.chunk.ChunkReader;
+import org.apache.tsfile.read.reader.chunk.ChunkReaderWithoutStatistics;
+import org.apache.tsfile.utils.FilePathUtils;
+import org.apache.tsfile.utils.TsFileGeneratorUtils;
+
+import org.junit.After;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+
+import static org.apache.tsfile.common.constant.TsFileConstant.PATH_SEPARATOR;
+
+public class ChunkReaderWithoutStatisticsTest {
+ private final String testStorageGroup = TsFileGeneratorUtils.testStorageGroup;
+ private final File SEQ_DIRS =
+ new File(
+ TestConstant.BASE_OUTPUT_PATH
+ + "data"
+ + File.separator
+ + "sequence"
+ + File.separator
+ + testStorageGroup
+ + File.separator
+ + "0"
+ + File.separator
+ + "0");
+
+ private File file;
+ private final int oldMaxPointNumInPage =
+ TSFileDescriptor.getInstance().getConfig().getMaxNumberOfPointsInPage();
+ private final int deviceNum = 5;
+ private final int measurementNum = 10;
+
+ @Before
+ public void setUp() throws IOException, WriteProcessException {
+ TSFileDescriptor.getInstance().getConfig().setMaxNumberOfPointsInPage(500);
+ if (!SEQ_DIRS.exists()) {
+ Assert.assertTrue(SEQ_DIRS.mkdirs());
+ }
+ String fileName =
+ System.currentTimeMillis() + FilePathUtils.FILE_NAME_SEPARATOR + "0-0-0.tsfile";
+ String filePath = SEQ_DIRS.getPath() + File.separator + fileName;
+ file =
+ TsFileGeneratorUtils.generateNonAlignedTsFile(
+ filePath, deviceNum, measurementNum, 500, 0, 0, 0, 0);
+ }
+
+ @After
+ public void tearDown() {
+ TSFileDescriptor.getInstance().getConfig().setMaxNumberOfPointsInPage(oldMaxPointNumInPage);
+ if (file.exists()) {
+ file.delete();
+ }
+ if (SEQ_DIRS.exists()) {
+ SEQ_DIRS.delete();
+ }
+ }
+
+ @Test
+ public void testChunkReaderWithoutStatistics() throws IOException {
+ try (final TsFileSequenceReader tsFileSequenceReader =
+ new TsFileSequenceReader(file.getPath())) {
+ for (int i = 0; i < deviceNum; i++) {
+ for (int j = 0; j < measurementNum; j++) {
+ final List<ChunkMetadata> chunkMetadataList =
+ tsFileSequenceReader.getChunkMetadataList(
+ new Path(testStorageGroup + PATH_SEPARATOR + "d" + i, "s" + j, true));
+ for (final ChunkMetadata chunkMetadata : chunkMetadataList) {
+ final Chunk chunk = tsFileSequenceReader.readMemChunk(chunkMetadata);
+ final ChunkReader chunkReader =
+ new ChunkReaderWithoutStatistics(new Chunk(chunk.getHeader(), chunk.getData()));
+ Assert.assertEquals(1, chunkReader.loadPageReaderList().size());
+ }
+ }
+ }
+ }
+ }
+}
(tsfile) 32/33: Fix uncompress page data (#161)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 9c68a357f02889ec7c2e575e6fd6a6c6ad5f76d0
Author: shuwenwei <55...@users.noreply.github.com>
AuthorDate: Fri Jul 5 19:35:50 2024 +0800
Fix uncompress page data (#161)
* fix uncompress
* modify position
---
.../java/org/apache/tsfile/read/reader/chunk/ChunkReader.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java
index dc5af465..1b747739 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/chunk/ChunkReader.java
@@ -169,7 +169,11 @@ public class ChunkReader extends AbstractChunkReader {
byte[] uncompressedPageData = new byte[pageHeader.getUncompressedSize()];
try {
unCompressor.uncompress(
- compressedPageData.array(), 0, compressedPageBodyLength, uncompressedPageData, 0);
+ compressedPageData.array(),
+ compressedPageData.arrayOffset() + compressedPageData.position(),
+ compressedPageBodyLength,
+ uncompressedPageData,
+ 0);
} catch (Exception e) {
throw new IOException(
"Uncompress error! uncompress size: "
@@ -180,7 +184,7 @@ public class ChunkReader extends AbstractChunkReader {
+ pageHeader
+ e.getMessage());
}
-
+ compressedPageData.position(compressedPageData.position() + compressedPageBodyLength);
return ByteBuffer.wrap(uncompressedPageData);
}
(tsfile) 31/33: enhance test for direct buffer (#146)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit eb74c0a9b24e58ac8a685ea2a8a267f7881eafc9
Author: Potato <ta...@apache.org>
AuthorDate: Fri Jul 5 18:53:12 2024 +0800
enhance test for direct buffer (#146)
Signed-off-by: OneSizeFitQuorum <ta...@apache.org>
---
.../java/org/apache/tsfile/compress/LZ4Test.java | 27 ++++++++++++++++++++++
.../java/org/apache/tsfile/compress/LZMA2Test.java | 2 +-
.../java/org/apache/tsfile/compress/ZstdTest.java | 2 +-
3 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/java/tsfile/src/test/java/org/apache/tsfile/compress/LZ4Test.java b/java/tsfile/src/test/java/org/apache/tsfile/compress/LZ4Test.java
index 299c70f7..761699bc 100644
--- a/java/tsfile/src/test/java/org/apache/tsfile/compress/LZ4Test.java
+++ b/java/tsfile/src/test/java/org/apache/tsfile/compress/LZ4Test.java
@@ -20,6 +20,7 @@ package org.apache.tsfile.compress;
import org.apache.tsfile.compress.ICompressor.LZ4Compressor;
import org.apache.tsfile.compress.IUnCompressor.LZ4UnCompressor;
+import org.apache.tsfile.utils.ReadWriteIOUtils;
import org.junit.After;
import org.junit.Assert;
@@ -27,6 +28,7 @@ import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
+import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ThreadLocalRandom;
@@ -101,4 +103,29 @@ public class LZ4Test {
unCompressor.uncompress(compressed, offset, compressedLength, uncompressed, 0);
Assert.assertArrayEquals(origin, uncompressed);
}
+
+ @Test
+ public void testByteBuffer() throws IOException {
+ for (int i = 1; i < 500000; i += 100000) {
+ String input = randomString(i);
+ ByteBuffer source = ByteBuffer.allocateDirect(input.getBytes().length);
+ source.put(input.getBytes());
+ source.flip();
+
+ ICompressor.LZ4Compressor compressor = new ICompressor.LZ4Compressor();
+ ByteBuffer compressed =
+ ByteBuffer.allocateDirect(Math.max(source.remaining() * 3 + 1, 28 + source.remaining()));
+ compressor.compress(source, compressed);
+
+ IUnCompressor.LZ4UnCompressor unCompressor = new IUnCompressor.LZ4UnCompressor();
+ ByteBuffer uncompressedByteBuffer =
+ ByteBuffer.allocateDirect(compressed.remaining() + 28 * 2);
+ compressed.flip();
+ unCompressor.uncompress(compressed, uncompressedByteBuffer);
+
+ uncompressedByteBuffer.flip();
+ String afterDecode = ReadWriteIOUtils.readStringFromDirectByteBuffer(uncompressedByteBuffer);
+ assert input.equals(afterDecode);
+ }
+ }
}
diff --git a/java/tsfile/src/test/java/org/apache/tsfile/compress/LZMA2Test.java b/java/tsfile/src/test/java/org/apache/tsfile/compress/LZMA2Test.java
index 36aaf367..ff7188ef 100644
--- a/java/tsfile/src/test/java/org/apache/tsfile/compress/LZMA2Test.java
+++ b/java/tsfile/src/test/java/org/apache/tsfile/compress/LZMA2Test.java
@@ -80,7 +80,7 @@ public class LZMA2Test {
}
@Test
- public void testBytes3() throws IOException {
+ public void testByteBuffer() throws IOException {
for (int i = 0; i < 500; i += 1) {
String input = randomString(i);
ByteBuffer source = ByteBuffer.allocateDirect(input.getBytes().length);
diff --git a/java/tsfile/src/test/java/org/apache/tsfile/compress/ZstdTest.java b/java/tsfile/src/test/java/org/apache/tsfile/compress/ZstdTest.java
index 803de712..dd0e6c17 100644
--- a/java/tsfile/src/test/java/org/apache/tsfile/compress/ZstdTest.java
+++ b/java/tsfile/src/test/java/org/apache/tsfile/compress/ZstdTest.java
@@ -48,7 +48,7 @@ public class ZstdTest {
public void tearDown() {}
@Test
- public void testBytes1() throws IOException {
+ public void testBytebuffer() throws IOException {
for (int i = 1; i < 500000; i += 100000) {
String input = randomString(i);
ByteBuffer source = ByteBuffer.allocateDirect(input.getBytes().length);
(tsfile) 11/33: Update Quick Start Document (#145)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit f8c0b5ea24e556bcc29ed309961330fab2578e70
Author: majialin <10...@users.noreply.github.com>
AuthorDate: Fri Jun 28 18:47:05 2024 +0800
Update Quick Start Document (#145)
---
docs/src/UserGuide/latest/QuickStart/QuickStart.md | 566 +++------------------
.../latest/QuickStart => stage}/QuickStart.md | 0
.../zh/UserGuide/latest/QuickStart/QuickStart.md | 560 +++-----------------
.../latest/QuickStart => stage}/QuickStart.md | 0
4 files changed, 123 insertions(+), 1003 deletions(-)
diff --git a/docs/src/UserGuide/latest/QuickStart/QuickStart.md b/docs/src/UserGuide/latest/QuickStart/QuickStart.md
index 77250f33..f7e5a024 100644
--- a/docs/src/UserGuide/latest/QuickStart/QuickStart.md
+++ b/docs/src/UserGuide/latest/QuickStart/QuickStart.md
@@ -18,551 +18,107 @@
under the License.
-->
+# Quick Start
-# TsFile API
+## Sample Data
-TsFile is a file format of Time Series used in IoTDB. This session introduces the usage of this file format.
+
+## Installation Method
-
-## TsFile library Installation
-
-There are two ways to use TsFile in your own project.
-
-* Use as jars: Compile the source codes and build to jars
+Add the following content to the `dependencies` in `pom.xml`
```shell
-git clone https://github.com/apache/tsfile.git
-mvn clean package -Dmaven.test.skip=true
+<dependency>
+ <groupId>org.apache.tsfile</groupId>
+ <artifactId>tsfile</artifactId>
+ <version>1.0.0</version>
+</dependency>
```
-Then, all the jars are in folder named `target/`. Import `target/tsfile-1.0.0.jar` to your project.
-
-* Use as a maven dependency:
-
- Compile source codes and deploy to your local repository in three steps:
-
- * Get the source codes
-
- ```shell
- git clone https://github.com/apache/tsfile.git
- ```
-
- * Compile the source codes and deploy
-
- ```shell
- mvn clean install -P with-java -Dmaven.test.skip=true
- ```
-
- * add dependencies into your project:
-
- ```xml
- <dependency>
- <groupId>org.apache.tsfile</groupId>
- <artifactId>tsfile</artifactId>
- <version>1.0.0</version>
- </dependency>
- ```
-
-
- Or, you can download the dependencies from official Maven repository:
-
- * First, find your maven `settings.xml` on path: `${username}\.m2\settings.xml`
- , add this `<profile>` to `<profiles>`:
- ```xml
- <profile>
- <id>allow-snapshots</id>
- <activation><activeByDefault>true</activeByDefault></activation>
- <repositories>
- <repository>
- <id>apache.snapshots</id>
- <name>Apache Development Snapshot Repository</name>
- <url>https://repository.apache.org/content/repositories/snapshots/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- </profile>
- ```
- * Then add dependencies into your project:
-
- ```xml
- <dependency>
- <groupId>org.apache.tsfile</groupId>
- <artifactId>tsfile</artifactId>
- <version>1.0.0</version>
- </dependency>
- ```
-
-
-
-## TsFile Usage
-
-This section demonstrates the detailed usages of TsFile.
-
-Time-series Data
-Time-series data is considered as a sequence of quadruples. A quadruple is defined as (device, measurement, time, value).
-
-* **measurement**: A physical or formal measurement that a time-series data takes, e.g., the temperature of a city, the
-sales number of some goods or the speed of a train at different times. As a traditional sensor (like a thermometer) also
- takes a single measurement and produce a time-series, we will use measurement and sensor interchangeably below.
-
-* **device**: A device refers to an entity that takes several measurements (producing multiple time-series), e.g.,
-a running train monitors its speed, oil meter, miles it has run, current passengers each is conveyed to a time-series dataset.
-
+## Writing Process
-**One Line of Data**: In many industrial applications, a device normally contains more than one sensor and these sensors
- may have values at the same timestamp, which is called one line of data.
+### Construct TsFileWriter
-Formally, one line of data consists of a `device_id`, a timestamp which indicates the milliseconds since January 1,
- 1970, 00:00:00, and several data pairs composed of `measurement_id` and corresponding `value`. All data pairs in one
- line belong to this `device_id` and have the same timestamp. If one of the `measurements` does not have a `value`
- in the `timestamp`, use a space instead(Actually, TsFile does not store null values). Its format is shown as follow:
-
-```
-device_id, timestamp, <measurement_id, value>...
-```
-
-An example is illustrated as follow. In this example, the data type of two measurements are `INT32`, `FLOAT` respectively.
-
-```
-device_1, 1490860659000, m1, 10, m2, 12.12
+```shell
+File f = new File("test.tsfile");
+TsFileWriter tsFileWriter = new TsFileWriter(f);
```
+### Registration Time Series
+```shell
+List<MeasurementSchema> schema1 = new ArrayList<>();
+schema1.add(new MeasurementSchema("voltage", TSDataType.FLOAT));
+schema1.add(new MeasurementSchema("current", TSDataType.FLOAT));
+tsFileWriter.registerTimeseries(new Path("Solar_panel_1"), schema1);
-### Write TsFile
-
-A TsFile is generated by the following three steps and the complete code is given in the section "Example for writing TsFile".
-
-1. construct a `TsFileWriter` instance.
-
- Here are the available constructors:
-
- * Without pre-defined schema
-
- ```java
- public TsFileWriter(File file) throws IOException
- ```
- * With pre-defined schema
-
- ```java
- public TsFileWriter(File file, Schema schema) throws IOException
- ```
- This one is for using the HDFS file system. `TsFileOutput` can be an instance of class `HDFSOutput`.
-
- ```java
- public TsFileWriter(TsFileOutput output, Schema schema) throws IOException
- ```
-
- If you want to set some TSFile configuration on your own, you could use param `config`. For example:
-
- ```java
- TSFileConfig conf = new TSFileConfig();
- conf.setTSFileStorageFs("HDFS");
- TsFileWriter tsFileWriter = new TsFileWriter(file, schema, conf);
- ```
-
- In this example, data files will be stored in HDFS, instead of local file system. If you'd like to store data files in local file system, you can use `conf.setTSFileStorageFs("LOCAL")`, which is also the default config.
-
- You can also config the ip and rpc port of your HDFS by `config.setHdfsIp(...)` and `config.setHdfsPort(...)`. The default ip is `localhost` and default rpc port is `9000`.
-
- **Parameters:**
-
- * file : The TsFile to write
-
- * schema : The file schemas, will be introduced in next part.
-
- * config : The config of TsFile.
-
-2. add measurements
-
- Or you can make an instance of class `Schema` first and pass this to the constructor of class `TsFileWriter`
-
- The class `Schema` contains a map whose key is the name of one measurement schema, and the value is the schema itself.
-
- Here are the interfaces:
-
- ```java
- // Create an empty Schema or from an existing map
- public Schema()
- public Schema(Map<String, MeasurementSchema> measurements)
- // Use this two interfaces to add measurements
- public void registerMeasurement(MeasurementSchema descriptor)
- public void registerMeasurements(Map<String, MeasurementSchema> measurements)
- // Some useful getter and checker
- public TSDataType getMeasurementDataType(String measurementId)
- public MeasurementSchema getMeasurementSchema(String measurementId)
- public Map<String, MeasurementSchema> getAllMeasurementSchema()
- public boolean hasMeasurement(String measurementId)
- ```
-
- You can always use the following interface in `TsFileWriter` class to add additional measurements:
-
- ```java
- public void addMeasurement(MeasurementSchema measurementSchema) throws WriteProcessException
- ```
-
- The class `MeasurementSchema` contains the information of one measurement, there are several constructors:
- ```java
- public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding)
- public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding, CompressionType compressionType)
- public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding, CompressionType compressionType,
- Map<String, String> props)
- ```
-
- **Parameters:**
-
- * measurementID: The name of this measurement, typically the name of the sensor.
-
- * type: The data type, now support six types: `BOOLEAN`, `INT32`, `INT64`, `FLOAT`, `DOUBLE`, `TEXT`;
-
- * encoding: The data encoding.
-
- * compression: The data compression.
-
- * props: Properties for special data types.Such as `max_point_number` for `FLOAT` and `DOUBLE`, `max_string_length` for
- `TEXT`. Use as string pairs into a map such as ("max_point_number", "3").
-
- > **Notice:** Although one measurement name can be used in multiple deltaObjects, the properties cannot be changed. I.e.
- it's not allowed to add one measurement name for multiple times with different type or encoding.
- Here is a bad example:
-
- ```java
- // The measurement "sensor_1" is float type
- addMeasurement(new MeasurementSchema("sensor_1", TSDataType.FLOAT, TSEncoding.RLE));
-
- // This call will throw a WriteProcessException exception
- addMeasurement(new MeasurementSchema("sensor_1", TSDataType.INT32, TSEncoding.RLE));
- ```
- ```
-
- ```
-
-3. insert and write data continually.
-
- Use this interface to create a new `TSRecord`(a timestamp and device pair).
-
- ```java
- public TSRecord(long timestamp, String deviceId)
- ```
- ```
- Then create a `DataPoint`(a measurement and value pair), and use the addTuple method to add the DataPoint to the correct
- TsRecord.
-
- Use this method to write
-
- ```java
- public void write(TSRecord record) throws IOException, WriteProcessException
- ```
-
-4. call `close` to finish this writing process.
-
- ```java
- public void close() throws IOException
- ```
-
-We are also able to write data into a closed TsFile.
-
-1. Use `ForceAppendTsFileWriter` to open a closed file.
-
- ```java
- public ForceAppendTsFileWriter(File file) throws IOException
- ```
-
-2. call `doTruncate` truncate the part of Metadata
-
-3. Then use `ForceAppendTsFileWriter` to construct a new `TsFileWriter`
-
-```java
-public TsFileWriter(TsFileIOWriter fileWriter) throws IOException
+List<MeasurementSchema> schema2 = new ArrayList<>();
+schema2.add(new MeasurementSchema("voltage", TSDataType.FLOAT));
+schema2.add(new MeasurementSchema("current", TSDataType.FLOAT));
+schema2.add(new MeasurementSchema("wind_speed", TSDataType.FLOAT));
+tsFileWriter.registerTimeseries(new Path("Fan_1"), schema2);
```
-Please note, we should redo the step of adding measurements before writing new data to the TsFile.
-
-
-### Example for writing a TsFile
-
-You should install TsFile to your local maven repository.
+### Write Data
```shell
-mvn clean install -am -DskipTests
+TSRecord tsRecord = new TSRecord(1, "Solar_panel_1");
+tsRecord.addTuple(DataPoint.getDataPoint(TSDataType.FLOAT, "voltage", 1.1f));
+tsRecord.addTuple(DataPoint.getDataPoint(TSDataType.FLOAT, "current", 2.2f));
+tsFileWriter.write(tsRecord);
```
-You could write a TsFile by constructing **TSRecord** if you have the **non-aligned** (e.g. not all sensors contain values) time series data.
-
-A more thorough example can be found at `/example/src/main/java/org/apache/tsfile/tsfile/TsFileWriteWithTSRecord.java`
-
-You could write a TsFile by constructing **Tablet** if you have the **aligned** time series data.
-
-A more thorough example can be found at `/example/src/main/java/org/apache/tsfile/tsfile/TsFileWriteWithTablet.java`
-
-You could write data into a closed TsFile by using **ForceAppendTsFileWriter**.
-
-A more thorough example can be found at `/example/src/main/java/org/apache/tsfile/tsfile/TsFileForceAppendWrite.java`
-
-
-
-### Interface for Reading TsFile
-
-* Definition of Path
-
-A path is a dot-separated string which uniquely identifies a time-series in TsFile, e.g., "root.area_1.device_1.sensor_1".
-The last section "sensor_1" is called "measurementId" while the remaining parts "root.area_1.device_1" is called deviceId.
-As mentioned above, the same measurement in different devices has the same data type and encoding, and devices are also unique.
-
-In read interfaces, The parameter `paths` indicates the measurements to be selected.
-
-Path instance can be easily constructed through the class `Path`. For example:
+### Close File
-```java
-Path p = new Path("device_1.sensor_1");
-```
-
-We will pass an ArrayList of paths for final query call to support multiple paths.
-
-```java
-List<Path> paths = new ArrayList<Path>();
-paths.add(new Path("device_1.sensor_1"));
-paths.add(new Path("device_1.sensor_3"));
+```shell
+tsFileWriter.close();
```
-> **Notice:** When constructing a Path, the format of the parameter should be a dot-separated string, the last part will
- be recognized as measurementId while the remaining parts will be recognized as deviceId.
-
-
-* Definition of Filter
-
- * Usage Scenario
-Filter is used in TsFile reading process to select data satisfying one or more given condition(s).
-
- * IExpression
-The `IExpression` is a filter expression interface and it will be passed to our final query call.
-We create one or more filter expressions and may use binary filter operators to link them to our final expression.
-
-* **Create a Filter Expression**
-
- There are two types of filters.
-
- * TimeFilter: A filter for `time` in time-series data.
- ```
- IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter);
- ```
- Use the following relationships to get a `TimeFilter` object (value is a long int variable).
-
- |Relationship|Description|
- |---|---|
- |TimeFilter.eq(value)|Choose the time equal to the value|
- |TimeFilter.lt(value)|Choose the time less than the value|
- |TimeFilter.gt(value)|Choose the time greater than the value|
- |TimeFilter.ltEq(value)|Choose the time less than or equal to the value|
- |TimeFilter.gtEq(value)|Choose the time greater than or equal to the value|
- |TimeFilter.notEq(value)|Choose the time not equal to the value|
- |TimeFilter.not(TimeFilter)|Choose the time not satisfy another TimeFilter|
-
- * ValueFilter: A filter for `value` in time-series data.
-
- ```
- IExpression valueFilterExpr = new SingleSeriesExpression(Path, ValueFilter);
- ```
- The usage of `ValueFilter` is the same as using `TimeFilter`, just to make sure that the type of the value
- equal to the measurement's(defined in the path).
-
-* **Binary Filter Operators**
-
- Binary filter operators can be used to link two single expressions.
-
- * BinaryExpression.and(Expression, Expression): Choose the value satisfy for both expressions.
- * BinaryExpression.or(Expression, Expression): Choose the value satisfy for at least one expression.
-
-
-Filter Expression Examples
+### Sample Code
-* **TimeFilterExpression Examples**
+<https://github.com/apache/tsfile/blob/develop/java/examples/src/main/java/org/apache/tsfile/TsFileWriteWithTSRecord.java>
- ```java
- IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.eq(15)); // series time = 15
- ```
-```
- ```java
- IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.ltEq(15)); // series time <= 15
-```
-```java
- IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.lt(15)); // series time < 15
-```
- ```java
-IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.gtEq(15)); // series time >= 15
- ```
- ```java
- IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.notEq(15)); // series time != 15
-```
- ```java
- IExpression timeFilterExpr = BinaryExpression.and(
- new GlobalTimeExpression(TimeFilter.gtEq(15L)),
- new GlobalTimeExpression(TimeFilter.lt(25L))); // 15 <= series time < 25
-```
- ```java
- IExpression timeFilterExpr = BinaryExpression.or(
- new GlobalTimeExpression(TimeFilter.gtEq(15L)),
- new GlobalTimeExpression(TimeFilter.lt(25L))); // series time >= 15 or series time < 25
- ```
-* Read Interface
+## Query Process
-First, we open the TsFile and get a `ReadOnlyTsFile` instance from a file path string `path`.
+### Construct TsFileReader
-```java
+```shell
TsFileSequenceReader reader = new TsFileSequenceReader(path);
-
-ReadOnlyTsFile readTsFile = new ReadOnlyTsFile(reader);
+TsFileReader tsFileReader = new TsFileReader(reader);
```
-Next, we prepare the path array and query expression, then get final `QueryExpression` object by this interface:
-
-```java
-QueryExpression queryExpression = QueryExpression.create(paths, statement);
-```
-
-The ReadOnlyTsFile class has two `query` method to perform a query.
-* **Method 1**
-
- ```java
- public QueryDataSet query(QueryExpression queryExpression) throws IOException
- ```
-
-* **Method 2**
-
- ```java
- public QueryDataSet query(QueryExpression queryExpression, long partitionStartOffset, long partitionEndOffset) throws IOException
- ```
-
- This method is designed for advanced applications such as the TsFile-Spark Connector.
-
- * **params** : For method 2, two additional parameters are added to support partial query:
- * ```partitionStartOffset```: start offset for a TsFile
- * ```partitionEndOffset```: end offset for a TsFile
- > **What is Partial Query ?**
- >
- > In some distributed file systems(e.g. HDFS), a file is split into severval parts which are called "Blocks" and stored in different nodes. Executing a query paralleled in each nodes involved makes better efficiency. Thus Partial Query is needed. Paritial Query only selects the results stored in the part split by ```QueryConstant.PARTITION_START_OFFSET``` and ```QueryConstant.PARTITION_END_OFFSET``` for a TsFile.
+### Construct Query Request
-* QueryDataset Interface
-
-The query performed above will return a `QueryDataset` object.
-
-Here's the useful interfaces for user.
-
- * `bool hasNext();`
-
- Return true if this dataset still has elements.
- * `List<Path> getPaths()`
+```shell
+ArrayList<Path> paths = new ArrayList<>();
+paths.add(new Path("Solar_panel_1", "voltage",true));
+paths.add(new Path("Solar_panel_1", "current",true));
- Get the paths in this data set.
- * `List<TSDataType> getDataTypes();`
+IExpression timeFilter =
+ BinaryExpression.and(
+ new GlobalTimeExpression(TimeFilterApi.gtEq(4L)),
+ new GlobalTimeExpression(TimeFilterApi.ltEq(10L)));
- Get the data types. The class TSDataType is an enum class, the value will be one of the following:
+QueryExpression queryExpression = QueryExpression.create(paths, timeFilter);
+```
- BOOLEAN,
- INT32,
- INT64,
- FLOAT,
- DOUBLE,
- TEXT;
- * `RowRecord next() throws IOException;`
+### Query Data
- Get the next record.
-
- The class `RowRecord` consists of a `long` timestamp and a `List<Field>` for data in different sensors,
- we can use two getter methods to get them.
-
- ```java
- long getTimestamp();
- List<Field> getFields();
- ```
-
- To get data from one Field, use these methods:
-
- ```java
- TSDataType getDataType();
- Object getObjectValue();
- ```
-
-
-
-### Example for reading an existing TsFile
-
-
-You should install TsFile to your local maven repository.
-
-
-A more thorough example with query statement can be found at
-`/example/src/main/java/org/apache/tsfile/TsFileRead.java`
-
-```java
-package org.apache.tsfile;
-import java.io.IOException;
-import java.util.ArrayList;
-import org.apache.tsfile.read.ReadOnlyTsFile;
-import org.apache.tsfile.read.TsFileSequenceReader;
-import org.apache.tsfile.read.common.Path;
-import org.apache.tsfile.read.expression.IExpression;
-import org.apache.tsfile.read.expression.QueryExpression;
-import org.apache.tsfile.read.expression.impl.BinaryExpression;
-import org.apache.tsfile.read.expression.impl.GlobalTimeExpression;
-import org.apache.tsfile.read.expression.impl.SingleSeriesExpression;
-import org.apache.tsfile.read.filter.TimeFilter;
-import org.apache.tsfile.read.filter.ValueFilter;
-import org.apache.tsfile.read.query.dataset.QueryDataSet;
-
-/**
- * The class is to show how to read TsFile file named "test.tsfile".
- * The TsFile file "test.tsfile" is generated from class TsFileWrite.
- * Run TsFileWrite to generate the test.tsfile first
- */
-public class TsFileRead {
- private static void queryAndPrint(ArrayList<Path> paths, ReadOnlyTsFile readTsFile, IExpression statement)
- throws IOException {
- QueryExpression queryExpression = QueryExpression.create(paths, statement);
- QueryDataSet queryDataSet = readTsFile.query(queryExpression);
- while (queryDataSet.hasNext()) {
- System.out.println(queryDataSet.next());
- }
- System.out.println("------------");
- }
-
- public static void main(String[] args) throws IOException {
-
- // file path
- String path = "test.tsfile";
-
- // create reader and get the readTsFile interface
- TsFileSequenceReader reader = new TsFileSequenceReader(path);
- ReadOnlyTsFile readTsFile = new ReadOnlyTsFile(reader);
- // use these paths(all sensors) for all the queries
- ArrayList<Path> paths = new ArrayList<>();
- paths.add(new Path("device_1.sensor_1"));
- paths.add(new Path("device_1.sensor_2"));
- paths.add(new Path("device_1.sensor_3"));
-
- // no query statement
- queryAndPrint(paths, readTsFile, null);
-
- //close the reader when you left
- reader.close();
- }
+```shell
+QueryDataSet queryDataSet = tsFileReader.query(queryExpression);
+while (queryDataSet.hasNext()) {
+ queryDataSet.next();
}
```
+### Close File
-
-## Change TsFile Configuration
-
-```java
-TSFileConfig config = TSFileDescriptor.getInstance().getConfig();
-config.setXXX();
+```shell
+tsFileReader.close();
```
+### Sample Code
+<https://github.com/apache/tsfile/blob/develop/java/examples/src/main/java/org/apache/tsfile/TsFileRead.java>
diff --git a/docs/src/UserGuide/latest/QuickStart/QuickStart.md b/docs/src/stage/QuickStart.md
similarity index 100%
copy from docs/src/UserGuide/latest/QuickStart/QuickStart.md
copy to docs/src/stage/QuickStart.md
diff --git a/docs/src/zh/UserGuide/latest/QuickStart/QuickStart.md b/docs/src/zh/UserGuide/latest/QuickStart/QuickStart.md
index 7ead357f..48e68d11 100644
--- a/docs/src/zh/UserGuide/latest/QuickStart/QuickStart.md
+++ b/docs/src/zh/UserGuide/latest/QuickStart/QuickStart.md
@@ -18,542 +18,106 @@
under the License.
-->
+# TsFile 快速上手
-# TsFile API
+## 数据示例
-TsFile 是在 IoTDB 中使用的时间序列的文件格式。在这个章节中,我们将介绍这种文件格式的用法。
+
-## 安装 TsFile library
+## 安装方式
-在您自己的项目中有两种方法使用 TsFile .
+在 `pom.xml` 的 `dependencies`中添加以下内容
-* 使用 jar 包:编译源码生成 jar 包
-
```shell
-git clone https://github.com/apache/tsfile.git
-mvn clean package -Dmaven.test.skip=true
+<dependency>
+ <groupId>org.apache.tsfile</groupId>
+ <artifactId>tsfile</artifactId>
+ <version>1.0.0</version>
+</dependency>
```
-命令执行完成之后,所有的 jar 包都可以从 `target/` 目录下找到。之后您可以在自己的工程中导入 `target/tsfile-1.0.0.jar`.
-
-* 使用 Maven 依赖:
-
-编译源码并且部署到您的本地仓库中需要 3 步:
-
- 1. 下载源码
-
- ```shell
-git clone https://github.com/apache/tsfile.git
- ```
- 2. 编译源码和部署到本地仓库
-
- ```shell
-mvn clean install -Dmaven.test.skip=true
- ```
- 3. 在您自己的工程中增加依赖:
-
- ```xml
- <dependency>
- <groupId>org.apache.tsfile</groupId>
- <artifactId>tsfile</artifactId>
- <version>1.0.0</version>
- </dependency>
- ```
-
-或者,您可以直接使用官方的 Maven 仓库:
-
- 1. 首先,在`${username}\.m2\settings.xml`目录下的`settings.xml`文件中`<profiles>`
- 节中增加`<profile>`,内容如下:
-
- ```xml
-<profile>
- <id>allow-snapshots</id>
- <activation><activeByDefault>true</activeByDefault></activation>
- <repositories>
- <repository>
- <id>apache.snapshots</id>
- <name>Apache Development Snapshot Repository</name>
- <url>https://repository.apache.org/content/repositories/snapshots/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- </profile>
- ```
- 2. 之后您可以在您的工程中增加如下依赖:
-
- ```xml
- <dependency>
- <groupId>org.apache.tsfile</groupId>
- <artifactId>tsfile</artifactId>
- <version>1.0.0</version>
- </dependency>
- ```
-
-## TsFile 的使用
-
-本章节演示 TsFile 的详细用法。
-
-时序数据 (Time-series Data)
-一个时序是由 4 个序列组成,分别是 device, measurement, time, value。
-
-* **measurement**: 时间序列描述的是一个物理或者形式的测量 (measurement),比如:城市的温度,一些商品的销售数量或者是火车在不同时间的速度。
-传统的传感器(如温度计)也采用单次测量 (measurement) 并产生时间序列,我们将在下面交替使用测量 (measurement) 和传感器。
-
-* **device**: 一个设备指的是一个正在进行多次测量(产生多个时间序列)的实体,例如,
- 一列正在运行的火车监控它的速度、油表、它已经运行的英里数,当前的乘客每个都被传送到一个时间序列。
-
-**单行数据**: 在许多工业应用程序中,一个设备通常包含多个传感器,这些传感器可能同时具有多个值,这称为一行数据。
-
-在形式上,一行数据包含一个`device_id`,它是一个时间戳,表示从 1970 年 1 月 1 日 00:00:00 开始的毫秒数,
-以及由`measurement_id`和相应的`value`组成的几个数据对。一行中的所有数据对都属于这个`device_id`,并且具有相同的时间戳。
-如果其中一个度量值`measurements`在某个时间戳`timestamp`没有值`value`,将使用一个空格表示(实际上 TsFile 并不存储 null 值)。
-其格式如下:
+## 写入流程
-```
-device_id, timestamp, <measurement_id, value>...
-```
-
-示例数据如下所示。在本例中,两个度量值 (measurement) 的数据类型分别是`INT32`和`FLOAT`。
-
-```
-device_1, 1490860659000, m1, 10, m2, 12.12
-```
-
-### 写入 TsFile
-
-TsFile 可以通过以下三个步骤生成,完整的代码参见"写入 TsFile 示例"章节。
-
-1. 构造一个`TsFileWriter`实例。
-
- 以下是可用的构造函数:
-
- * 没有预定义 schema
-
- ```java
- public TsFileWriter(File file) throws IOException
- ```
- * 预定义 schema
-
- ```java
- public TsFileWriter(File file, Schema schema) throws IOException
- ```
- 这个是用于使用 HDFS 文件系统的。`TsFileOutput`可以是`HDFSOutput`类的一个实例。
-
- ```java
- public TsFileWriter(TsFileOutput output, Schema schema) throws IOException
- ```
-
- 如果你想自己设置一些 TSFile 的配置,你可以使用`config`参数。比如:
-
- ```java
- TSFileConfig conf = new TSFileConfig();
- conf.setTSFileStorageFs("HDFS");
- TsFileWriter tsFileWriter = new TsFileWriter(file, schema, conf);
- ```
-
- 在上面的例子中,数据文件将存储在 HDFS 中,而不是本地文件系统中。如果你想在本地文件系统中存储数据文件,你可以使用`conf.setTSFileStorageFs("LOCAL")`,这也是默认的配置。
-
- 您还可以通过`config.setHdfsIp(...)`和`config.setHdfsPort(...)`来配置 HDFS 的 IP 和端口。默认的 IP 是`localhost`,默认的`RPC`端口是`9000`.
-
- **参数:**
-
- * file : 写入 TsFile 数据的文件
- * schema : 文件的 schemas,将在下章进行介绍
- * config : TsFile 的一些配置项
-
-2. 添加测量值 (measurement)
-
- 你也可以先创建一个`Schema`类的实例然后把它传递给`TsFileWriter`类的构造函数
-
- `Schema`类保存的是一个映射关系,key 是一个 measurement 的名字,value 是 measurement schema.
-
- 下面是一系列接口:
-
- ```java
- // Create an empty Schema or from an existing map
- public Schema()
- public Schema(Map<String, MeasurementSchema> measurements)
- // Use this two interfaces to add measurements
- public void registerMeasurement(MeasurementSchema descriptor)
- public void registerMeasurements(Map<String, MeasurementSchema> measurements)
- // Some useful getter and checker
- public TSDataType getMeasurementDataType(String measurementId)
- public MeasurementSchema getMeasurementSchema(String measurementId)
- public Map<String, MeasurementSchema> getAllMeasurementSchema()
- public boolean hasMeasurement(String measurementId)
- ```
-
- 你可以在`TsFileWriter`类中使用以下接口来添加额外的测量 (measurement):
-
- ```java
- public void addMeasurement(MeasurementSchema measurementSchema) throws WriteProcessException
- ```
-
- `MeasurementSchema`类保存了一个测量 (measurement) 的信息,有几个构造函数:
-
- ```java
- public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding)
- public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding, CompressionType compressionType)
- public MeasurementSchema(String measurementId, TSDataType type, TSEncoding encoding, CompressionType compressionType,
- Map<String, String> props)
- ```
-
- **参数:**
-
-
- * measurementID: 测量的名称,通常是传感器的名称。
-
- * type: 数据类型,现在支持六种类型:`BOOLEAN`, `INT32`, `INT64`, `FLOAT`, `DOUBLE`, `TEXT`;
-
- * encoding: 编码类型。
-
- * compression: 压缩方式。现在支持 `UNCOMPRESSED` 和 `SNAPPY`.
-
- * props: 特殊数据类型的属性。比如说`FLOAT`和`DOUBLE`可以设置`max_point_number`,`TEXT`可以设置`max_string_length`。
- 可以使用 Map 来保存键值对,比如 ("max_point_number", "3")。
-
- > **注意:** 虽然一个测量 (measurement) 的名字可以被用在多个 deltaObjects 中,但是它的参数是不允许被修改的。比如:
- 不允许多次为同一个测量 (measurement) 名添加不同类型的编码。下面是一个错误示例:
-
- ```java
- // The measurement "sensor_1" is float type
- addMeasurement(new MeasurementSchema("sensor_1", TSDataType.FLOAT, TSEncoding.RLE));
- // This call will throw a WriteProcessException exception
- addMeasurement(new MeasurementSchema("sensor_1", TSDataType.INT32, TSEncoding.RLE));
- ```
-3. 插入和写入数据。
-
- 使用这个接口创建一个新的`TSRecord`(时间戳和设备对)。
-
- ```java
- public TSRecord(long timestamp, String deviceId)
- ```
-
- 然后创建一个`DataPoint`(度量 (measurement) 和值的对应),并使用 addTuple 方法将数据 DataPoint 添加正确的值到 TsRecord。
-
- 用下面这种方法写
-
- ```java
- public void write(TSRecord record) throws IOException, WriteProcessException
- ```
-
-4. 调用`close`方法来完成写入过程。
-
- ```java
- public void close() throws IOException
- ```
-
-我们也支持将数据写入已关闭的 TsFile 文件中。
-
-1. 使用`ForceAppendTsFileWriter`打开已经关闭的文件。
-
- ```java
- public ForceAppendTsFileWriter(File file) throws IOException
- ```
-2. 调用 `doTruncate` 去掉文件的 Metadata 部分
-
-3. 使用 `ForceAppendTsFileWriter` 构造另一个`TsFileWriter`
-
- ```java
- public TsFileWriter(TsFileIOWriter fileWriter) throws IOException
- ```
-请注意 此时需要重新添加测量值 (measurement) 再进行上述写入操作。
-
-### 写入 TsFile 示例
-
-您需要安装 TsFile 到本地的 Maven 仓库中。
+### 构造 TsFileWriter
```shell
-mvn clean install -am -DskipTests
-```
-
-如果存在**非对齐**的时序数据(比如:不是所有的传感器都有值),您可以通过构造** TSRecord **来写入。
-
-更详细的例子可以在
-
-```
-/example/src/main/java/org/apache/tsfile/TsFileWriteWithTSRecord.java
-```
-
-中查看
-
-如果所有时序数据都是**对齐**的,您可以通过构造** Tablet **来写入数据。
-
-更详细的例子可以在
-
+File f = new File("test.tsfile");
+TsFileWriter tsFileWriter = new TsFileWriter(f);
```
-/example/src/main/java/org/apache/tsfile/TsFileWriteWithTablet.java
-```
-中查看
-在已关闭的 TsFile 文件中写入新数据的详细例子可以在
+### 注册时间序列
-```
-/example/src/main/java/org/apache/tsfile/TsFileForceAppendWrite.java
-```
-中查看
-
-### 读取 TsFile 接口
-
- * 路径的定义
-
-路径是一个点 (.) 分隔的字符串,它唯一地标识 TsFile 中的时间序列,例如:"root.area_1.device_1.sensor_1"。
-最后一部分"sensor_1"称为"measurementId",其余部分"root.area_1.device_1"称为 deviceId。
-正如之前提到的,不同设备中的相同测量 (measurement) 具有相同的数据类型和编码,设备也是唯一的。
-
-在 read 接口中,参数`paths`表示要选择的测量值 (measurement)。
-Path 实例可以很容易地通过类`Path`来构造。例如:
+```shell
+List<MeasurementSchema> schema1 = new ArrayList<>();
+schema1.add(new MeasurementSchema("电压", TSDataType.FLOAT));
+schema1.add(new MeasurementSchema("电流", TSDataType.FLOAT));
+tsFileWriter.registerTimeseries(new Path("太阳能板1"), schema1);
-```java
-Path p = new Path("device_1.sensor_1");
+List<MeasurementSchema> schema2 = new ArrayList<>();
+schema2.add(new MeasurementSchema("电压", TSDataType.FLOAT));
+schema2.add(new MeasurementSchema("电流", TSDataType.FLOAT));
+schema2.add(new MeasurementSchema("风速", TSDataType.FLOAT));
+tsFileWriter.registerTimeseries(new Path("风机1"), schema2);
```
-我们可以为查询传递一个 ArrayList 路径,以支持多个路径查询。
+### 写入数据
-```java
-List<Path> paths = new ArrayList<Path>();
-paths.add(new Path("device_1.sensor_1"));
-paths.add(new Path("device_1.sensor_3"));
+```shell
+TSRecord tsRecord = new TSRecord(1, "太阳能板1");
+tsRecord.addTuple(DataPoint.getDataPoint(TSDataType.FLOAT, "电压", 1.1f));
+tsRecord.addTuple(DataPoint.getDataPoint(TSDataType.FLOAT, "电流", 2.2f));
+tsFileWriter.write(tsRecord);
```
-> **注意:** 在构造路径时,参数的格式应该是一个点 (.) 分隔的字符串,最后一部分是 measurement,其余部分确认为 deviceId。
+### 关闭文件
- * 定义 Filter
-
- * 使用条件过滤
-在 TsFile 读取过程中使用 Filter 来选择满足一个或多个给定条件的数据。
-
- * IExpression
-`IExpression`是一个过滤器表达式接口,它将被传递给系统查询时调用。
-我们创建一个或多个筛选器表达式,并且可以使用`Binary Filter Operators`将它们连接形成最终表达式。
-
-* **创建一个 Filter 表达式**
-
- 有两种类型的过滤器。
-
- * TimeFilter: 使用时序数据中的`time`过滤。
-
- ```java
- IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter);
- ```
-
- 使用以下关系获得一个`TimeFilter`对象(值是一个 long 型变量)。
-
-|Relationship|Description|
-|----|----|
-|TimeFilter.eq(value)|选择时间等于值的数据|
-|TimeFilter.lt(value)|选择时间小于值的数据|
-|TimeFilter.gt(value)|选择时间大于值的数据|
-|TimeFilter.ltEq(value)|选择时间小于等于值的数据|
-|TimeFilter.gtEq(value)|选择时间大于等于值的数据|
-|TimeFilter.notEq(value)|选择时间不等于值的数据|
-|TimeFilter.not(TimeFilter)|选择时间不满足另一个时间过滤器的数据|
-
- * ValueFilter: 使用时序数据中的`value`过滤。
-
-
-```java
-IExpression valueFilterExpr = new SingleSeriesExpression(Path, ValueFilter);
+```shell
+tsFileWriter.close();
```
- `ValueFilter`的用法与`TimeFilter`相同,只是需要确保值的类型等于 measurement(在路径中定义)的类型。
+### 示例代码
-* **Binary Filter Operators**
+<https://github.com/apache/tsfile/blob/develop/java/examples/src/main/java/org/apache/tsfile/TsFileWriteWithTSRecord.java>
- Binary filter operators 可以用来连接两个单独的表达式。
+## 查询流程
- * BinaryExpression.and(Expression, Expression): 选择同时满足两个表达式的数据。
- * BinaryExpression.or(Expression, Expression): 选择满足任意一个表达式值的数据。
-
-
-Filter Expression 示例
-
-* **TimeFilterExpression 示例**
+### 构造 TsFileReader
-```java
-IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.eq(15)); // series time = 15
-```
-```java
-IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.ltEq(15)); // series time <= 15
-```
-```java
-IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.lt(15)); // series time < 15
-```
-```java
-IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.gtEq(15)); // series time >= 15
-```
-```java
-IExpression timeFilterExpr = new GlobalTimeExpression(TimeFilter.notEq(15)); // series time != 15
-```
-```java
-IExpression timeFilterExpr = BinaryExpression.and(
- new GlobalTimeExpression(TimeFilter.gtEq(15L)),
- new GlobalTimeExpression(TimeFilter.lt(25L))); // 15 <= series time < 25
-```
-```java
-IExpression timeFilterExpr = BinaryExpression.or(
- new GlobalTimeExpression(TimeFilter.gtEq(15L)),
- new GlobalTimeExpression(TimeFilter.lt(25L))); // series time >= 15 or series time < 25
+```shell
+TsFileSequenceReader reader = new TsFileSequenceReader(path);
+TsFileReader tsFileReader = new TsFileReader(reader);
```
-* 读取接口
+### 构造查询请求
-首先,我们打开 TsFile 并从文件路径`path`中获取一个`ReadOnlyTsFile`实例。
+```shell
+ArrayList<Path> paths = new ArrayList<>();
+paths.add(new Path("太阳能板1", "电压",true));
+paths.add(new Path("太阳能板1", "电流",true));
-```java
-TsFileSequenceReader reader = new TsFileSequenceReader(path);
-ReadOnlyTsFile readTsFile = new ReadOnlyTsFile(reader);
-```
-接下来,我们准备路径数组和查询表达式,然后通过这个接口得到最终的`QueryExpression`对象:
+IExpression timeFilter =
+ BinaryExpression.and(
+ new GlobalTimeExpression(TimeFilterApi.gtEq(4L)),
+ new GlobalTimeExpression(TimeFilterApi.ltEq(10L)));
-```java
-QueryExpression queryExpression = QueryExpression.create(paths, statement);
+QueryExpression queryExpression = QueryExpression.create(paths, timeFilter);
```
-ReadOnlyTsFile 类有两个`query`方法来执行查询。
+### 查询数据
-```java
-public QueryDataSet query(QueryExpression queryExpression) throws IOException
-public QueryDataSet query(QueryExpression queryExpression, long partitionStartOffset, long partitionEndOffset) throws IOException
+```shell
+QueryDataSet queryDataSet = tsFileReader.query(queryExpression);
+while (queryDataSet.hasNext()) {
+ queryDataSet.next();
+}
```
-此方法是为高级应用(如 TsFile-Spark 连接器)设计的。
-
-* **参数** : 对于第二个方法,添加了两个额外的参数来支持部分查询 (Partial Query):
- * `partitionStartOffset`: TsFile 的开始偏移量
- * `partitionEndOffset`: TsFile 的结束偏移量
-
->什么是部分查询?
-
-> 在一些分布式文件系统中(比如:HDFS), 文件被分成几个部分,这些部分被称为"Blocks"并存储在不同的节点中。在涉及的每个节点上并行执行查询可以提高效率。因此需要部分查询 (Partial Query)。部分查询 (Partial Query) 仅支持查询 TsFile 中被`QueryConstant.PARTITION_START_OFFSET`和`QueryConstant.PARTITION_END_OFFSET`分割的部分。
+### 关闭文件
-* QueryDataset 接口
-
- 上面执行的查询将返回一个`QueryDataset`对象。
-
- 以下是一些用户常用的接口:
-
- * `bool hasNext();`
-
- 如果该数据集仍然有数据,则返回 true。
- * `List<Path> getPaths()`
-
- 获取这个数据集中的路径。
- * `List<TSDataType> getDataTypes();`
-
- 获取数据类型。
-
- * `RowRecord next() throws IOException;`
-
- 获取下一条记录。
-
- `RowRecord`类包含一个`long`类型的时间戳和一个`List<Field>`,用于不同传感器中的数据,我们可以使用两个 getter 方法来获取它们。
-
- ```java
- long getTimestamp();
- List<Field> getFields();
- ```
-
- 要从一个字段获取数据,请使用以下方法:
-
- ```java
- TSDataType getDataType();
- Object getObjectValue();
- ```
-
-### 读取现有 TsFile 示例
-
-您需要安装 TsFile 到本地的 Maven 仓库中。
-
-有关查询语句的更详细示例,请参见
-`/example/src/main/java/org/apache/tsfile/TsFileRead.java`
-
-```java
-package org.apache.tsfile;
-import java.io.IOException;
-import java.util.ArrayList;
-import org.apache.tsfile.read.ReadOnlyTsFile;
-import org.apache.tsfile.read.TsFileSequenceReader;
-import org.apache.tsfile.read.common.Path;
-import org.apache.tsfile.read.expression.IExpression;
-import org.apache.tsfile.read.expression.QueryExpression;
-import org.apache.tsfile.read.expression.impl.BinaryExpression;
-import org.apache.tsfile.read.expression.impl.GlobalTimeExpression;
-import org.apache.tsfile.read.expression.impl.SingleSeriesExpression;
-import org.apache.tsfile.read.filter.TimeFilter;
-import org.apache.tsfile.read.filter.ValueFilter;
-import org.apache.tsfile.read.query.dataset.QueryDataSet;
-
-/**
- * The class is to show how to read TsFile file named "test.tsfile".
- * The TsFile file "test.tsfile" is generated from class TsFileWrite.
- * Run TsFileWrite to generate the test.tsfile first
- */
-public class TsFileRead {
- private static final String DEVICE1 = "device_1";
-
- private static void queryAndPrint(ArrayList<Path> paths, ReadOnlyTsFile readTsFile, IExpression statement)
- throws IOException {
- QueryExpression queryExpression = QueryExpression.create(paths, statement);
- QueryDataSet queryDataSet = readTsFile.query(queryExpression);
- while (queryDataSet.hasNext()) {
- System.out.println(queryDataSet.next());
- }
- System.out.println("------------");
- }
-
- public static void main(String[] args) throws IOException {
-
- // file path
- String path = "test.tsfile";
-
- // create reader and get the readTsFile interface
- try (TsFileSequenceReader reader = new TsFileSequenceReader(path);
- ReadOnlyTsFile readTsFile = new ReadOnlyTsFile(reader)){
-
- // use these paths(all sensors) for all the queries
- ArrayList<Path> paths = new ArrayList<>();
- paths.add(new Path(DEVICE1, "sensor_1"));
- paths.add(new Path(DEVICE1, "sensor_2"));
- paths.add(new Path(DEVICE1, "sensor_3"));
-
- // no filter, should select 1 2 3 4 6 7 8
- queryAndPrint(paths, readTsFile, null);
-
- // time filter : 4 <= time <= 10, should select 4 6 7 8
- IExpression timeFilter =
- BinaryExpression.and(
- new GlobalTimeExpression(TimeFilter.gtEq(4L)),
- new GlobalTimeExpression(TimeFilter.ltEq(10L)));
- queryAndPrint(paths, readTsFile, timeFilter);
-
- // value filter : device_1.sensor_2 <= 20, should select 1 2 4 6 7
- IExpression valueFilter =
- new SingleSeriesExpression(new Path(DEVICE1, "sensor_2"), ValueFilter.ltEq(20L));
- queryAndPrint(paths, readTsFile, valueFilter);
-
- // time filter : 4 <= time <= 10, value filter : device_1.sensor_3 >= 20, should select 4 7 8
- timeFilter =
- BinaryExpression.and(
- new GlobalTimeExpression(TimeFilter.gtEq(4L)),
- new GlobalTimeExpression(TimeFilter.ltEq(10L)));
- valueFilter =
- new SingleSeriesExpression(new Path(DEVICE1, "sensor_3"), ValueFilter.gtEq(20L));
- IExpression finalFilter = BinaryExpression.and(timeFilter, valueFilter);
- queryAndPrint(paths, readTsFile, finalFilter);
- }
- }
-}
+```shell
+tsFileReader.cloFan 1se();
```
-## 修改 TsFile 配置项
+### 示例代码
-```java
-TSFileConfig config = TSFileDescriptor.getInstance().getConfig();
-config.setXXX();
-```
+<https://github.com/apache/tsfile/blob/develop/java/examples/src/main/java/org/apache/tsfile/TsFileRead.java>
\ No newline at end of file
diff --git a/docs/src/zh/UserGuide/latest/QuickStart/QuickStart.md b/docs/src/zh/stage/QuickStart.md
similarity index 100%
copy from docs/src/zh/UserGuide/latest/QuickStart/QuickStart.md
copy to docs/src/zh/stage/QuickStart.md
(tsfile) 25/33: support separated aligned chunk (#151)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 0ae8ddabf632d6c130d86a51fe5654af0d66b75d
Author: shuwenwei <55...@users.noreply.github.com>
AuthorDate: Fri Jul 5 17:51:21 2024 +0800
support separated aligned chunk (#151)
---
.../java/org/apache/tsfile/TsFileSequenceRead.java | 76 ++++++++++++++++------
.../apache/tsfile/read/TsFileSequenceReader.java | 30 +++++++--
.../tsfile/read/reader/page/AlignedPageReader.java | 8 +++
.../tsfile/write/chunk/AlignedChunkWriterImpl.java | 14 ++--
.../apache/tsfile/write/chunk/TimeChunkWriter.java | 14 ++--
5 files changed, 104 insertions(+), 38 deletions(-)
diff --git a/java/examples/src/main/java/org/apache/tsfile/TsFileSequenceRead.java b/java/examples/src/main/java/org/apache/tsfile/TsFileSequenceRead.java
index 5e731479..5e708f1f 100644
--- a/java/examples/src/main/java/org/apache/tsfile/TsFileSequenceRead.java
+++ b/java/examples/src/main/java/org/apache/tsfile/TsFileSequenceRead.java
@@ -35,9 +35,8 @@ import org.apache.tsfile.fileSystem.FSFactoryProducer;
import org.apache.tsfile.read.TsFileSequenceReader;
import org.apache.tsfile.read.common.BatchData;
import org.apache.tsfile.read.reader.page.PageReader;
-import org.apache.tsfile.read.reader.page.TimePageReader;
-import org.apache.tsfile.read.reader.page.ValuePageReader;
-import org.apache.tsfile.utils.TsPrimitiveType;
+import org.apache.tsfile.utils.ReadWriteIOUtils;
+import org.apache.tsfile.write.UnSupportedDataTypeException;
import java.io.IOException;
import java.nio.ByteBuffer;
@@ -50,6 +49,7 @@ public class TsFileSequenceRead {
// if you wanna print detailed datas in pages, then turn it true.
private static boolean printDetail = false;
public static final String POINT_IN_PAGE = "\t\tpoints in the page: ";
+ private static int MASK = 0x80;
@SuppressWarnings({
"squid:S3776",
@@ -123,30 +123,64 @@ public class TsFileSequenceRead {
"\t\tCompressed page data size: " + pageHeader.getCompressedSize());
if ((header.getChunkType() & TsFileConstant.TIME_COLUMN_MASK)
== TsFileConstant.TIME_COLUMN_MASK) { // Time Chunk
- TimePageReader timePageReader =
- new TimePageReader(pageHeader, pageData, defaultTimeDecoder);
- timeBatch.add(timePageReader.getNextTimeBatch());
- System.out.println(POINT_IN_PAGE + timeBatch.get(pageIndex).length);
- if (printDetail) {
- for (int i = 0; i < timeBatch.get(pageIndex).length; i++) {
- System.out.println("\t\t\ttime: " + timeBatch.get(pageIndex)[i]);
+ Decoder decoder =
+ Decoder.getDecoderByType(header.getEncodingType(), header.getDataType());
+ while (decoder.hasNext(pageData)) {
+ long currentTime = decoder.readLong(pageData);
+ if (printDetail) {
+ System.out.println("\t\t\ttime: " + currentTime);
}
}
} else if ((header.getChunkType() & TsFileConstant.VALUE_COLUMN_MASK)
== TsFileConstant.VALUE_COLUMN_MASK) { // Value Chunk
- ValuePageReader valuePageReader =
- new ValuePageReader(pageHeader, pageData, header.getDataType(), valueDecoder);
- TsPrimitiveType[] valueBatch =
- valuePageReader.nextValueBatch(timeBatch.get(pageIndex));
- if (valueBatch.length == 0) {
- System.out.println("\t\t-- Empty Page ");
- } else {
- System.out.println(POINT_IN_PAGE + valueBatch.length);
+ int pointNum = 0;
+ byte[] bitmap = null;
+ if (pageData.hasRemaining()) {
+ int size = ReadWriteIOUtils.readInt(pageData);
+ bitmap = new byte[(size + 7) / 8];
+ pageData.get(bitmap);
}
- if (printDetail) {
- for (TsPrimitiveType batch : valueBatch) {
- System.out.println("\t\t\tvalue: " + batch);
+ while (valueDecoder.hasNext(pageData)) {
+ pointNum++;
+ int idx = pointNum - 1;
+ if (((bitmap[idx / 8] & 0xFF) & (MASK >>> (idx % 8))) == 0) {
+ if (printDetail) {
+ System.out.println("\t\t\tvalue: " + null);
+ }
+ continue;
+ }
+ Object value;
+ switch (header.getDataType()) {
+ case BOOLEAN:
+ value = valueDecoder.readBoolean(pageData);
+ break;
+ case INT32:
+ value = valueDecoder.readInt(pageData);
+ break;
+ case INT64:
+ value = valueDecoder.readLong(pageData);
+ break;
+ case FLOAT:
+ value = valueDecoder.readFloat(pageData);
+ break;
+ case DOUBLE:
+ value = valueDecoder.readDouble(pageData);
+ break;
+ case TEXT:
+ value = valueDecoder.readBinary(pageData);
+ break;
+ default:
+ throw new UnSupportedDataTypeException(String.valueOf(header.getDataType()));
}
+ if (printDetail) {
+ System.out.println("\t\t\tvalue: " + value);
+ }
+ }
+ pageData.flip();
+ if (pointNum == 0) {
+ System.out.println("\t\t-- Empty Page ");
+ } else {
+ System.out.println(POINT_IN_PAGE + pointNum);
}
} else { // NonAligned Chunk
PageReader pageReader =
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java
index 7107242e..fa9b8ab3 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java
@@ -1755,6 +1755,7 @@ public class TsFileSequenceReader implements AutoCloseable {
List<long[]> timeBatch = new ArrayList<>();
IDeviceID lastDeviceId = null;
List<IMeasurementSchema> measurementSchemaList = new ArrayList<>();
+ Map<String, Integer> valueColumn2TimeBatchIndex = new HashMap<>();
try {
while ((marker = this.readMarker()) != MetaMarker.SEPARATOR) {
switch (marker) {
@@ -1778,17 +1779,24 @@ public class TsFileSequenceReader implements AutoCloseable {
chunkHeader.getCompressionType());
measurementSchemaList.add(measurementSchema);
dataType = chunkHeader.getDataType();
- if (chunkHeader.getDataType() == TSDataType.VECTOR) {
- timeBatch.clear();
- }
+
Statistics<? extends Serializable> chunkStatistics =
Statistics.getStatsByType(dataType);
int dataSize = chunkHeader.getDataSize();
if (dataSize > 0) {
+ if (marker == MetaMarker.TIME_CHUNK_HEADER) {
+ timeBatch.add(null);
+ }
if (((byte) (chunkHeader.getChunkType() & 0x3F))
== MetaMarker
.CHUNK_HEADER) { // more than one page, we could use page statistics to
+ if (marker == MetaMarker.VALUE_CHUNK_HEADER) {
+ int timeBatchIndex =
+ valueColumn2TimeBatchIndex.getOrDefault(chunkHeader.getMeasurementID(), 0);
+ valueColumn2TimeBatchIndex.put(
+ chunkHeader.getMeasurementID(), timeBatchIndex + 1);
+ }
// generate chunk statistic
while (dataSize > 0) {
// a new Page
@@ -1830,7 +1838,12 @@ public class TsFileSequenceReader implements AutoCloseable {
ValuePageReader valuePageReader =
new ValuePageReader(
pageHeader, pageData, chunkHeader.getDataType(), valueDecoder);
- TsPrimitiveType[] valueBatch = valuePageReader.nextValueBatch(timeBatch.get(0));
+ int timeBatchIndex =
+ valueColumn2TimeBatchIndex.getOrDefault(chunkHeader.getMeasurementID(), 0);
+ valueColumn2TimeBatchIndex.put(
+ chunkHeader.getMeasurementID(), timeBatchIndex + 1);
+ TsPrimitiveType[] valueBatch =
+ valuePageReader.nextValueBatch(timeBatch.get(timeBatchIndex));
if (valueBatch != null && valueBatch.length != 0) {
for (int i = 0; i < valueBatch.length; i++) {
@@ -1838,7 +1851,7 @@ public class TsFileSequenceReader implements AutoCloseable {
if (value == null) {
continue;
}
- long timeStamp = timeBatch.get(0)[i];
+ long timeStamp = timeBatch.get(timeBatchIndex)[i];
switch (dataType) {
case INT32:
case DATE:
@@ -1909,6 +1922,11 @@ public class TsFileSequenceReader implements AutoCloseable {
}
chunkHeader.increasePageNums(1);
}
+ } else if (marker == MetaMarker.ONLY_ONE_PAGE_VALUE_CHUNK_HEADER
+ || marker == MetaMarker.VALUE_CHUNK_HEADER) {
+ int timeBatchIndex =
+ valueColumn2TimeBatchIndex.getOrDefault(chunkHeader.getMeasurementID(), 0);
+ valueColumn2TimeBatchIndex.put(chunkHeader.getMeasurementID(), timeBatchIndex + 1);
}
currentChunk =
new ChunkMetadata(measurementID, dataType, fileOffsetOfChunk, chunkStatistics);
@@ -1934,6 +1952,8 @@ public class TsFileSequenceReader implements AutoCloseable {
chunkMetadataList = new ArrayList<>();
ChunkGroupHeader chunkGroupHeader = this.readChunkGroupHeader();
lastDeviceId = chunkGroupHeader.getDeviceID();
+ timeBatch.clear();
+ valueColumn2TimeBatchIndex.clear();
break;
case MetaMarker.OPERATION_INDEX_RANGE:
truncatedSize = this.position() - 1;
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/page/AlignedPageReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/page/AlignedPageReader.java
index 75f664f5..5307ed35 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/reader/page/AlignedPageReader.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/reader/page/AlignedPageReader.java
@@ -469,4 +469,12 @@ public class AlignedPageReader implements IPageReader {
builder = new TsBlockBuilder((int) timePageReader.getStatistics().getCount(), dataTypes);
}
}
+
+ public TimePageReader getTimePageReader() {
+ return timePageReader;
+ }
+
+ public List<ValuePageReader> getValuePageReaderList() {
+ return valuePageReaderList;
+ }
}
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/AlignedChunkWriterImpl.java b/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/AlignedChunkWriterImpl.java
index d5fddb83..22d310c2 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/AlignedChunkWriterImpl.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/AlignedChunkWriterImpl.java
@@ -42,12 +42,14 @@ import java.util.List;
public class AlignedChunkWriterImpl implements IChunkWriter {
- private final TimeChunkWriter timeChunkWriter;
- private final List<ValueChunkWriter> valueChunkWriterList;
- private int valueIndex;
+ protected TimeChunkWriter timeChunkWriter;
+ protected List<ValueChunkWriter> valueChunkWriterList;
+ protected int valueIndex;
// Used for batch writing
- private long remainingPointsNumber;
+ protected long remainingPointsNumber;
+
+ protected AlignedChunkWriterImpl() {}
// TestOnly
public AlignedChunkWriterImpl(VectorMeasurementSchema schema) {
@@ -330,7 +332,7 @@ public class AlignedChunkWriterImpl implements IChunkWriter {
* check occupied memory size, if it exceeds the PageSize threshold, construct a page and put it
* to pageBuffer
*/
- private boolean checkPageSizeAndMayOpenANewPage() {
+ protected boolean checkPageSizeAndMayOpenANewPage() {
if (timeChunkWriter.checkPageSizeAndMayOpenANewPage()) {
return true;
}
@@ -342,7 +344,7 @@ public class AlignedChunkWriterImpl implements IChunkWriter {
return false;
}
- private void writePageToPageBuffer() {
+ protected void writePageToPageBuffer() {
timeChunkWriter.writePageToPageBuffer();
for (ValueChunkWriter valueChunkWriter : valueChunkWriterList) {
valueChunkWriter.writePageToPageBuffer();
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/TimeChunkWriter.java b/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/TimeChunkWriter.java
index b12e2e53..756031fc 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/TimeChunkWriter.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/write/chunk/TimeChunkWriter.java
@@ -47,14 +47,14 @@ public class TimeChunkWriter {
private static final Logger logger = LoggerFactory.getLogger(TimeChunkWriter.class);
- private final String measurementId;
+ private String measurementId;
- private final TSEncoding encodingType;
+ private TSEncoding encodingType;
- private final CompressionType compressionType;
+ private CompressionType compressionType;
/** all pages of this chunk. */
- private final PublicBAOS pageBuffer;
+ private PublicBAOS pageBuffer;
private int numOfPages;
@@ -62,9 +62,9 @@ public class TimeChunkWriter {
private TimePageWriter pageWriter;
/** page size threshold. */
- private final long pageSizeThreshold;
+ private long pageSizeThreshold;
- private final int maxNumberOfPointsInPage;
+ private int maxNumberOfPointsInPage;
/** value count in current page. */
private int valueCountInOnePageForNextCheck;
@@ -80,6 +80,8 @@ public class TimeChunkWriter {
private Statistics<?> firstPageStatistics;
+ protected TimeChunkWriter() {}
+
public TimeChunkWriter(
String measurementId,
CompressionType compressionType,
(tsfile) 08/33: fix the class to prevent the program from crashing unexpectedly (#126)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit f844be8f4521784b9200c9c77eb6fc898d7b1431
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Thu Jun 27 11:25:57 2024 +0800
fix the class to prevent the program from crashing unexpectedly (#126)
---
cpp/src/common/datatype/value.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/cpp/src/common/datatype/value.h b/cpp/src/common/datatype/value.h
index 5d91d776..c8284360 100644
--- a/cpp/src/common/datatype/value.h
+++ b/cpp/src/common/datatype/value.h
@@ -33,16 +33,16 @@
namespace common {
struct Value {
- Value(TSDataType type) : type_(type) {}
+ Value(TSDataType type) : type_(type), value_{0} {}
~Value() {
- if (value_.sval_) {
+ if (is_type(NULL_TYPE) && value_.sval_) {
free(value_.sval_);
}
}
FORCE_INLINE void free_memory() {
- if (value_.sval_) {
+ if (is_type(NULL_TYPE) && value_.sval_) {
free(value_.sval_);
value_.sval_ = nullptr;
}
@@ -80,7 +80,7 @@ struct Value {
break;
}
case common::TEXT: {
- value_.sval_ = strdup(val);
+ value_.sval_ = strdup((const char *)val);
break;
}
default: {
@@ -155,6 +155,7 @@ FORCE_INLINE std::string value_to_string(Value *value) {
break;
case common::NULL_TYPE:
ss << "NULL";
+ break;
default:
ASSERT(false);
break;
(tsfile) 06/33: Fix the bitpack_codec to keep it consistent with the Java version. (#123)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit d289efb5feb9d54d4d3a9aa0b72d040647b75b69
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Thu Jun 27 11:16:36 2024 +0800
Fix the bitpack_codec to keep it consistent with the Java version. (#123)
* Fix the bitpack_codec to keep it consistent with the Java version.
* fix bitpack codec
---
cpp/src/encoding/bitpack_decoder.h | 12 +++++++-----
cpp/src/encoding/bitpack_encoder.h | 16 ++++++++--------
cpp/src/encoding/intpacker.h | 27 ++++++++++++++-------------
3 files changed, 29 insertions(+), 26 deletions(-)
diff --git a/cpp/src/encoding/bitpack_decoder.h b/cpp/src/encoding/bitpack_decoder.h
index 8d431f18..c6aef933 100644
--- a/cpp/src/encoding/bitpack_decoder.h
+++ b/cpp/src/encoding/bitpack_decoder.h
@@ -37,7 +37,7 @@ class BitPackDecoder {
bool is_length_and_bitwidth_readed_;
int current_count_;
common::ByteStream byte_cache_;
- int *current_buffer_;
+ int64_t *current_buffer_;
IntPacker *packer_;
uint8_t *tmp_buf_;
@@ -71,7 +71,7 @@ class BitPackDecoder {
return current_count_ > 0 || byte_cache_.remaining_size() > 0;
}
- int read_int(common::ByteStream &buffer) {
+ int64_t read_int(common::ByteStream &buffer) {
if (!is_length_and_bitwidth_readed_) {
// start to reader a new rle+bit-packing pattern
read_length_and_bitwidth(buffer);
@@ -86,7 +86,7 @@ class BitPackDecoder {
call_read_bit_packing_buffer(header);
}
--current_count_;
- int result = current_buffer_[bitpacking_num_ - current_count_ - 1];
+ int64_t result = current_buffer_[bitpacking_num_ - current_count_ - 1];
if (!has_next_package()) {
is_length_and_bitwidth_readed_ = false;
}
@@ -120,7 +120,7 @@ class BitPackDecoder {
void read_bit_packing_buffer(int bit_packed_group_count,
int last_bit_packed_num) {
- current_buffer_ = new int[bit_packed_group_count * 8];
+ current_buffer_ = new int64_t[bit_packed_group_count * 8];
unsigned char bytes[bit_packed_group_count * bit_width_];
int bytes_to_read = bit_packed_group_count * bit_width_;
if (bytes_to_read > (int)byte_cache_.remaining_size()) {
@@ -155,7 +155,9 @@ class BitPackDecoder {
}
byte_cache_.wrap_from((char *)tmp_buf_, length_);
is_length_and_bitwidth_readed_ = true;
- common::SerializationUtil::read_ui32(bit_width_, byte_cache_);
+ uint8_t tmp_bit_width;
+ common::SerializationUtil::read_ui8(tmp_bit_width, byte_cache_);
+ bit_width_ = tmp_bit_width;
init_packer();
}
return ret;
diff --git a/cpp/src/encoding/bitpack_encoder.h b/cpp/src/encoding/bitpack_encoder.h
index 1dc3edbe..85a385bf 100644
--- a/cpp/src/encoding/bitpack_encoder.h
+++ b/cpp/src/encoding/bitpack_encoder.h
@@ -37,8 +37,8 @@ class BitPackEncoder {
int bit_width_;
IntPacker *packer_;
common::ByteStream byte_cache_;
- std::vector<int> values_; // all data tobe encoded
- int buffered_values_[8]; // encode each 8 values
+ std::vector<int64_t> values_; // all data tobe encoded
+ int64_t buffered_values_[8]; // encode each 8 values
std::vector<unsigned char> bytes_buffer_;
public:
@@ -72,7 +72,7 @@ class BitPackEncoder {
packer_ = nullptr;
}
- FORCE_INLINE void encode(int value, common::ByteStream &out) {
+ FORCE_INLINE void encode(int64_t value, common::ByteStream &out) {
values_.push_back(value);
}
@@ -81,7 +81,7 @@ class BitPackEncoder {
bit_width_ = get_int_max_bit_width(values_);
ASSERT(packer_ == nullptr);
packer_ = new IntPacker(bit_width_);
- common::SerializationUtil::write_i32(bit_width_, byte_cache_);
+ common::SerializationUtil::write_i8(bit_width_, byte_cache_);
for (size_t i = 0; i < values_.size(); i++) {
// encodeValue(value);
buffered_values_[num_buffered_values_] = values_[i];
@@ -108,9 +108,9 @@ class BitPackEncoder {
// TODO: put the bytes on the stack instead on the heap
unsigned char *bytes = (unsigned char *)common::mem_alloc(
bit_width_, common::MOD_BITENCODE_OBJ);
- int tmp_buffer[8];
+ int64_t tmp_buffer[8];
for (int i = 0; i < 8; i++) {
- tmp_buffer[i] = (int)buffered_values_[i];
+ tmp_buffer[i] = (int64_t)buffered_values_[i];
}
packer_->pack_8values(tmp_buffer, 0, bytes);
// we'll not writer bit-packing group to OutputStream immediately
@@ -121,12 +121,12 @@ class BitPackEncoder {
common::mem_free(bytes);
}
- int get_int_max_bit_width(std::vector<int> values) {
+ int get_int_max_bit_width(std::vector<int64_t> values) {
// TODO: Optimization - find the maximum value first, and then calcuate
// the bit width
int max = 1;
for (size_t i = 0; i < values.size(); i++) {
- int bitWidth = 32 - number_of_leading_zeros(values[i]);
+ int bitWidth = 64 - number_of_leading_zeros(values[i]);
if (bitWidth > max) {
max = bitWidth;
}
diff --git a/cpp/src/encoding/intpacker.h b/cpp/src/encoding/intpacker.h
index 27b73e39..483d0c92 100644
--- a/cpp/src/encoding/intpacker.h
+++ b/cpp/src/encoding/intpacker.h
@@ -39,7 +39,7 @@ class IntPacker {
void reset() { /* do thing for IntPacker */
}
- void pack_8values(int values[], int offset, unsigned char buf[]) {
+ void pack_8values(int64_t values[], int offset, unsigned char buf[]) {
int buf_idx = 0;
int value_idx = offset;
// remaining bits for the current unfinished Integer
@@ -47,13 +47,13 @@ class IntPacker {
while (value_idx < NUM_OF_INTS + offset) {
// buffer is used for saving 32 bits as a part of result
- int buffer = 0;
+ int64_t buffer = 0;
// remaining size of bits in the 'buffer'
- int left_size = 32;
+ int left_size = 64;
// encode the left bits of current Integer to 'buffer'
if (left_bit > 0) {
- buffer |= (values[value_idx] << (32 - left_bit));
+ buffer |= (values[value_idx] << (64 - left_bit));
left_size -= left_bit;
left_bit = 0;
value_idx++;
@@ -70,18 +70,19 @@ class IntPacker {
if (left_size > 0 && value_idx < NUM_OF_INTS + offset) {
// put the first 'left_size' bits of the Integer into remaining
// space of the buffer
- buffer |= ((unsigned)values[value_idx] >> (width_ - left_size));
+ buffer |= ((uint64_t)values[value_idx] >> (width_ - left_size));
left_bit = width_ - left_size;
}
// put the buffer into the final result
- for (int j = 0; j < 4; j++) {
+ for (int j = 0; j < 8; j++) {
buf[buf_idx] =
- (unsigned char)(((unsigned)buffer >> ((3 - j) * 8)) & 0xFF);
+ (unsigned char)(((uint64_t)buffer >> ((8 - j - 1) * 8)) &
+ 0xFF);
buf_idx++;
// width_ is the bit num of each value, but here is means the
// max byte num
- if (buf_idx >= width_) {
+ if (buf_idx >= width_ * 8 / 8) {
return;
}
}
@@ -96,9 +97,9 @@ class IntPacker {
* @param values - decoded result , the length of 'values' should be @{link
* IntPacker#NUM_OF_INTS}
*/
- void unpack_8values(unsigned char buf[], int offset, int values[]) {
+ void unpack_8values(unsigned char buf[], int offset, int64_t values[]) {
int byte_idx = offset;
- unsigned long buffer = 0;
+ uint64_t buffer = 0;
// total bits which have reader from 'buf' to 'buffer'. i.e.,
// number of available bits to be decoded.
int total_bits = 0;
@@ -133,16 +134,16 @@ class IntPacker {
* @param length length of bytes to be decoded in buf.
* @param values decoded result.
*/
- void unpack_all_values(unsigned char buf[], int length, int values[]) {
+ void unpack_all_values(unsigned char buf[], int length, int64_t values[]) {
int idx = 0;
int k = 0;
while (idx < length) {
- int tv[8];
+ int64_t tv[8];
// decode 8 values one time, current result will be saved in the
// array named 'tv'
unpack_8values(buf, idx, tv);
// System.arraycopy(tv, 0, values, k, 8);
- std::memmove(values + k, tv, 8 * sizeof(int));
+ std::memmove(values + k, tv, 8 * sizeof(int64_t));
idx += width_;
k += 8;
}
(tsfile) 28/33: Bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.3.0 (#153)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 74c7ec4619117b3733526f1596b5dfbd2dd75fd6
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Jul 5 18:52:12 2024 +0800
Bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.3.0 (#153)
Bumps [org.apache.maven.plugins:maven-surefire-plugin](https://github.com/apache/maven-surefire) from 3.1.2 to 3.3.0.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.1.2...surefire-3.3.0)
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 6ce630cf..3f2f6b74 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,7 +62,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <version>3.1.2</version>
+ <version>3.3.0</version>
<configuration>
<argLine>${argLine} -Xmx1024m</argLine>
</configuration>
(tsfile) 23/33: Bump com.github.luben:zstd-jni from 1.5.5-5 to 1.5.6-3 (#70)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit e8200c8b07633ce4a047ed7c07a81429c3e3e3ab
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Thu Jul 4 22:22:03 2024 +0800
Bump com.github.luben:zstd-jni from 1.5.5-5 to 1.5.6-3 (#70)
Bumps [com.github.luben:zstd-jni](https://github.com/luben/zstd-jni) from 1.5.5-5 to 1.5.6-3.
- [Commits](https://github.com/luben/zstd-jni/compare/v.1.5.5-5...v1.5.6-3)
---
updated-dependencies:
- dependency-name: com.github.luben:zstd-jni
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
java/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/pom.xml b/java/pom.xml
index 5ee4c4ba..ab3ec31e 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -40,7 +40,7 @@
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
- <version>1.5.5-5</version>
+ <version>1.5.6-3</version>
</dependency>
<dependency>
<groupId>org.xerial.snappy</groupId>
(tsfile) 22/33: Bump com.gradle:gradle-enterprise-maven-extension from 1.19.2 to 1.20.1 (#36)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 7042afb754f0c127dfb3868136c3a6fa980effa5
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Thu Jul 4 21:01:29 2024 +0800
Bump com.gradle:gradle-enterprise-maven-extension from 1.19.2 to 1.20.1 (#36)
Bumps com.gradle:gradle-enterprise-maven-extension from 1.19.2 to 1.20.1.
---
updated-dependencies:
- dependency-name: com.gradle:gradle-enterprise-maven-extension
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
.mvn/extensions.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml
index c5b001d4..ff89b130 100644
--- a/.mvn/extensions.xml
+++ b/.mvn/extensions.xml
@@ -23,7 +23,7 @@
<extension>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
- <version>1.19.2</version>
+ <version>1.20.1</version>
</extension>
<extension>
<groupId>com.gradle</groupId>
(tsfile) 27/33: Bump org.apache.rat:apache-rat-plugin from 0.15 to 0.16.1 (#152)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit ab5c48dbf8dd445891971984d8b0cad8e3846b55
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Jul 5 18:51:54 2024 +0800
Bump org.apache.rat:apache-rat-plugin from 0.15 to 0.16.1 (#152)
Bumps org.apache.rat:apache-rat-plugin from 0.15 to 0.16.1.
---
updated-dependencies:
- dependency-name: org.apache.rat:apache-rat-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index b59aaf1d..6ce630cf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,7 +78,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
- <version>0.15</version>
+ <version>0.16.1</version>
<configuration>
<consoleOutput>true</consoleOutput>
<excludes>
(tsfile) 18/33: feature/unittests (#134)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 374d366ebd329b397cee6eb04bcc2a26e80c87aa
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Thu Jul 4 13:10:56 2024 +0800
feature/unittests (#134)
* bugfix: bitmap clear method
* feature/unittests
* add license
* support cmake-maven
* support cmake-maven
* unittest support cmake-maven
* unittest support cmake-maven
* fix for macos compilation
* fix for macos compilation
* fix for macos compilation
* fix for macos compilation
* fix unittest dependency
* fix macos compilation
* fix win compilation
* fix win compilation
* fix win compilation
* test
* test
* test
* fix windows mingw compilation
* fix mingw compilation
* test
* fix MinGW compilation
* fix MinGW compilation
* fix MinGW compilation
* fix MinGW compilation
* test compress
* test/encoding
* test/write
* testcompress
* testencoding
* testcommon
* testutils
* testfile
* fix MinGW compilation
* support cross platform compilation
* support mingw macos ubuntu compilation
* fix code formatting issues
* fix newly introduced encoding issue(bitpack)
---------
Co-authored-by: hongzhigao <ho...@foxmail.com>
---
cpp/CMakeLists.txt | 3 +
cpp/pom.xml | 2 +-
cpp/src/common/allocator/byte_stream.h | 2 +-
cpp/src/common/container/array.h | 2 +-
cpp/src/common/container/hash_table.h | 4 +-
cpp/src/common/container/simple_vector.h | 2 +
cpp/src/common/datatype/value.h | 2 +-
cpp/src/encoding/bitpack_decoder.h | 4 +-
cpp/src/encoding/bitpack_encoder.h | 2 +-
cpp/src/encoding/plain_decoder.h | 2 +-
cpp/test/CMakeLists.txt | 54 +++
cpp/test/common/allocator/alloc_base_test.cc | 64 ++++
cpp/test/common/allocator/byte_stream_test.cc | 286 ++++++++++++++
cpp/test/common/allocator/my_string_test.cc | 105 ++++++
cpp/test/common/allocator/page_arena_test.cc | 58 +++
cpp/test/common/container/array_test.cc | 168 +++++++++
cpp/test/common/container/bit_map_test.cc | 93 +++++
cpp/test/common/container/byte_buffer_test.cc | 69 ++++
cpp/test/common/container/list_test.cc | 95 +++++
cpp/test/common/container/murmur_hash3_test.cc | 57 +++
cpp/test/common/container/simple_vector_test.cc | 52 +++
cpp/test/common/container/slice_test.cc | 96 +++++
cpp/test/common/container/sorted_array_test.cc | 157 ++++++++
cpp/test/common/datatype/value_test.cc | 127 +++++++
cpp/test/common/record_test.cc | 129 +++++++
cpp/test/common/row_record_test.cc | 155 ++++++++
cpp/test/common/schema_test.cc | 54 +++
cpp/test/common/statistic_test.cc | 202 ++++++++++
cpp/test/common/tablet_test.cc | 64 ++++
cpp/test/common/tsblock/tslock_test.cc | 153 ++++++++
cpp/test/common/tsblock/tuple_desc_test.cc | 104 ++++++
.../tsblock/vector/fixed_length_vector_test.cc | 75 ++++
.../tsblock/vector/variable_length_vector_test.cc | 75 ++++
cpp/test/common/tsfile_common_test.cc | 415 +++++++++++++++++++++
cpp/test/compress/lz4_compressor_test.cc | 131 +++++++
cpp/test/encoding/bitpack_codec_test.cc | 289 ++++++++++++++
cpp/test/encoding/dictionary_codec_test.cc | 101 +++++
cpp/test/encoding/gorilla_codec_test.cc | 110 ++++++
cpp/test/encoding/inpacker_test.cc | 57 +++
cpp/test/encoding/plain_codec_test.cc | 91 +++++
cpp/test/encoding/ts2diff_codec_test.cc | 92 +++++
cpp/test/encoding/zigzag_codec_test.cc | 136 +++++++
cpp/test/file/open_file_test.cc | 113 ++++++
cpp/test/file/write_file_test.cc | 107 ++++++
cpp/test/utils/db_utils_test.cc | 218 +++++++++++
cpp/test/writer/chunk_writer_test.cc | 99 +++++
cpp/test/writer/page_writer_test.cc | 93 +++++
cpp/test/writer/tsfile_writer_test.cc | 216 +++++++++++
48 files changed, 4775 insertions(+), 10 deletions(-)
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index b26323b4..ebc1d440 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -73,3 +73,6 @@ configure_file(
"${PROJECT_SOURCE_DIR}/cmake/config.h.in"
"${PROJECT_BINARY_DIR}/cmake_config.h"
)
+
+add_subdirectory(test)
+add_dependencies(TsFile_Test tsfile)
\ No newline at end of file
diff --git a/cpp/pom.xml b/cpp/pom.xml
index 9b25e1a5..677c4a7d 100644
--- a/cpp/pom.xml
+++ b/cpp/pom.xml
@@ -88,7 +88,7 @@
<goal>test</goal>
</goals>
<configuration>
- <buildDirectory>${project.build.directory}/build</buildDirectory>
+ <buildDirectory>${project.build.directory}/build/test</buildDirectory>
</configuration>
</execution>
</executions>
diff --git a/cpp/src/common/allocator/byte_stream.h b/cpp/src/common/allocator/byte_stream.h
index 04a30098..687839a5 100644
--- a/cpp/src/common/allocator/byte_stream.h
+++ b/cpp/src/common/allocator/byte_stream.h
@@ -220,7 +220,7 @@ FORCE_INLINE double bytes_to_double(uint8_t bytes[8]) {
// follow jdk implementation style.
union {
- long l;
+ long long l;
double d;
} u;
diff --git a/cpp/src/common/container/array.h b/cpp/src/common/container/array.h
index 52412949..96bc3464 100644
--- a/cpp/src/common/container/array.h
+++ b/cpp/src/common/container/array.h
@@ -230,7 +230,7 @@ class Array {
}
bool contain(const ValueType &value) {
- for (int i = 0; i < size_; i++) {
+ for (size_t i = 0; i < size_; i++) {
if (array_[i] == value) {
return true;
}
diff --git a/cpp/src/common/container/hash_table.h b/cpp/src/common/container/hash_table.h
index b344706b..896289eb 100644
--- a/cpp/src/common/container/hash_table.h
+++ b/cpp/src/common/container/hash_table.h
@@ -333,7 +333,7 @@ class HashTable {
if (ATOMIC_LOAD(&size_) > ATOMIC_LOAD(&new_table_capacity_) *
SEGMENT_CAPACITY * TABLE_GROWTH) {
- int tmp = 0;
+ uint8_t tmp = 0;
if (ATOMIC_CAS(&is_extending_, &tmp, 1)) {
ret = extend();
if (ret != E_OK) {
@@ -437,7 +437,7 @@ class HashTable {
if (ATOMIC_LOAD(&size_) > ATOMIC_LOAD(&new_table_capacity_) *
SEGMENT_CAPACITY * TABLE_GROWTH) {
- int tmp = 0;
+ uint8_t tmp = 0;
if (ATOMIC_CAS(&is_extending_, &tmp, 1)) {
ret = extend();
if (ret != E_OK) {
diff --git a/cpp/src/common/container/simple_vector.h b/cpp/src/common/container/simple_vector.h
index 977d6421..77b2d951 100644
--- a/cpp/src/common/container/simple_vector.h
+++ b/cpp/src/common/container/simple_vector.h
@@ -19,6 +19,8 @@
#ifndef COMMON_CONTAINER_VECTOR_H
#define COMMON_CONTAINER_VECTOR_H
+#include <vector>
+
#include "utils/util_define.h"
namespace common {
diff --git a/cpp/src/common/datatype/value.h b/cpp/src/common/datatype/value.h
index c8284360..04d3ab90 100644
--- a/cpp/src/common/datatype/value.h
+++ b/cpp/src/common/datatype/value.h
@@ -221,4 +221,4 @@ FORCE_INLINE int get_typed_data_from_value<double>(Value *value,
} // namespace common
-#endif // COMMON_DATATYPE_VALUE_H
+#endif // COMMON_DATATYPE_VALUE_H
\ No newline at end of file
diff --git a/cpp/src/encoding/bitpack_decoder.h b/cpp/src/encoding/bitpack_decoder.h
index c6aef933..2468d515 100644
--- a/cpp/src/encoding/bitpack_decoder.h
+++ b/cpp/src/encoding/bitpack_decoder.h
@@ -43,8 +43,8 @@ class BitPackDecoder {
public:
BitPackDecoder()
- : byte_cache_(1024, common::MOD_DECODER_OBJ),
- current_count_(0),
+ : current_count_(0),
+ byte_cache_(1024, common::MOD_DECODER_OBJ),
current_buffer_(nullptr),
packer_(nullptr),
tmp_buf_(nullptr) {}
diff --git a/cpp/src/encoding/bitpack_encoder.h b/cpp/src/encoding/bitpack_encoder.h
index 708e00a7..3a978e01 100644
--- a/cpp/src/encoding/bitpack_encoder.h
+++ b/cpp/src/encoding/bitpack_encoder.h
@@ -73,7 +73,7 @@ class BitPackEncoder {
FORCE_INLINE void encode(int64_t value, common::ByteStream &out) {
values_.push_back(value);
- int current_bit_width = 32 - number_of_leading_zeros(value);
+ int current_bit_width = 64 - number_of_leading_zeros(value);
if (current_bit_width > bit_width_) {
bit_width_ = current_bit_width;
}
diff --git a/cpp/src/encoding/plain_decoder.h b/cpp/src/encoding/plain_decoder.h
index fb65bcad..910c7d33 100644
--- a/cpp/src/encoding/plain_decoder.h
+++ b/cpp/src/encoding/plain_decoder.h
@@ -20,7 +20,7 @@
#ifndef ENCODING_PLAIN_DECODER_H
#define ENCODING_PLAIN_DECODER_H
-#include "decoder.h"
+#include "encoding/decoder.h"
namespace storage {
diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt
new file mode 100644
index 00000000..fc9469c3
--- /dev/null
+++ b/cpp/test/CMakeLists.txt
@@ -0,0 +1,54 @@
+#[[
+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
+
+ https://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.
+]]
+include(FetchContent)
+FetchContent_Declare(
+ googletest
+ URL https://github.com/google/googletest/archive/refs/tags/v1.12.0.zip
+)
+set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
+FetchContent_MakeAvailable(googletest)
+
+set(SDK_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/../src)
+message("SDK_INCLUDE_DIR: ${SDK_INCLUDE_DIR}")
+set(LIBTSFILE_SDK_DIR ${PROJECT_BINARY_DIR}/lib)
+message("LIBTSFILE_SDK_DIR: ${LIBTSFILE_SDK_DIR}")
+
+include_directories(${SDK_INCLUDE_DIR})
+
+enable_testing()
+
+file(GLOB_RECURSE TEST_SRCS
+ "common/*_test.cc"
+ "encoding/*_test.cc"
+ "utils/*_test.cc"
+ "file/*_test.cc"
+ "compress/*_test.cc"
+ "writer/*_test.cc"
+ )
+add_executable(TsFile_Test ${TEST_SRCS})
+target_link_libraries(
+ TsFile_Test
+ GTest::gtest_main
+ GTest::gmock
+ tsfile
+)
+set_target_properties(TsFile_Test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${LIBTSFILE_SDK_DIR})
+
+include(GoogleTest)
+gtest_discover_tests(TsFile_Test)
\ No newline at end of file
diff --git a/cpp/test/common/allocator/alloc_base_test.cc b/cpp/test/common/allocator/alloc_base_test.cc
new file mode 100644
index 00000000..9f22ba8f
--- /dev/null
+++ b/cpp/test/common/allocator/alloc_base_test.cc
@@ -0,0 +1,64 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/allocator/alloc_base.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+const uint32_t HEADER_SIZE_4B = 4;
+const uint32_t HEADER_SIZE_8B = 8;
+
+TEST(AllocBaseTest, BaseAllocator) {
+ BaseAllocator allocator;
+ for (AllocModID mod_id = MOD_DEFAULT; mod_id <= MOD_ZIGZAG_OBJ;
+ mod_id = (AllocModID)(mod_id + 1)) {
+ void *ptr = allocator.alloc(100, mod_id);
+ ASSERT_NE(ptr, nullptr);
+ allocator.free(ptr);
+ }
+}
+
+TEST(AllocBaseTest, AllocSmallSize) {
+ uint32_t size = 1024;
+ AllocModID mid = MOD_DEFAULT;
+ void *ptr = mem_alloc(size, mid);
+ ASSERT_NE(ptr, nullptr);
+ char *p = (char *)ptr - HEADER_SIZE_4B;
+ uint32_t header = *((uint32_t *)p);
+ EXPECT_EQ(header >> 8, size);
+ EXPECT_EQ(header & 0x7F, mid);
+ mem_free(ptr);
+}
+
+TEST(AllocBaseTest, AllocLargeSize) {
+ uint32_t size = 0x1000000;
+ AllocModID mid = MOD_DEFAULT;
+ void *ptr = mem_alloc(size, mid);
+ ASSERT_NE(ptr, nullptr);
+ char *p = (char *)ptr - HEADER_SIZE_8B;
+ uint32_t high4b = *(uint32_t *)p;
+ uint32_t low4b = *(uint32_t *)(p + 4);
+ uint64_t header = ((uint64_t)high4b << 32) | low4b;
+ EXPECT_EQ((header >> 8), size);
+ EXPECT_EQ((header & 0x7F), mid);
+ mem_free(ptr);
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/allocator/byte_stream_test.cc b/cpp/test/common/allocator/byte_stream_test.cc
new file mode 100644
index 00000000..573804c9
--- /dev/null
+++ b/cpp/test/common/allocator/byte_stream_test.cc
@@ -0,0 +1,286 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/allocator/byte_stream.h"
+
+#include <gtest/gtest.h>
+
+#include <cstdint>
+#include <cstring>
+
+namespace common {
+
+TEST(FloatConversionTest, FloatToBytesAndBytesToFloat) {
+ float actual_float = -1234.5678f;
+ uint8_t actual_bytes[4];
+ float_to_bytes(actual_float, actual_bytes);
+ float expect_float = bytes_to_float(actual_bytes);
+ EXPECT_FLOAT_EQ(expect_float, actual_float);
+}
+
+TEST(DoubleConversionTest, DoubleToBytesAndBytesToDouble) {
+ double actual_double = -1.23456789e-20;
+ uint8_t actual_bytes[8];
+ double_to_bytes(actual_double, actual_bytes);
+ double expect_double = bytes_to_double(actual_bytes);
+ EXPECT_DOUBLE_EQ(expect_double, actual_double);
+}
+
+class ByteStreamTest : public ::testing::Test {
+ protected:
+ void SetUp() override {
+ byte_stream_ = new ByteStream(16, MOD_DEFAULT, false);
+ }
+
+ void TearDown() override { delete byte_stream_; }
+
+ void write_to_stream(const uint8_t* data, uint32_t size) {
+ ASSERT_EQ(byte_stream_->write_buf(data, size), common::E_OK);
+ }
+
+ void read_from_stream(uint8_t* buffer, uint32_t want_len,
+ uint32_t& read_len) {
+ ASSERT_EQ(byte_stream_->read_buf(buffer, want_len, read_len),
+ common::E_OK);
+ }
+
+ void wrap_external_buffer(const char* buffer, int32_t size) {
+ byte_stream_->wrap_from(buffer, size);
+ }
+
+ ByteStream* byte_stream_;
+};
+
+TEST_F(ByteStreamTest, WriteReadTest) {
+ const uint8_t data[] = {0x01, 0x02, 0x03};
+ const uint32_t data_size = sizeof(data);
+
+ write_to_stream(data, data_size);
+ uint8_t read_buffer[data_size];
+ uint32_t read_len = 0;
+ read_from_stream(read_buffer, data_size, read_len);
+
+ ASSERT_EQ(read_len, data_size);
+ for (uint32_t i = 0; i < data_size; ++i) {
+ ASSERT_EQ(read_buffer[i], data[i]);
+ }
+}
+
+TEST_F(ByteStreamTest, WriteReadLargeQuantities) {
+ for (int i = 0; i < 1024 * 1024; i++) {
+ const uint8_t data = i & 0xff;
+ write_to_stream(&data, 1);
+ }
+
+ uint8_t read_buffer[1024 * 1024];
+ for (int i = 0; i < 1024 * 1024; i++) {
+ uint32_t read_len = 0;
+ read_from_stream(read_buffer + i, 1, read_len);
+ }
+
+ for (int i = 0; i < 1024 * 1024; i++) {
+ EXPECT_EQ(read_buffer[i], i & 0xff);
+ }
+}
+
+TEST_F(ByteStreamTest, WrapExternalBufferTest) {
+ const char externalBuffer[] = "Hello, World!";
+ const int32_t bufferSize = sizeof(externalBuffer);
+
+ wrap_external_buffer(externalBuffer, bufferSize);
+ ASSERT_TRUE(byte_stream_->is_wrapped());
+ ASSERT_STREQ(byte_stream_->get_wrapped_buf(), externalBuffer);
+}
+
+TEST_F(ByteStreamTest, SizeTest) {
+ const uint8_t data[] = {0x01, 0x02, 0x03};
+ const uint32_t data_size = sizeof(data);
+
+ write_to_stream(data, data_size);
+ ASSERT_EQ(byte_stream_->total_size(), data_size);
+ ASSERT_EQ(byte_stream_->remaining_size(), data_size);
+
+ uint8_t read_buffer[data_size];
+ uint32_t read_len = 0;
+ read_from_stream(read_buffer, 2, read_len);
+
+ ASSERT_EQ(byte_stream_->remaining_size(), data_size - 2);
+}
+
+TEST_F(ByteStreamTest, MarkReadPositionTest) {
+ const uint8_t data[] = {0x01, 0x02, 0x03};
+ const uint32_t data_size = sizeof(data);
+
+ write_to_stream(data, data_size);
+
+ byte_stream_->mark_read_pos();
+
+ uint8_t read_buffer[data_size];
+ uint32_t read_len = 0;
+ read_from_stream(read_buffer, 2, read_len);
+
+ uint32_t markedLen = byte_stream_->get_mark_len();
+ ASSERT_EQ(markedLen, read_len);
+}
+
+TEST_F(ByteStreamTest, ResetTest) {
+ const uint8_t data[] = {0x01, 0x02, 0x03};
+ const uint32_t data_size = sizeof(data);
+
+ write_to_stream(data, data_size);
+
+ byte_stream_->reset();
+
+ ASSERT_EQ(byte_stream_->total_size(), 0);
+ ASSERT_EQ(byte_stream_->remaining_size(), 0);
+ ASSERT_EQ(byte_stream_->read_pos(), 0);
+ ASSERT_FALSE(byte_stream_->is_wrapped());
+}
+
+TEST_F(ByteStreamTest, WriteMoreThanPageSizeTest) {
+ const uint8_t data[20] = {0x01, 0x02, 0x03};
+ const uint32_t data_size = sizeof(data);
+
+ write_to_stream(data, data_size);
+
+ ASSERT_EQ(byte_stream_->total_size(), 20);
+ ASSERT_EQ(byte_stream_->remaining_size(), 20);
+
+ uint8_t read_buffer[data_size];
+ uint32_t read_len = 0;
+ read_from_stream(read_buffer, data_size, read_len);
+
+ ASSERT_EQ(read_len, data_size);
+ for (uint32_t i = 0; i < data_size; ++i) {
+ ASSERT_EQ(read_buffer[i], data[i]);
+ }
+}
+
+TEST_F(ByteStreamTest, ReadMoreThanAvailableTest) {
+ const uint8_t data[] = {0x01, 0x02, 0x03};
+ const uint32_t data_size = sizeof(data);
+
+ write_to_stream(data, data_size);
+
+ uint8_t read_buffer[4];
+ uint32_t read_len = 0;
+ int readResult = byte_stream_->read_buf(read_buffer, 4, read_len);
+
+ ASSERT_EQ(readResult, common::E_PARTIAL_READ);
+ ASSERT_EQ(read_len, data_size);
+}
+
+TEST_F(ByteStreamTest, WrapAndClearTest) {
+ const char externalBuffer[] = "Hello, World!";
+ const int32_t bufferSize = sizeof(externalBuffer);
+
+ wrap_external_buffer(externalBuffer, bufferSize);
+ byte_stream_->clear_wrapped_buf();
+
+ ASSERT_EQ(byte_stream_->get_wrapped_buf(), nullptr);
+}
+
+class SerializationUtilTest : public ::testing::Test {
+ protected:
+ void SetUp() override {
+ byte_stream_ = new ByteStream(16, MOD_DEFAULT, false);
+ }
+
+ void TearDown() override { delete byte_stream_; }
+
+ ByteStream* byte_stream_;
+};
+
+TEST_F(SerializationUtilTest, WriteReadUI8) {
+ uint8_t value_to_write = 0x12;
+ uint8_t value_read;
+
+ EXPECT_EQ(SerializationUtil::write_ui8(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_ui8(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+TEST_F(SerializationUtilTest, WriteReadUI16) {
+ uint16_t value_to_write = 0x1234;
+ uint16_t value_read;
+
+ EXPECT_EQ(SerializationUtil::write_ui16(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_ui16(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+TEST_F(SerializationUtilTest, WriteReadUI32) {
+ uint32_t value_to_write = 0x12345678;
+ uint32_t value_read;
+
+ EXPECT_EQ(SerializationUtil::write_ui32(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_ui32(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+TEST_F(SerializationUtilTest, WriteReadUI64) {
+ uint64_t value_to_write = 0x123456789ABCDEF0;
+ uint64_t value_read;
+
+ EXPECT_EQ(SerializationUtil::write_ui64(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_ui64(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+TEST_F(SerializationUtilTest, WriteReadFloat) {
+ float value_to_write = 3.14f;
+ float value_read;
+
+ EXPECT_EQ(SerializationUtil::write_float(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_float(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+TEST_F(SerializationUtilTest, WriteReadDouble) {
+ double value_to_write = 3.141592653589793;
+ double value_read;
+
+ EXPECT_EQ(SerializationUtil::write_double(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_double(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+TEST_F(SerializationUtilTest, WriteReadString) {
+ std::string value_to_write = "Hello, World!";
+ std::string value_read;
+
+ EXPECT_EQ(SerializationUtil::write_str(value_to_write, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(SerializationUtil::read_str(value_read, *byte_stream_),
+ common::E_OK);
+ EXPECT_EQ(value_to_write, value_read);
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/allocator/my_string_test.cc b/cpp/test/common/allocator/my_string_test.cc
new file mode 100644
index 00000000..21dcc3a0
--- /dev/null
+++ b/cpp/test/common/allocator/my_string_test.cc
@@ -0,0 +1,105 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/allocator/my_string.h"
+
+#include <gtest/gtest.h>
+
+namespace {
+
+class StringTest : public ::testing::Test {
+ public:
+ common::PageArena arena_;
+ void SetUp() override {}
+ void TearDown() override {}
+};
+
+TEST_F(StringTest, DefaultConstructorAndIsNull) {
+ common::String s;
+ EXPECT_TRUE(s.is_null());
+ EXPECT_EQ(s.len_, 0u);
+ EXPECT_EQ(s.buf_, nullptr);
+}
+
+TEST_F(StringTest, DupFromString) {
+ std::string input = (char*)"Hello";
+ common::String s;
+ int result = s.dup_from(input, arena_);
+
+ EXPECT_EQ(result, common::E_OK);
+ EXPECT_EQ(s.len_, input.size());
+ EXPECT_NE(s.buf_, nullptr);
+ EXPECT_EQ(memcmp(s.buf_, input.c_str(), s.len_), 0);
+}
+
+TEST_F(StringTest, DupFromStringObject) {
+ common::String s1((char*)"World", 5);
+ common::String s2;
+ int result = s2.dup_from(s1, arena_);
+
+ EXPECT_EQ(result, common::E_OK);
+ EXPECT_EQ(s2.len_, s1.len_);
+ EXPECT_NE(s2.buf_, nullptr);
+ EXPECT_EQ(memcmp(s2.buf_, s1.buf_, s2.len_), 0);
+}
+
+TEST_F(StringTest, BuildFromStringObjects) {
+ common::String s1((char*)"Hello", 5);
+ common::String s2((char*)"World", 5);
+ common::String result;
+ int build_result = result.build_from(s1, s2, arena_);
+
+ EXPECT_EQ(build_result, common::E_OK);
+ EXPECT_EQ(result.len_, s1.len_ + s2.len_);
+ EXPECT_NE(result.buf_, nullptr);
+ EXPECT_EQ(memcmp(result.buf_, s1.buf_, s1.len_), 0);
+ EXPECT_EQ(memcmp(result.buf_ + s1.len_, s2.buf_, s2.len_), 0);
+}
+
+TEST_F(StringTest, EqualToStringObjects) {
+ common::String s1((char*)"Hello", 5);
+ common::String s2((char*)"Hello", 5);
+ common::String s3((char*)"World", 5);
+
+ EXPECT_TRUE(s1.equal_to(s2));
+ EXPECT_FALSE(s1.equal_to(s3));
+}
+
+TEST_F(StringTest, LessThanStringObjects) {
+ common::String s1((char*)"Hello", 5);
+ common::String s2((char*)"World", 5);
+ common::String s3((char*)"Hell", 4);
+
+ EXPECT_TRUE(s1.less_than(s2));
+ EXPECT_FALSE(s2.less_than(s1));
+ EXPECT_TRUE(s3.less_than(s1));
+}
+
+TEST_F(StringTest, CompareStringObjects) {
+ common::String s1((char*)"Hello", 5);
+ common::String s2((char*)"World", 5);
+ common::String s3((char*)"Hello", 5);
+ common::String s4((char*)"Hell", 4);
+
+ EXPECT_EQ(s1.compare(s3), 0);
+ EXPECT_GT(s2.compare(s1), 0);
+ EXPECT_LT(s4.compare(s1), 0);
+ EXPECT_EQ(s1.compare(s3), 0);
+}
+
+} // namespace
diff --git a/cpp/test/common/allocator/page_arena_test.cc b/cpp/test/common/allocator/page_arena_test.cc
new file mode 100644
index 00000000..ff231e6c
--- /dev/null
+++ b/cpp/test/common/allocator/page_arena_test.cc
@@ -0,0 +1,58 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/allocator/page_arena.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+TEST(PageArenaTest, PageArenaInit) {
+ PageArena page_arena;
+ int page_size = 1024;
+ page_arena.init(page_size, MOD_DEFAULT);
+}
+
+TEST(PageArenaTest, PageArenaAlloc) {
+ PageArena page_arena;
+ int page_size = 1024;
+ page_arena.init(page_size, MOD_DEFAULT);
+ void* ptr = page_arena.alloc(page_size);
+ ASSERT_NE(ptr, nullptr);
+ page_arena.reset();
+}
+
+TEST(PageArenaTest, AllocWithinPageSize) {
+ PageArena arena;
+ arena.init(1024, MOD_DEFAULT);
+ char* ptr = arena.alloc(512);
+ ASSERT_NE(ptr, nullptr);
+ ASSERT_EQ(ptr + 512, arena.alloc(512));
+ arena.reset();
+}
+
+TEST(PageArenaTest, AllocMoreThanPageSize) {
+ PageArena page_arena;
+ int page_size = 1024;
+ page_arena.init(page_size, MOD_DEFAULT);
+ void* ptr = page_arena.alloc(page_size * 2);
+ ASSERT_NE(ptr, nullptr);
+ page_arena.reset();
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/container/array_test.cc b/cpp/test/common/container/array_test.cc
new file mode 100644
index 00000000..661ac2c2
--- /dev/null
+++ b/cpp/test/common/container/array_test.cc
@@ -0,0 +1,168 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/array.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+class ArrayTest : public ::testing::Test {
+ protected:
+ void SetUp() override {}
+ void TearDown() override {}
+};
+
+TEST_F(ArrayTest, Initialization) {
+ common::Array<int> arr;
+ EXPECT_EQ(arr.size(), 0);
+ EXPECT_EQ(arr.capacity(), ARRAY_INIT_CAPACITY);
+ EXPECT_TRUE(arr.empty());
+}
+
+TEST_F(ArrayTest, CustomInitialization) {
+ size_t custom_capacity = 500;
+ common::Array<int> arr(custom_capacity);
+ EXPECT_EQ(arr.size(), 0);
+ EXPECT_EQ(arr.capacity(), custom_capacity);
+}
+
+TEST_F(ArrayTest, InitAndDestroy) {
+ common::Array<int> arr;
+ EXPECT_EQ(arr.init(), E_OK);
+
+ arr.destroy();
+ EXPECT_EQ(arr.capacity(), 0);
+ EXPECT_EQ(arr.size(), 0);
+}
+
+TEST_F(ArrayTest, Append) {
+ common::Array<int> arr;
+ arr.init();
+ EXPECT_EQ(arr.append(1), E_OK);
+ EXPECT_EQ(arr.size(), 1);
+ EXPECT_EQ(arr[0], 1);
+}
+
+TEST_F(ArrayTest, Insert) {
+ common::Array<int> arr;
+ arr.init();
+ arr.append(1);
+ arr.append(2);
+ arr.append(3);
+
+ EXPECT_EQ(arr.insert(1, 5), E_OK);
+ EXPECT_EQ(arr.size(), 4);
+ EXPECT_EQ(arr[1], 5);
+ EXPECT_EQ(arr[2], 2);
+}
+
+TEST_F(ArrayTest, Remove) {
+ common::Array<int> arr;
+ arr.init();
+ arr.append(1);
+ arr.append(2);
+ arr.append(3);
+
+ int removed = arr.remove(1);
+ EXPECT_EQ(removed, 2);
+ EXPECT_EQ(arr.size(), 2);
+ EXPECT_EQ(arr[1], 3);
+}
+
+TEST_F(ArrayTest, RemoveValue) {
+ common::Array<int> arr;
+ arr.init();
+ arr.append(1);
+ arr.append(2);
+ arr.append(3);
+ arr.append(2);
+
+ EXPECT_EQ(arr.remove_value(2), E_OK);
+ EXPECT_EQ(arr.size(), 2);
+ EXPECT_FALSE(arr.contain(2));
+}
+
+TEST_F(ArrayTest, Find) {
+ common::Array<int> arr;
+ arr.init();
+ arr.append(1);
+ arr.append(2);
+ arr.append(3);
+
+ bool found;
+ size_t idx = arr.find(2, found);
+ EXPECT_TRUE(found);
+ EXPECT_EQ(idx, 1);
+
+ idx = arr.find(4, found);
+ EXPECT_FALSE(found);
+ EXPECT_EQ(idx, 0);
+}
+
+TEST_F(ArrayTest, AtAndOperator) {
+ common::Array<int> arr;
+ arr.init();
+ arr.append(1);
+ arr.append(2);
+ arr.append(3);
+
+ EXPECT_EQ(arr.at(0), 1);
+ EXPECT_EQ(arr[1], 2);
+}
+
+TEST_F(ArrayTest, Clear) {
+ common::Array<int> arr;
+ arr.init();
+ arr.append(1);
+ arr.append(2);
+ arr.append(3);
+
+ arr.clear();
+ EXPECT_EQ(arr.size(), 0);
+}
+
+TEST_F(ArrayTest, CapacityExtend) {
+ common::Array<int> arr;
+ arr.init();
+
+ for (int i = 0; i < ARRAY_INIT_CAPACITY + 1; ++i) {
+ arr.append(i);
+ }
+
+ EXPECT_GT(arr.capacity(), ARRAY_INIT_CAPACITY);
+ EXPECT_EQ(arr.size(), ARRAY_INIT_CAPACITY + 1);
+}
+
+TEST_F(ArrayTest, CapacityShrink) {
+ common::Array<int> arr;
+ arr.init();
+
+ for (int i = 0; i < ARRAY_INIT_CAPACITY; ++i) {
+ arr.append(i);
+ }
+
+ for (int i = 0; i < ARRAY_INIT_CAPACITY; ++i) {
+ arr.remove(0);
+ }
+
+ EXPECT_LT(arr.capacity(), ARRAY_INIT_CAPACITY);
+ EXPECT_EQ(arr.size(), 0);
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/container/bit_map_test.cc b/cpp/test/common/container/bit_map_test.cc
new file mode 100644
index 00000000..9c70e661
--- /dev/null
+++ b/cpp/test/common/container/bit_map_test.cc
@@ -0,0 +1,93 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/bit_map.h"
+
+#include <gtest/gtest.h>
+
+class BitMapTest : public ::testing::Test {
+ protected:
+ void SetUp() override {}
+ void TearDown() override {}
+};
+
+TEST_F(BitMapTest, Initialization) {
+ common::BitMap bitmap;
+ EXPECT_EQ(bitmap.init(100), common::E_OK);
+ EXPECT_EQ(bitmap.get_size(), 13);
+ EXPECT_TRUE(bitmap.get_bitmap() != nullptr);
+}
+
+TEST_F(BitMapTest, Reset) {
+ common::BitMap bitmap;
+ bitmap.init(100);
+ bitmap.set(10);
+ bitmap.set(20);
+ bitmap.reset();
+ for (int i = 0; i < 100; ++i) {
+ EXPECT_FALSE(bitmap.test(i));
+ }
+}
+
+TEST_F(BitMapTest, SetAnd) {
+ common::BitMap bitmap;
+ bitmap.init(100);
+ bitmap.set(10);
+ bitmap.set(20);
+ EXPECT_TRUE(bitmap.test(10));
+ EXPECT_TRUE(bitmap.test(20));
+ EXPECT_FALSE(bitmap.test(30));
+}
+
+TEST_F(BitMapTest, Clear) {
+ common::BitMap bitmap;
+ bitmap.init(100);
+ bitmap.set(10);
+ bitmap.set(20);
+ bitmap.clear(10);
+ EXPECT_FALSE(bitmap.test(10));
+ EXPECT_TRUE(bitmap.test(20));
+}
+
+TEST_F(BitMapTest, ClearMultipleBits) {
+ common::BitMap bitmap;
+ bitmap.init(100);
+ bitmap.set(5);
+ bitmap.set(15);
+ bitmap.set(25);
+
+ ASSERT_TRUE(bitmap.test(5));
+ ASSERT_TRUE(bitmap.test(15));
+ ASSERT_TRUE(bitmap.test(25));
+
+ bitmap.clear(5);
+ bitmap.clear(15);
+ bitmap.clear(25);
+
+ ASSERT_FALSE(bitmap.test(5));
+ ASSERT_FALSE(bitmap.test(15));
+ ASSERT_FALSE(bitmap.test(25));
+}
+
+TEST_F(BitMapTest, InitializeAsOne) {
+ common::BitMap bitmap;
+ bitmap.init(100, false);
+ for (int i = 0; i < 100; ++i) {
+ EXPECT_TRUE(bitmap.test(i));
+ }
+}
diff --git a/cpp/test/common/container/byte_buffer_test.cc b/cpp/test/common/container/byte_buffer_test.cc
new file mode 100644
index 00000000..4f9c63f0
--- /dev/null
+++ b/cpp/test/common/container/byte_buffer_test.cc
@@ -0,0 +1,69 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/byte_buffer.h"
+
+#include <gtest/gtest.h>
+
+namespace {
+
+class ByteBufferTest : public ::testing::Test {
+ protected:
+ common::ByteBuffer buffer;
+
+ void SetUp() override { buffer.init(128); }
+
+ void TearDown() override {}
+};
+
+TEST_F(ByteBufferTest, Initialization) {
+ EXPECT_NE(buffer.get_data(), nullptr);
+}
+
+TEST_F(ByteBufferTest, AppendFixedValue) {
+ char value[] = "hello";
+ uint32_t len = strlen(value) + 1;
+ buffer.append_fixed_value(value, len);
+ char* read_value = buffer.read(0, len);
+ EXPECT_STREQ(read_value, value);
+}
+
+TEST_F(ByteBufferTest, AppendVariableValue) {
+ char value[] = "World";
+ uint32_t len = strlen(value) + 1;
+
+ buffer.append_variable_value(value, len);
+
+ uint32_t read_len;
+ char* read_value = buffer.read(0, &read_len);
+
+ EXPECT_EQ(read_len, len);
+ EXPECT_STREQ(read_value, value);
+}
+
+TEST_F(ByteBufferTest, ExtendMemory) {
+ common::ByteBuffer byte_buffer;
+ byte_buffer.init(5);
+ char value[] = "Extended";
+ uint32_t len = strlen(value) + 1;
+ buffer.append_fixed_value(value, len);
+ char* read_value = buffer.read(0, len);
+ EXPECT_STREQ(read_value, value);
+}
+
+} // namespace
\ No newline at end of file
diff --git a/cpp/test/common/container/list_test.cc b/cpp/test/common/container/list_test.cc
new file mode 100644
index 00000000..6d27ac62
--- /dev/null
+++ b/cpp/test/common/container/list_test.cc
@@ -0,0 +1,95 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/list.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+class SimpleListTest : public ::testing::Test {
+ protected:
+ void SetUp() override { page_arena_.init(1024, MOD_DEFAULT); }
+ PageArena page_arena_;
+};
+
+TEST_F(SimpleListTest, PushBackAndFront) {
+ SimpleList<int> list(&page_arena_);
+
+ EXPECT_EQ(list.size(), 0);
+
+ list.push_back(10);
+ EXPECT_EQ(list.size(), 1);
+ EXPECT_EQ(list.front(), 10);
+
+ list.push_back(20);
+ EXPECT_EQ(list.size(), 2);
+ EXPECT_EQ(list.front(), 10);
+}
+
+TEST_F(SimpleListTest, Iterator) {
+ SimpleList<int> list(&page_arena_);
+ list.push_back(10);
+ list.push_back(20);
+ list.push_back(30);
+
+ SimpleList<int>::Iterator it = list.begin();
+ EXPECT_TRUE(it.is_inited());
+ EXPECT_EQ(it.get(), 10);
+ it++;
+ EXPECT_EQ(it.get(), 20);
+ it++;
+ EXPECT_EQ(it.get(), 30);
+ it++;
+
+ SimpleList<int>::Iterator end_it = list.end();
+ EXPECT_EQ(it, end_it);
+}
+
+TEST_F(SimpleListTest, Remove) {
+ SimpleList<int> list(&page_arena_);
+ list.push_back(10);
+ list.push_back(20);
+ list.push_back(30);
+
+ EXPECT_EQ(list.remove(20), common::E_OK);
+ EXPECT_EQ(list.size(), 2);
+
+ SimpleList<int>::Iterator it = list.begin();
+ EXPECT_EQ(it.get(), 10);
+ it++;
+ EXPECT_EQ(it.get(), 30);
+ it++;
+ SimpleList<int>::Iterator end_it = list.end();
+ EXPECT_EQ(it, end_it);
+
+ EXPECT_EQ(list.remove(40), common::E_NOT_EXIST);
+}
+
+TEST_F(SimpleListTest, Clear) {
+ SimpleList<int> list(&page_arena_);
+ list.push_back(10);
+ list.push_back(20);
+ list.push_back(30);
+
+ list.clear();
+ EXPECT_EQ(list.size(), 0);
+ EXPECT_EQ(list.begin(), list.end());
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/container/murmur_hash3_test.cc b/cpp/test/common/container/murmur_hash3_test.cc
new file mode 100644
index 00000000..0ed5715d
--- /dev/null
+++ b/cpp/test/common/container/murmur_hash3_test.cc
@@ -0,0 +1,57 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/murmur_hash3.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+class Murmur128HashTest : public ::testing::Test {
+ protected:
+ struct TestData {
+ std::string string_val;
+ uint32_t seed;
+ int32_t expected_string_hash;
+
+ TestData(std::string stringVal, uint32_t seed,
+ int32_t expectedStringHash)
+ : string_val(std::move(stringVal)),
+ seed(seed),
+ expected_string_hash(expectedStringHash) {}
+ };
+
+ // Generated using Java Murmur128Hash
+ TestData test_data_[3] = {
+ TestData("testString", 12345, -1444917689),
+ TestData("Special characters: @#$%^&*()_+", 24680, 580454411),
+ TestData(
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do "
+ "eiusmod tempor incididunt ut labore et dolore magna aliqua.",
+ 54321, -207787044)};
+};
+
+TEST_F(Murmur128HashTest, HashString) {
+ for (const auto& data : test_data_) {
+ std::string str(data.string_val);
+ int32_t hash_result = Murmur128Hash::hash(str, data.seed);
+ EXPECT_EQ(hash_result, data.expected_string_hash);
+ }
+}
+
+} // namespace common
diff --git a/cpp/test/common/container/simple_vector_test.cc b/cpp/test/common/container/simple_vector_test.cc
new file mode 100644
index 00000000..2611adc6
--- /dev/null
+++ b/cpp/test/common/container/simple_vector_test.cc
@@ -0,0 +1,52 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/simple_vector.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+TEST(SimpleVectorTest, PushBackAndSize) {
+ SimpleVector<int> vec;
+ EXPECT_EQ(vec.size(), 0);
+
+ vec.push_back(10);
+ EXPECT_EQ(vec.size(), 1);
+
+ vec.push_back(20);
+ EXPECT_EQ(vec.size(), 2);
+
+ for (int i = 0; i < 16; ++i) {
+ vec.push_back(i);
+ }
+ EXPECT_EQ(vec.size(), 18);
+}
+
+TEST(SimpleVectorTest, AccessVector) {
+ SimpleVector<int> vec;
+ for (int i = 0; i < 20; ++i) {
+ vec.push_back(i);
+ }
+
+ for (int i = 0; i < 20; ++i) {
+ EXPECT_EQ(vec[i], i);
+ }
+}
+
+} // namespace common
diff --git a/cpp/test/common/container/slice_test.cc b/cpp/test/common/container/slice_test.cc
new file mode 100644
index 00000000..5b334896
--- /dev/null
+++ b/cpp/test/common/container/slice_test.cc
@@ -0,0 +1,96 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/slice.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+TEST(SliceTest, DefaultConstructor) {
+ Slice slice;
+ EXPECT_EQ(slice.size(), 0);
+ EXPECT_EQ(slice.data(), nullptr);
+ EXPECT_TRUE(slice.empty());
+}
+
+TEST(SliceTest, StringConstructor) {
+ std::string str = "test";
+ Slice slice(str);
+ EXPECT_EQ(slice.size(), str.size());
+ EXPECT_FALSE(slice.empty());
+}
+
+TEST(SliceTest, CStrConstructor) {
+ const char* cstr = "test";
+ Slice slice(cstr);
+ EXPECT_EQ(slice.size(), strlen(cstr));
+ EXPECT_FALSE(slice.empty());
+}
+
+TEST(SliceTest, CopyConstructor) {
+ std::string str = "test";
+ Slice slice1(str);
+ Slice slice2(slice1);
+ EXPECT_EQ(slice1.size(), slice2.size());
+}
+
+TEST(SliceTest, AssignmentOperator) {
+ std::string str1 = "test1";
+ std::string str2 = "test2";
+ Slice slice1(str1);
+ Slice slice2(str2);
+ slice2 = slice1;
+ EXPECT_EQ(slice1.size(), slice2.size());
+}
+
+TEST(SliceTest, DataAccess) {
+ std::string str = "test";
+ Slice slice(str);
+ EXPECT_EQ(slice[0], 't');
+ EXPECT_EQ(slice[1], 'e');
+ EXPECT_EQ(slice[2], 's');
+ EXPECT_EQ(slice[3], 't');
+}
+
+TEST(SliceTest, ToString) {
+ std::string str = "test";
+ Slice slice(str);
+ EXPECT_EQ(slice.to_string(), str);
+}
+
+TEST(SliceTest, ComparisonOperators) {
+ Slice slice1("test");
+ Slice slice2("test");
+ Slice slice3("different");
+
+ EXPECT_EQ(slice1, slice2);
+ EXPECT_NE(slice1, slice3);
+}
+
+TEST(SliceTest, CompareFunction) {
+ Slice slice1("abc");
+ Slice slice2("abcd");
+ Slice slice3("abc");
+
+ EXPECT_LT(slice1.compare(slice2), 0);
+ EXPECT_GT(slice2.compare(slice1), 0);
+ EXPECT_EQ(slice1.compare(slice3), 0);
+}
+
+} // namespace common
diff --git a/cpp/test/common/container/sorted_array_test.cc b/cpp/test/common/container/sorted_array_test.cc
new file mode 100644
index 00000000..85e55dd4
--- /dev/null
+++ b/cpp/test/common/container/sorted_array_test.cc
@@ -0,0 +1,157 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/container/sorted_array.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+TEST(SortedArrayTest, Initialization) {
+ SortedArray<int> array;
+ array.init();
+ EXPECT_TRUE(array.empty());
+ EXPECT_EQ(array.size(), 0);
+ EXPECT_EQ(array.capacity(), SORTED_ARRAY_INIT_CAPACITY);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, InsertAndSize) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ EXPECT_EQ(array.size(), 1);
+ EXPECT_EQ(array[0], 5);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, InsertMultiple) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ array.insert(1);
+ array.insert(3);
+ EXPECT_EQ(array.size(), 3);
+ EXPECT_EQ(array[0], 1);
+ EXPECT_EQ(array[1], 3);
+ EXPECT_EQ(array[2], 5);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, InsertDuplicate) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ int ret = array.insert(5);
+ EXPECT_EQ(ret, E_ALREADY_EXIST);
+ EXPECT_EQ(array.size(), 1);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, FindValue) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ array.insert(1);
+ array.insert(3);
+ bool found = false;
+ size_t pos = array.find(3, found);
+ EXPECT_TRUE(found);
+ EXPECT_EQ(pos, 1);
+ pos = array.find(4, found);
+ EXPECT_FALSE(found);
+ EXPECT_EQ(pos, 2);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, RemoveValue) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ array.insert(1);
+ array.insert(3);
+ array.remove_value(3);
+ EXPECT_EQ(array.size(), 2);
+ EXPECT_EQ(array[0], 1);
+ EXPECT_EQ(array[1], 5);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, RemoveByIndex) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ array.insert(1);
+ array.insert(3);
+ int removed = array.remove(1);
+ EXPECT_EQ(removed, 3);
+ EXPECT_EQ(array.size(), 2);
+ EXPECT_EQ(array[0], 1);
+ EXPECT_EQ(array[1], 5);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, GetMinMax) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ array.insert(1);
+ array.insert(3);
+ EXPECT_EQ(array.get_min(), 1);
+ EXPECT_EQ(array.get_max(), 5);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, ClearArray) {
+ SortedArray<int> array;
+ array.init();
+ array.insert(5);
+ array.insert(1);
+ array.insert(3);
+ array.clear();
+ EXPECT_TRUE(array.empty());
+ EXPECT_EQ(array.size(), 0);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, ExtendArray) {
+ SortedArray<int> array;
+ array.init();
+ for (int i = 0; i < SORTED_ARRAY_INIT_CAPACITY + 1; ++i) {
+ array.insert(i);
+ }
+ EXPECT_EQ(array.size(), SORTED_ARRAY_INIT_CAPACITY + 1);
+ EXPECT_GT(array.capacity(), SORTED_ARRAY_INIT_CAPACITY);
+ array.destroy();
+}
+
+TEST(SortedArrayTest, ShrinkArray) {
+ SortedArray<int> array;
+ array.init();
+ for (int i = 0; i < SORTED_ARRAY_INIT_CAPACITY + 1; ++i) {
+ array.insert(i);
+ }
+ int size = array.size();
+ for (int i = 0; i < size; ++i) {
+ array.remove(0);
+ }
+ EXPECT_LT(array.capacity(), SORTED_ARRAY_INIT_CAPACITY);
+ array.destroy();
+}
+
+} // namespace common
diff --git a/cpp/test/common/datatype/value_test.cc b/cpp/test/common/datatype/value_test.cc
new file mode 100644
index 00000000..0a84f041
--- /dev/null
+++ b/cpp/test/common/datatype/value_test.cc
@@ -0,0 +1,127 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/datatype/value.h"
+
+#include <gtest/gtest.h>
+#include <limits.h>
+
+namespace common {
+
+class ValueTest : public ::testing::Test {};
+
+TEST_F(ValueTest, ConstructorDestructor) {
+ Value* v = new Value(INT64);
+ EXPECT_EQ(v->type_, INT64);
+ delete v;
+}
+
+TEST_F(ValueTest, SetValue) {
+ Value v(INT64);
+
+ int64_t int64_val = 123456789;
+ v.set_value(INT64, &int64_val);
+ EXPECT_EQ(v.type_, INT64);
+ EXPECT_EQ(v.value_.lval_, int64_val);
+
+ double double_val = 123.456;
+ v.set_value(DOUBLE, &double_val);
+ EXPECT_EQ(v.type_, DOUBLE);
+ EXPECT_EQ(v.value_.dval_, double_val);
+
+ char text_val[] = "hello";
+ v.set_value(TEXT, text_val);
+ EXPECT_EQ(v.type_, TEXT);
+ v.free_memory();
+}
+
+TEST_F(ValueTest, IsTypeAndIsLiteral) {
+ Value v1(INT64);
+ EXPECT_TRUE(v1.is_type(INT64));
+ EXPECT_TRUE(v1.is_literal());
+
+ Value v2(DOUBLE);
+ EXPECT_TRUE(v2.is_type(DOUBLE));
+ EXPECT_TRUE(v2.is_literal());
+
+ Value v3(TEXT);
+ EXPECT_TRUE(v3.is_type(TEXT));
+ EXPECT_TRUE(v3.is_literal());
+
+ Value v4(NULL_TYPE);
+ EXPECT_TRUE(v4.is_type(NULL_TYPE));
+ EXPECT_TRUE(v4.is_literal());
+}
+
+TEST_F(ValueTest, MakeFunctions) {
+ Value* v1 = make(INT64);
+ EXPECT_EQ(v1->type_, INT64);
+ delete v1;
+
+ Value* v2 = make_literal((int64_t)123456789);
+ EXPECT_EQ(v2->type_, INT64);
+ EXPECT_EQ(v2->value_.lval_, 123456789LL);
+ delete v2;
+
+ Value* v3 = make_literal(123.456);
+ EXPECT_EQ(v3->type_, DOUBLE);
+ EXPECT_EQ(v3->value_.dval_, 123.456);
+ delete v3;
+
+ char text_val[] = "hello";
+ Value* v4 = make_literal(text_val);
+ EXPECT_EQ(v4->type_, TEXT);
+ delete v4;
+
+ Value* v5 = make_literal(true);
+ EXPECT_EQ(v5->type_, BOOLEAN);
+ EXPECT_TRUE(v5->value_.bval_);
+ delete v5;
+
+ Value* v6 = make_null_literal();
+ EXPECT_EQ(v6->type_, NULL_TYPE);
+ delete v6;
+}
+
+TEST_F(ValueTest, GetTypedDataFromValue) {
+ Value v1(INT64);
+ v1.value_.lval_ = 123456789LL;
+ int64_t int64_data;
+ EXPECT_EQ(get_typed_data_from_value(&v1, int64_data), E_OK);
+ EXPECT_EQ(int64_data, 123456789LL);
+
+ Value v2(DOUBLE);
+ v2.value_.dval_ = 123.456;
+ double double_data;
+ EXPECT_EQ(get_typed_data_from_value(&v2, double_data), E_OK);
+ EXPECT_EQ(double_data, 123.456);
+
+ Value v3(BOOLEAN);
+ v3.value_.bval_ = true;
+ bool bool_data;
+ EXPECT_EQ(get_typed_data_from_value(&v3, bool_data), E_OK);
+ EXPECT_TRUE(bool_data);
+
+ Value v4(TEXT);
+ v4.value_.sval_ = strdup("hello");
+ std::string text_data = value_to_string(&v4);
+ EXPECT_EQ(text_data, "hello");
+ v4.free_memory();
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/record_test.cc b/cpp/test/common/record_test.cc
new file mode 100644
index 00000000..211b2235
--- /dev/null
+++ b/cpp/test/common/record_test.cc
@@ -0,0 +1,129 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/record.h"
+
+#include <gtest/gtest.h>
+
+#include <string>
+#include <vector>
+
+namespace storage {
+
+TEST(DataPointTest, BoolConstructor) {
+ DataPoint dp("touch_sensor", true);
+ EXPECT_EQ(dp.measurement_name_, "touch_sensor");
+ EXPECT_EQ(dp.data_type_, common::BOOLEAN);
+ EXPECT_TRUE(dp.u_.bool_val_);
+}
+
+TEST(DataPointTest, Int32Constructor) {
+ DataPoint dp("temperature", int32_t(100));
+ EXPECT_EQ(dp.measurement_name_, "temperature");
+ EXPECT_EQ(dp.data_type_, common::INT32);
+ EXPECT_EQ(dp.u_.i32_val_, 100);
+}
+
+TEST(DataPointTest, Int64Constructor) {
+ DataPoint dp("temperature", int64_t(100000));
+ EXPECT_EQ(dp.measurement_name_, "temperature");
+ EXPECT_EQ(dp.data_type_, common::INT64);
+ EXPECT_EQ(dp.u_.i64_val_, 100000);
+}
+
+TEST(DataPointTest, FloatConstructor) {
+ DataPoint dp("temperature", float(36.6));
+ EXPECT_EQ(dp.measurement_name_, "temperature");
+ EXPECT_EQ(dp.data_type_, common::FLOAT);
+ EXPECT_FLOAT_EQ(dp.u_.float_val_, 36.6);
+}
+
+TEST(DataPointTest, DoubleConstructor) {
+ DataPoint dp("temperature", double(36.6));
+ EXPECT_EQ(dp.measurement_name_, "temperature");
+ EXPECT_EQ(dp.data_type_, common::DOUBLE);
+ EXPECT_DOUBLE_EQ(dp.u_.double_val_, 36.6);
+}
+
+TEST(DataPointTest, SetInt32) {
+ DataPoint dp("temperature");
+ dp.set_i32(100);
+ EXPECT_EQ(dp.data_type_, common::INT32);
+ EXPECT_EQ(dp.u_.i32_val_, 100);
+}
+
+TEST(DataPointTest, SetInt64) {
+ DataPoint dp("temperature");
+ dp.set_i64(100000);
+ EXPECT_EQ(dp.data_type_, common::INT64);
+ EXPECT_EQ(dp.u_.i64_val_, 100000);
+}
+
+TEST(DataPointTest, SetFloat) {
+ DataPoint dp("temperature");
+ dp.set_float(36.6);
+ EXPECT_EQ(dp.data_type_, common::FLOAT);
+ EXPECT_FLOAT_EQ(dp.u_.float_val_, 36.6);
+}
+
+TEST(DataPointTest, SetDouble) {
+ DataPoint dp("temperature");
+ dp.set_double(36.6);
+ EXPECT_EQ(dp.data_type_, common::DOUBLE);
+ EXPECT_DOUBLE_EQ(dp.u_.double_val_, 36.6);
+}
+
+TEST(TsRecordTest, ConstructorWithDeviceName) {
+ TsRecord ts_record("device1");
+ EXPECT_EQ(ts_record.device_name_, "device1");
+ EXPECT_EQ(ts_record.points_.size(), 0);
+}
+
+TEST(TsRecordTest, ConstructorWithTimestamp) {
+ TsRecord ts_record(1625140800, "device1", 5);
+ EXPECT_EQ(ts_record.timestamp_, 1625140800);
+ EXPECT_EQ(ts_record.device_name_, "device1");
+ EXPECT_EQ(ts_record.points_.capacity(), 5);
+}
+
+TEST(TsRecordTest, AppendDataPoint) {
+ TsRecord ts_record("device1");
+ DataPoint dp("temperature", 36.6);
+ ts_record.append_data_point(dp);
+ ASSERT_EQ(ts_record.points_.size(), 1);
+ EXPECT_EQ(ts_record.points_[0].measurement_name_, "temperature");
+ EXPECT_EQ(ts_record.points_[0].data_type_, common::DOUBLE);
+ EXPECT_DOUBLE_EQ(ts_record.points_[0].u_.double_val_, 36.6);
+}
+
+TEST(TsRecordTest, LargeQuantities) {
+ TsRecord ts_record("device1");
+ for (int i = 0; i < 10000; i++) {
+ DataPoint dp(std::to_string(i), 36.6);
+ ts_record.append_data_point(dp);
+ }
+
+ ASSERT_EQ(ts_record.points_.size(), 10000);
+ for (int i = 0; i < 10000; i++) {
+ EXPECT_EQ(ts_record.points_[i].measurement_name_, std::to_string(i));
+ EXPECT_EQ(ts_record.points_[i].data_type_, common::DOUBLE);
+ EXPECT_DOUBLE_EQ(ts_record.points_[i].u_.double_val_, 36.6);
+ }
+}
+
+} // namespace storage
diff --git a/cpp/test/common/row_record_test.cc b/cpp/test/common/row_record_test.cc
new file mode 100644
index 00000000..e1379404
--- /dev/null
+++ b/cpp/test/common/row_record_test.cc
@@ -0,0 +1,155 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/row_record.h"
+
+#include <gtest/gtest.h>
+
+#include <vector>
+
+namespace storage {
+
+TEST(FieldTest, DefaultConstructor) {
+ Field field;
+ EXPECT_EQ(field.type_, common::INVALID_DATATYPE);
+}
+
+TEST(FieldTest, TypeConstructor) {
+ Field field(common::BOOLEAN);
+ EXPECT_EQ(field.type_, common::BOOLEAN);
+}
+
+TEST(FieldTest, FreeMemory) {
+ Field field(common::TEXT);
+ field.value_.sval_ = strdup("test");
+ field.free_memory();
+ EXPECT_EQ(field.value_.sval_, nullptr);
+}
+
+TEST(FieldTest, IsType) {
+ Field field(common::BOOLEAN);
+ EXPECT_TRUE(field.is_type(common::BOOLEAN));
+ EXPECT_FALSE(field.is_type(common::INT32));
+}
+
+TEST(FieldTest, IsLiteral) {
+ Field field1(common::BOOLEAN);
+ EXPECT_TRUE(field1.is_literal());
+
+ Field field2(common::INT64);
+ EXPECT_TRUE(field2.is_literal());
+
+ Field field3(common::INVALID_DATATYPE);
+ EXPECT_FALSE(field3.is_literal());
+}
+
+TEST(FieldTest, SetValue) {
+ Field field;
+ int32_t i32_val = 123;
+ field.set_value(common::INT32, &i32_val);
+ EXPECT_EQ(field.type_, common::INT32);
+ EXPECT_EQ(field.value_.ival_, 123);
+
+ double d_val = 3.14;
+ field.set_value(common::DOUBLE, &d_val);
+ EXPECT_EQ(field.type_, common::DOUBLE);
+ EXPECT_DOUBLE_EQ(field.value_.dval_, 3.14);
+}
+
+TEST(FieldTest, MakeField) {
+ Field* field = make(common::BOOLEAN);
+ EXPECT_EQ(field->type_, common::BOOLEAN);
+ delete field;
+}
+
+TEST(FieldTest, MakeLiteralInt64) {
+ Field* field = make_literal(int64_t(12345));
+ EXPECT_EQ(field->type_, common::INT64);
+ EXPECT_EQ(field->value_.lval_, 12345);
+ delete field;
+}
+
+TEST(FieldTest, MakeLiteralDouble) {
+ Field* field = make_literal(3.14);
+ EXPECT_EQ(field->type_, common::DOUBLE);
+ EXPECT_DOUBLE_EQ(field->value_.dval_, 3.14);
+ delete field;
+}
+
+TEST(FieldTest, MakeLiteralString) {
+ char* text = strdup("test");
+ Field* field = make_literal(text);
+ EXPECT_EQ(field->type_, common::TEXT);
+ field->free_memory();
+ delete field;
+}
+
+TEST(FieldTest, MakeLiteralBool) {
+ Field* field = make_literal(true);
+ EXPECT_EQ(field->type_, common::BOOLEAN);
+ EXPECT_TRUE(field->value_.bval_);
+ delete field;
+}
+
+TEST(FieldTest, MakeNullLiteral) {
+ Field* field = make_null_literal();
+ EXPECT_EQ(field->type_, common::NULL_TYPE);
+ delete field;
+}
+
+TEST(RowRecordTest, ConstructorWithColNum) {
+ RowRecord row_record(5);
+ EXPECT_EQ(row_record.get_fields()->size(), 5);
+ for (Field* field : *row_record.get_fields()) {
+ EXPECT_EQ(field->type_, common::NULL_TYPE);
+ }
+}
+
+TEST(RowRecordTest, ConstructorWithTimestamp) {
+ RowRecord row_record(1625140800, 5);
+ EXPECT_EQ(row_record.get_timestamp(), 1625140800);
+ EXPECT_EQ(row_record.get_fields()->size(), 5);
+ for (Field* field : *row_record.get_fields()) {
+ EXPECT_EQ(field->type_, common::NULL_TYPE);
+ }
+}
+
+TEST(RowRecordTest, AddField) {
+ RowRecord row_record(5);
+ Field* field = make_literal(int64_t(12345));
+ row_record.add_field(field);
+ EXPECT_EQ(row_record.get_fields()->size(), 6);
+ EXPECT_EQ(row_record.get_field(5)->value_.lval_, 12345);
+}
+
+TEST(RowRecordTest, AddFieldLargeQuantities) {
+ RowRecord row_record(5);
+ for (int i = 0; i < 10000; i++) {
+ Field* field = make_literal(int64_t(12345));
+ row_record.add_field(field);
+ }
+ EXPECT_EQ(row_record.get_fields()->size(), 10000 + 5);
+}
+
+TEST(RowRecordTest, SetAndGetTimestamp) {
+ RowRecord row_record(5);
+ row_record.set_timestamp(1625140800);
+ EXPECT_EQ(row_record.get_timestamp(), 1625140800);
+}
+
+} // namespace storage
diff --git a/cpp/test/common/schema_test.cc b/cpp/test/common/schema_test.cc
new file mode 100644
index 00000000..02b5bfec
--- /dev/null
+++ b/cpp/test/common/schema_test.cc
@@ -0,0 +1,54 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/schema.h"
+
+#include <gtest/gtest.h>
+
+namespace storage {
+
+TEST(MeasurementSchemaTest, DefaultConstructor) {
+ MeasurementSchema schema;
+
+ EXPECT_EQ(schema.measurement_name_, "");
+ EXPECT_EQ(schema.data_type_, common::INVALID_DATATYPE);
+ EXPECT_EQ(schema.encoding_, common::INVALID_ENCODING);
+ EXPECT_EQ(schema.compression_type_, common::INVALID_COMPRESSION);
+ EXPECT_EQ(schema.chunk_writer_, nullptr);
+}
+
+TEST(MeasurementSchemaTest, ParameterizedConstructor) {
+ MeasurementSchema schema("test_measurement", common::TSDataType::BOOLEAN,
+ common::TSEncoding::RLE,
+ common::CompressionType::SNAPPY);
+
+ EXPECT_EQ(schema.measurement_name_, "test_measurement");
+ EXPECT_EQ(schema.data_type_, common::TSDataType::BOOLEAN);
+ EXPECT_EQ(schema.encoding_, common::TSEncoding::RLE);
+ EXPECT_EQ(schema.compression_type_, common::CompressionType::SNAPPY);
+ EXPECT_EQ(schema.chunk_writer_, nullptr);
+}
+
+TEST(MeasurementSchemaGroupTest, DefaultConstructor) {
+ MeasurementSchemaGroup group;
+
+ EXPECT_TRUE(group.measurement_schema_map_.empty());
+ EXPECT_FALSE(group.is_aligned_);
+}
+
+} // namespace storage
\ No newline at end of file
diff --git a/cpp/test/common/statistic_test.cc b/cpp/test/common/statistic_test.cc
new file mode 100644
index 00000000..1b098ecf
--- /dev/null
+++ b/cpp/test/common/statistic_test.cc
@@ -0,0 +1,202 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/statistic.h"
+
+#include <gtest/gtest.h>
+
+namespace storage {
+
+TEST(BooleanStatisticTest, BasicFunctionality) {
+ BooleanStatistic stat;
+ EXPECT_EQ(stat.count_, 0);
+ EXPECT_EQ(stat.start_time_, 0);
+ EXPECT_EQ(stat.end_time_, 0);
+ EXPECT_EQ(stat.sum_value_, 0);
+ EXPECT_EQ(stat.first_value_, false);
+ EXPECT_EQ(stat.last_value_, false);
+
+ stat.update(1000, true);
+ stat.update(2000, false);
+
+ EXPECT_EQ(stat.count_, 2);
+ EXPECT_EQ(stat.start_time_, 1000);
+ EXPECT_EQ(stat.end_time_, 2000);
+ EXPECT_EQ(stat.sum_value_, 1);
+ EXPECT_EQ(stat.first_value_, true);
+ EXPECT_EQ(stat.last_value_, false);
+
+ common::ByteStream out(1024, common::MOD_STATISTIC_OBJ);
+ stat.serialize_typed_stat(out);
+
+ BooleanStatistic stat_deserialized;
+ stat_deserialized.deserialize_typed_stat(out);
+
+ EXPECT_EQ(stat_deserialized.sum_value_, stat.sum_value_);
+ EXPECT_EQ(stat_deserialized.first_value_, stat.first_value_);
+ EXPECT_EQ(stat_deserialized.last_value_, stat.last_value_);
+}
+
+TEST(Int32StatisticTest, BasicFunctionality) {
+ Int32Statistic stat;
+
+ EXPECT_EQ(stat.count_, 0);
+ EXPECT_EQ(stat.start_time_, 0);
+ EXPECT_EQ(stat.end_time_, 0);
+ EXPECT_EQ(stat.sum_value_, 0);
+ EXPECT_EQ(stat.min_value_, 0);
+ EXPECT_EQ(stat.max_value_, 0);
+ EXPECT_EQ(stat.first_value_, 0);
+ EXPECT_EQ(stat.last_value_, 0);
+
+ stat.update(1000, 10);
+ stat.update(2000, 20);
+
+ EXPECT_EQ(stat.count_, 2);
+ EXPECT_EQ(stat.start_time_, 1000);
+ EXPECT_EQ(stat.end_time_, 2000);
+ EXPECT_EQ(stat.sum_value_, 30);
+ EXPECT_EQ(stat.min_value_, 10);
+ EXPECT_EQ(stat.max_value_, 20);
+ EXPECT_EQ(stat.first_value_, 10);
+ EXPECT_EQ(stat.last_value_, 20);
+
+ common::ByteStream out(1024, common::MOD_STATISTIC_OBJ);
+ stat.serialize_typed_stat(out);
+
+ Int32Statistic stat_deserialized;
+ stat_deserialized.deserialize_typed_stat(out);
+
+ EXPECT_EQ(stat_deserialized.sum_value_, stat.sum_value_);
+ EXPECT_EQ(stat_deserialized.min_value_, stat.min_value_);
+ EXPECT_EQ(stat_deserialized.max_value_, stat.max_value_);
+ EXPECT_EQ(stat_deserialized.first_value_, stat.first_value_);
+ EXPECT_EQ(stat_deserialized.last_value_, stat.last_value_);
+}
+
+TEST(Int64StatisticTest, BasicFunctionality) {
+ Int64Statistic stat;
+
+ EXPECT_EQ(stat.count_, 0);
+ EXPECT_EQ(stat.start_time_, 0);
+ EXPECT_EQ(stat.end_time_, 0);
+ EXPECT_EQ(stat.sum_value_, 0);
+ EXPECT_EQ(stat.min_value_, 0);
+ EXPECT_EQ(stat.max_value_, 0);
+ EXPECT_EQ(stat.first_value_, 0);
+ EXPECT_EQ(stat.last_value_, 0);
+
+ stat.update(1000, 100);
+ stat.update(2000, 200);
+
+ EXPECT_EQ(stat.count_, 2);
+ EXPECT_EQ(stat.start_time_, 1000);
+ EXPECT_EQ(stat.end_time_, 2000);
+ EXPECT_EQ(stat.sum_value_, 300);
+ EXPECT_EQ(stat.min_value_, 100);
+ EXPECT_EQ(stat.max_value_, 200);
+ EXPECT_EQ(stat.first_value_, 100);
+ EXPECT_EQ(stat.last_value_, 200);
+
+ common::ByteStream out(1024, common::MOD_STATISTIC_OBJ);
+ stat.serialize_typed_stat(out);
+
+ Int64Statistic stat_deserialized;
+ stat_deserialized.deserialize_typed_stat(out);
+
+ EXPECT_EQ(stat_deserialized.sum_value_, stat.sum_value_);
+ EXPECT_EQ(stat_deserialized.min_value_, stat.min_value_);
+ EXPECT_EQ(stat_deserialized.max_value_, stat.max_value_);
+ EXPECT_EQ(stat_deserialized.first_value_, stat.first_value_);
+ EXPECT_EQ(stat_deserialized.last_value_, stat.last_value_);
+}
+
+TEST(FloatStatisticTest, BasicFunctionality) {
+ FloatStatistic stat;
+
+ EXPECT_EQ(stat.count_, 0);
+ EXPECT_EQ(stat.start_time_, 0);
+ EXPECT_EQ(stat.end_time_, 0);
+ EXPECT_EQ(stat.sum_value_, 0);
+ EXPECT_EQ(stat.min_value_, 0);
+ EXPECT_EQ(stat.max_value_, 0);
+ EXPECT_EQ(stat.first_value_, 0);
+ EXPECT_EQ(stat.last_value_, 0);
+
+ stat.update(1000, 10.5);
+ stat.update(2000, 20.7);
+
+ EXPECT_EQ(stat.count_, 2);
+ EXPECT_EQ(stat.start_time_, 1000);
+ EXPECT_EQ(stat.end_time_, 2000);
+ EXPECT_FLOAT_EQ(stat.sum_value_, 31.2);
+ EXPECT_FLOAT_EQ(stat.min_value_, 10.5);
+ EXPECT_FLOAT_EQ(stat.max_value_, 20.7);
+ EXPECT_FLOAT_EQ(stat.first_value_, 10.5);
+ EXPECT_FLOAT_EQ(stat.last_value_, 20.7);
+
+ common::ByteStream out(1024, common::MOD_STATISTIC_OBJ);
+ stat.serialize_typed_stat(out);
+
+ FloatStatistic stat_deserialized;
+ stat_deserialized.deserialize_typed_stat(out);
+
+ EXPECT_FLOAT_EQ(stat_deserialized.sum_value_, stat.sum_value_);
+ EXPECT_FLOAT_EQ(stat_deserialized.min_value_, stat.min_value_);
+ EXPECT_FLOAT_EQ(stat_deserialized.max_value_, stat.max_value_);
+ EXPECT_FLOAT_EQ(stat_deserialized.first_value_, stat.first_value_);
+ EXPECT_FLOAT_EQ(stat_deserialized.last_value_, stat.last_value_);
+}
+
+TEST(DoubleStatisticTest, BasicFunctionality) {
+ DoubleStatistic stat;
+ EXPECT_EQ(stat.count_, 0);
+ EXPECT_EQ(stat.start_time_, 0);
+ EXPECT_EQ(stat.end_time_, 0);
+ EXPECT_EQ(stat.sum_value_, 0);
+ EXPECT_EQ(stat.min_value_, 0);
+ EXPECT_EQ(stat.max_value_, 0);
+ EXPECT_EQ(stat.first_value_, 0);
+ EXPECT_EQ(stat.last_value_, 0);
+
+ stat.update(1000, 100.5);
+ stat.update(2000, 200.7);
+
+ EXPECT_EQ(stat.count_, 2);
+ EXPECT_EQ(stat.start_time_, 1000);
+ EXPECT_EQ(stat.end_time_, 2000);
+ EXPECT_DOUBLE_EQ(stat.sum_value_, 301.2);
+ EXPECT_DOUBLE_EQ(stat.min_value_, 100.5);
+ EXPECT_DOUBLE_EQ(stat.max_value_, 200.7);
+ EXPECT_DOUBLE_EQ(stat.first_value_, 100.5);
+ EXPECT_DOUBLE_EQ(stat.last_value_, 200.7);
+
+ common::ByteStream out(1024, common::MOD_STATISTIC_OBJ);
+ stat.serialize_typed_stat(out);
+
+ DoubleStatistic stat_deserialized;
+ stat_deserialized.deserialize_typed_stat(out);
+
+ EXPECT_DOUBLE_EQ(stat_deserialized.sum_value_, stat.sum_value_);
+ EXPECT_DOUBLE_EQ(stat_deserialized.min_value_, stat.min_value_);
+ EXPECT_DOUBLE_EQ(stat_deserialized.max_value_, stat.max_value_);
+ EXPECT_DOUBLE_EQ(stat_deserialized.first_value_, stat.first_value_);
+ EXPECT_DOUBLE_EQ(stat_deserialized.last_value_, stat.last_value_);
+}
+
+} // namespace storage
\ No newline at end of file
diff --git a/cpp/test/common/tablet_test.cc b/cpp/test/common/tablet_test.cc
new file mode 100644
index 00000000..0ebf4619
--- /dev/null
+++ b/cpp/test/common/tablet_test.cc
@@ -0,0 +1,64 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/tablet.h"
+
+#include <gtest/gtest.h>
+
+#include "common/schema.h"
+
+namespace storage {
+
+TEST(TabletTest, BasicFunctionality) {
+ std::string device_name = "test_device";
+ std::vector<MeasurementSchema> schema_vec;
+
+ schema_vec.push_back(MeasurementSchema(
+ "measurement1", common::TSDataType::BOOLEAN, common::TSEncoding::RLE,
+ common::CompressionType::SNAPPY));
+ schema_vec.push_back(MeasurementSchema(
+ "measurement2", common::TSDataType::BOOLEAN, common::TSEncoding::RLE,
+ common::CompressionType::SNAPPY));
+ Tablet tablet(device_name, &schema_vec);
+
+ EXPECT_EQ(tablet.get_column_count(), schema_vec.size());
+
+ EXPECT_EQ(tablet.init(), common::E_OK);
+
+ EXPECT_EQ(tablet.set_value(0, "measurement1", true), common::E_OK);
+ EXPECT_EQ(tablet.set_value(0, "measurement2", false), common::E_OK);
+
+ EXPECT_EQ(tablet.set_value(1, 0, false), common::E_OK);
+ EXPECT_EQ(tablet.set_value(1, 1, true), common::E_OK);
+}
+
+TEST(TabletTest, LargeQuantities) {
+ std::string device_name = "test_device";
+ std::vector<MeasurementSchema> schema_vec;
+
+ for (int i = 0; i < 10000; i++) {
+ schema_vec.push_back(MeasurementSchema(
+ "measurement" + std::to_string(i), common::TSDataType::BOOLEAN,
+ common::TSEncoding::RLE, common::CompressionType::SNAPPY));
+ }
+ Tablet tablet(device_name, &schema_vec);
+
+ EXPECT_EQ(tablet.get_column_count(), schema_vec.size());
+}
+
+} // namespace storage
\ No newline at end of file
diff --git a/cpp/test/common/tsblock/tslock_test.cc b/cpp/test/common/tsblock/tslock_test.cc
new file mode 100644
index 00000000..1aa2c9ba
--- /dev/null
+++ b/cpp/test/common/tsblock/tslock_test.cc
@@ -0,0 +1,153 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include "common/tsblock/tsblock.h"
+
+namespace common {
+
+TEST(TsBlockTest, Initialization) {
+ TupleDesc tuple_desc;
+ TsBlock ts_block(&tuple_desc);
+
+ EXPECT_EQ(ts_block.get_row_count(), 0);
+ EXPECT_EQ(ts_block.get_column_count(), 0);
+ EXPECT_EQ(ts_block.get_max_row_count(), 0);
+}
+
+TEST(TsBlockTest, RowAppender_AddRow) {
+ TupleDesc tuple_desc;
+ ColumnDesc col;
+ tuple_desc.push_back(col);
+ TsBlock ts_block(&tuple_desc, 100);
+ RowAppender row_appender(&ts_block);
+
+ for (int i = 0; i < 100; ++i) {
+ EXPECT_TRUE(row_appender.add_row());
+ EXPECT_EQ(ts_block.get_row_count(), i + 1);
+ }
+}
+
+TEST(TsBlockTest, ColAppender_AddRowAndAppend) {
+ TupleDesc tuple_desc;
+ TsID ts_id(1, 2, 3);
+ ColumnDesc col(INT32, RLE, SNAPPY, 1000, "test_col", ts_id);
+ tuple_desc.push_back(col);
+ TsBlock ts_block(&tuple_desc, 50);
+ ts_block.init();
+ RowAppender row_appender(&ts_block);
+ ColAppender col_appender(0, &ts_block);
+
+ for (int i = 0; i < 50; ++i) {
+ EXPECT_TRUE(row_appender.add_row());
+ EXPECT_TRUE(col_appender.add_row());
+ int32_t val = i;
+ col_appender.append((const char *)&val, sizeof(int32_t));
+ }
+
+ EXPECT_EQ(col_appender.get_col_row_count(), 50);
+}
+
+TEST(TsBlockTest, RowIterator_ReadAndNext) {
+ TupleDesc tuple_desc;
+ TsID ts_id1(1, 2, 3);
+ ColumnDesc col1(INT32, RLE, SNAPPY, 1000, "test_col1", ts_id1);
+ TsID ts_id2(1, 2, 4);
+ ColumnDesc col2(INT32, RLE, SNAPPY, 1000, "test_col2", ts_id2);
+ tuple_desc.push_back(col1);
+ tuple_desc.push_back(col2);
+ TsBlock ts_block(&tuple_desc, 1000000);
+ ts_block.init();
+ RowAppender row_appender(&ts_block);
+ ColAppender col_appender(0, &ts_block);
+
+ for (int i = 0; i < 10000; ++i) {
+ EXPECT_TRUE(row_appender.add_row());
+ EXPECT_TRUE(col_appender.add_row());
+ int32_t val = i;
+ col_appender.append((const char *)&val, sizeof(int32_t));
+ }
+
+ RowIterator row_iterator(&ts_block);
+ EXPECT_FALSE(row_iterator.end());
+
+ uint32_t len;
+ bool null;
+ char *value = row_iterator.read(0, &len, &null);
+ EXPECT_EQ(len, sizeof(int32_t));
+ EXPECT_FALSE(null);
+ EXPECT_EQ(*((int32_t *)value), 0);
+
+ row_iterator.next();
+ EXPECT_FALSE(row_iterator.end());
+ value = row_iterator.read(0, &len, &null);
+ EXPECT_EQ(len, sizeof(int32_t));
+ EXPECT_FALSE(null);
+ EXPECT_EQ(*((int32_t *)value), 1);
+
+ for (int i = 1; i < 10000; ++i) {
+ row_iterator.next();
+ }
+ EXPECT_TRUE(row_iterator.end());
+}
+
+TEST(TsBlockTest, ColIterator_ReadAndNext) {
+ TupleDesc tuple_desc;
+ TsID ts_id1(1, 2, 3);
+ ColumnDesc col1(INT32, RLE, SNAPPY, 1000, "test_col1", ts_id1);
+ TsID ts_id2(1, 2, 4);
+ ColumnDesc col2(INT32, RLE, SNAPPY, 1000, "test_col2", ts_id2);
+ tuple_desc.push_back(col1);
+ tuple_desc.push_back(col2);
+ TsBlock ts_block(&tuple_desc, 100000);
+ ts_block.init();
+ RowAppender row_appender(&ts_block);
+ ColAppender col_appender(0, &ts_block);
+
+ for (int i = 0; i < 10000; ++i) {
+ EXPECT_TRUE(row_appender.add_row());
+ EXPECT_TRUE(col_appender.add_row());
+ int32_t val = i;
+ col_appender.append((const char *)&val, sizeof(int32_t));
+ }
+
+ ColIterator col_iterator(0, &ts_block);
+ EXPECT_FALSE(col_iterator.end());
+
+ uint32_t len;
+ bool null;
+ char *value = col_iterator.read(&len, &null);
+ EXPECT_EQ(len, sizeof(int32_t));
+ EXPECT_FALSE(null);
+ EXPECT_EQ(*((int32_t *)value), 0);
+
+ col_iterator.next();
+ EXPECT_FALSE(col_iterator.end());
+ value = col_iterator.read(&len, &null);
+ EXPECT_EQ(len, sizeof(int32_t));
+ EXPECT_FALSE(null);
+ EXPECT_EQ(*((int32_t *)value), 1);
+
+ for (int i = 1; i < 10000; ++i) {
+ col_iterator.next();
+ }
+ EXPECT_TRUE(col_iterator.end());
+}
+
+} // namespace common
diff --git a/cpp/test/common/tsblock/tuple_desc_test.cc b/cpp/test/common/tsblock/tuple_desc_test.cc
new file mode 100644
index 00000000..62f24c61
--- /dev/null
+++ b/cpp/test/common/tsblock/tuple_desc_test.cc
@@ -0,0 +1,104 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/tsblock/tuple_desc.h"
+
+#include <gtest/gtest.h>
+
+#include "common/db_common.h"
+#include "utils/db_utils.h"
+
+namespace common {
+
+TEST(TupleDescTest, Initialization) {
+ TupleDesc td;
+ EXPECT_EQ(td.get_column_count(), 0);
+}
+
+TEST(TupleDescTest, PushBackAndGet) {
+ TupleDesc td;
+ ColumnDesc col1;
+ ColumnDesc col2;
+
+ td.push_back(col1);
+ td.push_back(col2);
+
+ EXPECT_EQ(td.get_column_count(), 2);
+ EXPECT_EQ(td.get_column_desc(0), col1);
+ EXPECT_EQ(td.get_column_desc(1), col2);
+}
+
+TEST(TupleDescTest, RemoveColumn) {
+ TupleDesc td;
+ ColumnDesc col1;
+ ColumnDesc col2;
+
+ td.push_back(col1);
+ td.push_back(col2);
+ td.remove_column(0);
+
+ EXPECT_EQ(td.get_column_count(), 1);
+ EXPECT_EQ(td.get_column_desc(0), col2);
+}
+
+TEST(TupleDescTest, CloneFrom) {
+ TupleDesc td1;
+ ColumnDesc col1;
+ ColumnDesc col2;
+
+ td1.push_back(col1);
+ td1.push_back(col2);
+
+ TupleDesc td2;
+ td2.clone_from(&td1);
+
+ EXPECT_EQ(td2.get_column_count(), 2);
+ EXPECT_EQ(td2.get_column_desc(0), col1);
+ EXPECT_EQ(td2.get_column_desc(1), col2);
+}
+
+TEST(TupleDescTest, EqualTo) {
+ TupleDesc td1;
+ ColumnDesc col1;
+ ColumnDesc col2;
+
+ td1.push_back(col1);
+ td1.push_back(col2);
+
+ TupleDesc td2;
+ td2.push_back(col1);
+ td2.push_back(col2);
+
+ EXPECT_TRUE(td1.equal_to(td2));
+ EXPECT_TRUE(td2.equal_to(td1));
+}
+
+TEST(TupleDescTest, LargeQuantities) {
+ TupleDesc td;
+ ColumnDesc cols[10000];
+ for (int i = 0; i < 10000; i++) {
+ cols[i].column_name_ = std::to_string(i);
+ td.push_back(cols[i]);
+ }
+
+ for (int i = 0; i < 10000; i++) {
+ EXPECT_EQ(td.get_column_desc(i), cols[i]);
+ }
+}
+
+} // namespace common
\ No newline at end of file
diff --git a/cpp/test/common/tsblock/vector/fixed_length_vector_test.cc b/cpp/test/common/tsblock/vector/fixed_length_vector_test.cc
new file mode 100644
index 00000000..15756e77
--- /dev/null
+++ b/cpp/test/common/tsblock/vector/fixed_length_vector_test.cc
@@ -0,0 +1,75 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/tsblock/vector/fixed_length_vector.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+TEST(FixedLengthVectorTest, Constructor) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10;
+ FixedLengthVector flv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ EXPECT_EQ(flv.get_vector_type(), common::TSDataType::INT32);
+}
+
+TEST(FixedLengthVectorTest, Reset) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10;
+ FixedLengthVector flv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ flv.append("test", type_size);
+ flv.reset();
+ EXPECT_EQ(flv.get_row_num(), 0);
+}
+
+TEST(FixedLengthVectorTest, AppendAndRead) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10000;
+ FixedLengthVector flv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ const char* value = "test";
+ flv.append(value, type_size);
+ uint32_t len;
+ bool null;
+ char* result = flv.read(&len, &null, 0);
+ EXPECT_EQ(len, type_size);
+ EXPECT_FALSE(null);
+ EXPECT_EQ(memcmp(result, value, type_size), 0);
+}
+
+TEST(FixedLengthVectorTest, ReadWithLen) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10000;
+ FixedLengthVector flv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ const char* value = "test";
+ flv.append(value, type_size);
+ uint32_t len;
+ char* result = flv.read(&len);
+ EXPECT_EQ(len, type_size);
+ EXPECT_EQ(memcmp(result, value, type_size), 0);
+}
+
+} // namespace common
diff --git a/cpp/test/common/tsblock/vector/variable_length_vector_test.cc b/cpp/test/common/tsblock/vector/variable_length_vector_test.cc
new file mode 100644
index 00000000..c6132166
--- /dev/null
+++ b/cpp/test/common/tsblock/vector/variable_length_vector_test.cc
@@ -0,0 +1,75 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/tsblock/vector/variable_length_vector.h"
+
+#include <gtest/gtest.h>
+
+namespace common {
+
+TEST(VariableLengthVectorTest, Constructor) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10;
+ VariableLengthVector vlv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ EXPECT_EQ(vlv.get_vector_type(), common::TSDataType::INT32);
+}
+
+TEST(VariableLengthVectorTest, Reset) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10;
+ VariableLengthVector vlv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ vlv.append("test", type_size);
+ vlv.reset();
+ EXPECT_EQ(vlv.get_row_num(), 0);
+}
+
+TEST(VariableLengthVectorTest, AppendAndRead) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10000;
+ VariableLengthVector vlv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ const char* value = "test";
+ vlv.append(value, type_size);
+ uint32_t len;
+ bool null;
+ char* result = vlv.read(&len, &null, 0);
+ EXPECT_EQ(len, type_size);
+ EXPECT_FALSE(null);
+ EXPECT_EQ(memcmp(result, value, type_size), 0);
+}
+
+TEST(VariableLengthVectorTest, ReadWithLen) {
+ uint32_t type_size = 4;
+ uint32_t max_row_num = 10000;
+ VariableLengthVector vlv(common::TSDataType::INT32, max_row_num, type_size,
+ nullptr);
+
+ const char* value = "test";
+ vlv.append(value, type_size);
+ uint32_t len;
+ char* result = vlv.read(&len);
+ EXPECT_EQ(len, type_size);
+ EXPECT_EQ(memcmp(result, value, type_size), 0);
+}
+
+} // namespace common
diff --git a/cpp/test/common/tsfile_common_test.cc b/cpp/test/common/tsfile_common_test.cc
new file mode 100644
index 00000000..ef0648bc
--- /dev/null
+++ b/cpp/test/common/tsfile_common_test.cc
@@ -0,0 +1,415 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "common/tsfile_common.h"
+
+#include <gtest/gtest.h>
+
+namespace storage {
+
+TEST(PageHeaderTest, DefaultConstructor) {
+ PageHeader header;
+ EXPECT_EQ(header.uncompressed_size_, 0);
+ EXPECT_EQ(header.compressed_size_, 0);
+ EXPECT_EQ(header.statistic_, nullptr);
+}
+
+TEST(PageHeaderTest, Reset) {
+ PageHeader header;
+ header.uncompressed_size_ = 100;
+ header.compressed_size_ = 50;
+ header.statistic_ = StatisticFactory::alloc_statistic(common::BOOLEAN);
+
+ header.reset();
+ EXPECT_EQ(header.uncompressed_size_, 0);
+ EXPECT_EQ(header.compressed_size_, 0);
+}
+
+TEST(ChunkHeaderTest, DefaultConstructor) {
+ ChunkHeader header;
+ EXPECT_EQ(header.measurement_name_, "");
+ EXPECT_EQ(header.data_size_, 0);
+ EXPECT_EQ(header.data_type_, common::INVALID_DATATYPE);
+ EXPECT_EQ(header.compression_type_, common::INVALID_COMPRESSION);
+ EXPECT_EQ(header.encoding_type_, common::INVALID_ENCODING);
+ EXPECT_EQ(header.num_of_pages_, 0);
+ EXPECT_EQ(header.serialized_size_, 0);
+ EXPECT_EQ(header.chunk_type_, 0);
+}
+
+TEST(ChunkHeaderTest, Reset) {
+ ChunkHeader header;
+ header.measurement_name_ = "test";
+ header.data_size_ = 100;
+ header.data_type_ = common::TSDataType::INT32;
+ header.compression_type_ = common::CompressionType::SNAPPY;
+ header.encoding_type_ = common::TSEncoding::PLAIN;
+ header.num_of_pages_ = 5;
+ header.serialized_size_ = 50;
+ header.chunk_type_ = 1;
+
+ header.reset();
+ EXPECT_EQ(header.measurement_name_, "");
+ EXPECT_EQ(header.data_size_, 0);
+ EXPECT_EQ(header.data_type_, common::INVALID_DATATYPE);
+ EXPECT_EQ(header.compression_type_, common::INVALID_COMPRESSION);
+ EXPECT_EQ(header.encoding_type_, common::INVALID_ENCODING);
+ EXPECT_EQ(header.num_of_pages_, 0);
+ EXPECT_EQ(header.serialized_size_, 0);
+ EXPECT_EQ(header.chunk_type_, 0);
+}
+
+TEST(ChunkMetaTest, DefaultConstructor) {
+ ChunkMeta meta;
+ EXPECT_EQ(meta.offset_of_chunk_header_, 0);
+ EXPECT_EQ(meta.statistic_, nullptr);
+ EXPECT_EQ(meta.mask_, 0);
+}
+
+TEST(ChunkMetaTest, Init) {
+ ChunkMeta meta;
+ char name[] = "test";
+ common::String measurement_name(name, sizeof(name));
+ Statistic stat;
+ common::TsID ts_id;
+ common::PageArena pa;
+
+ int ret = meta.init(measurement_name, common::TSDataType::INT32, 100, &stat,
+ ts_id, 1, pa);
+ EXPECT_EQ(ret, common::E_OK);
+ EXPECT_EQ(meta.data_type_, common::TSDataType::INT32);
+ EXPECT_EQ(meta.offset_of_chunk_header_, 100);
+ EXPECT_EQ(meta.statistic_, &stat);
+ EXPECT_EQ(meta.ts_id_, ts_id);
+ EXPECT_EQ(meta.mask_, 1);
+}
+
+TEST(ChunkGroupMetaTest, Constructor) {
+ common::PageArena pa;
+ ChunkGroupMeta group_meta(&pa);
+ EXPECT_EQ(group_meta.chunk_meta_list_.size(), 0);
+}
+
+TEST(ChunkGroupMetaTest, Init) {
+ common::PageArena pa;
+ ChunkGroupMeta group_meta(&pa);
+ int ret = group_meta.init("device_1", pa);
+ EXPECT_EQ(ret, common::E_OK);
+}
+
+TEST(ChunkGroupMetaTest, Push) {
+ common::PageArena pa;
+ ChunkGroupMeta group_meta(&pa);
+ ChunkMeta meta;
+ int ret = group_meta.push(&meta);
+ EXPECT_EQ(ret, common::E_OK);
+ EXPECT_EQ(group_meta.chunk_meta_list_.size(), 1);
+}
+
+class TimeseriesIndexTest : public ::testing::Test {};
+
+TEST_F(TimeseriesIndexTest, ConstructorAndDestructor) {
+ TimeseriesIndex tsIndex;
+ EXPECT_EQ(tsIndex.get_data_type(), common::INVALID_DATATYPE);
+ EXPECT_EQ(tsIndex.get_statistic(), nullptr);
+ EXPECT_EQ(tsIndex.get_chunk_meta_list(), nullptr);
+}
+
+TEST_F(TimeseriesIndexTest, ResetFunction) {
+ TimeseriesIndex tsIndex;
+ tsIndex.reset();
+ EXPECT_EQ(tsIndex.get_data_type(), common::VECTOR);
+ EXPECT_EQ(tsIndex.get_statistic(), nullptr);
+ EXPECT_EQ(tsIndex.get_chunk_meta_list(), nullptr);
+}
+
+TEST_F(TimeseriesIndexTest, SerializeAndDeserialize) {
+ common::PageArena arena;
+ arena.init(1024, common::MOD_TIMESERIES_INDEX_OBJ);
+ TimeseriesIndex tsIndex;
+ common::ByteStream out(1024, common::MOD_TIMESERIES_INDEX_OBJ);
+ char name[] = "test_measurement";
+ common::String measurementName(name, sizeof(name));
+ tsIndex.set_measurement_name(measurementName);
+ tsIndex.set_ts_meta_type(1);
+ tsIndex.set_data_type(common::TSDataType::INT32);
+ tsIndex.init_statistic(common::TSDataType::INT32);
+ common::TsID tsID(1, 2, 3);
+ tsIndex.set_ts_id(tsID);
+
+ int ret = tsIndex.serialize_to(out);
+ EXPECT_EQ(ret, common::E_OK);
+
+ TimeseriesIndex tsIndexDeserialized;
+ ret = tsIndexDeserialized.deserialize_from(out, &arena);
+ EXPECT_EQ(ret, common::E_OK);
+ EXPECT_EQ(tsIndexDeserialized.get_data_type(), common::TSDataType::INT32);
+}
+
+class TSMIteratorTest : public ::testing::Test {
+ protected:
+ void SetUp() override {
+ arena.init(1024, common::MOD_DEFAULT);
+ chunk_group_meta_list_ =
+ new common::SimpleList<ChunkGroupMeta*>(&arena);
+ auto chunk_group_meta = new ChunkGroupMeta(&arena);
+ chunk_group_meta->device_name_.dup_from("device_1", arena);
+
+ auto chunk_meta = new ChunkMeta();
+ char measure_name[] = "measurement_1";
+ common::String measurement_name(measure_name, sizeof(measure_name));
+ stat_ = StatisticFactory::alloc_statistic(common::TSDataType::INT32);
+ common::TsID ts_id;
+ common::PageArena pa;
+ chunk_meta->init(measurement_name, common::TSDataType::INT32, 100,
+ stat_, ts_id, 1, pa);
+
+ chunk_group_meta->chunk_meta_list_.push_back(chunk_meta);
+ chunk_group_meta_list_->push_back(chunk_group_meta);
+ }
+
+ void TearDown() override {
+ delete chunk_group_meta_list_;
+ StatisticFactory::free(stat_);
+ }
+
+ common::PageArena arena;
+ Statistic* stat_;
+ common::SimpleList<ChunkGroupMeta*>* chunk_group_meta_list_;
+};
+
+TEST_F(TSMIteratorTest, InitSuccess) {
+ TSMIterator iter(*chunk_group_meta_list_);
+ ASSERT_EQ(iter.init(), common::E_OK);
+}
+
+TEST_F(TSMIteratorTest, InitEmptyList) {
+ common::PageArena arena;
+ common::SimpleList<ChunkGroupMeta*> empty_list(&arena);
+ TSMIterator iter(empty_list);
+ ASSERT_EQ(iter.init(), common::E_NOT_EXIST);
+}
+
+TEST_F(TSMIteratorTest, HasNext) {
+ TSMIterator iter(*chunk_group_meta_list_);
+ iter.init();
+ ASSERT_TRUE(iter.has_next());
+}
+
+TEST_F(TSMIteratorTest, GetNext) {
+ TSMIterator iter(*chunk_group_meta_list_);
+ iter.init();
+
+ common::String ret_device_name;
+ common::String ret_measurement_name;
+ TimeseriesIndex ret_ts_index;
+
+ ASSERT_TRUE(iter.has_next());
+ ASSERT_EQ(
+ iter.get_next(ret_device_name, ret_measurement_name, ret_ts_index),
+ common::E_OK);
+ common::PageArena arena;
+ char device_name[] = "device_1";
+ common::String expect_str(device_name, sizeof(device_name) - 1);
+
+ ASSERT_TRUE(ret_device_name.equal_to(expect_str));
+
+ ASSERT_EQ(
+ iter.get_next(ret_device_name, ret_measurement_name, ret_ts_index),
+ common::E_NO_MORE_DATA);
+}
+
+class MetaIndexEntryTest : public ::testing::Test {
+ protected:
+ common::PageArena pa_;
+ common::ByteStream* out_;
+ MetaIndexEntry entry_;
+
+ void SetUp() override {
+ out_ = new common::ByteStream(1024, common::MOD_DEFAULT);
+ }
+
+ void TearDown() override { delete out_; }
+};
+
+TEST_F(MetaIndexEntryTest, InitSuccess) {
+ std::string name = "test_name";
+ int64_t offset = 123456;
+ ASSERT_EQ(entry_.init(name, offset, pa_), common::E_OK);
+ ASSERT_EQ(entry_.offset_, offset);
+}
+
+TEST_F(MetaIndexEntryTest, SerializeDeserialize) {
+ std::string name = "test_name";
+ int64_t offset = 123456;
+ entry_.init(name, offset, pa_);
+
+ ASSERT_EQ(entry_.serialize_to(*out_), common::E_OK);
+
+ MetaIndexEntry new_entry;
+ ASSERT_EQ(new_entry.deserialize_from(*out_, &pa_), common::E_OK);
+ ASSERT_EQ(new_entry.offset_, offset);
+}
+
+class MetaIndexNodeTest : public ::testing::Test {
+ protected:
+ common::PageArena pa_;
+ common::ByteStream* out_;
+ MetaIndexNode node_;
+
+ MetaIndexNodeTest() : node_(&pa_) {}
+
+ void SetUp() override {
+ out_ = new common::ByteStream(1024, common::MOD_DEFAULT);
+ }
+
+ void TearDown() override { delete out_; }
+};
+
+TEST_F(MetaIndexNodeTest, GetFirstChildName) {
+ common::String name;
+ ASSERT_EQ(node_.get_first_child_name(name), common::E_NOT_EXIST);
+
+ MetaIndexEntry* entry =
+ new (pa_.alloc(sizeof(MetaIndexEntry))) MetaIndexEntry;
+ entry->init("child_name", 0, pa_);
+ node_.push_entry(entry);
+
+ ASSERT_EQ(node_.get_first_child_name(name), common::E_OK);
+}
+
+TEST_F(MetaIndexNodeTest, SerializeDeserialize) {
+ MetaIndexEntry* entry =
+ new (pa_.alloc(sizeof(MetaIndexEntry))) MetaIndexEntry;
+ entry->init("child_name", 123, pa_);
+ node_.push_entry(entry);
+ node_.end_offset_ = 456;
+ node_.node_type_ = LEAF_DEVICE;
+
+ ASSERT_EQ(node_.serialize_to(*out_), common::E_OK);
+
+ MetaIndexNode new_node(&pa_);
+ ASSERT_EQ(new_node.deserialize_from(*out_), common::E_OK);
+ ASSERT_EQ(new_node.end_offset_, 456);
+ ASSERT_EQ(new_node.node_type_, LEAF_DEVICE);
+
+ common::String name;
+ ASSERT_EQ(new_node.get_first_child_name(name), common::E_OK);
+}
+
+class MetaIndexNodeSearchTest : public ::testing::Test {
+ protected:
+ common::PageArena arena_;
+ MetaIndexNode node_;
+ MetaIndexEntry entry1_;
+ MetaIndexEntry entry2_;
+ MetaIndexEntry entry3_;
+
+ MetaIndexNodeSearchTest() : node_(&arena_) {
+ entry1_.init("apple", 10, arena_);
+ entry2_.init("banana", 20, arena_);
+ entry3_.init("cherry", 30, arena_);
+ node_.children_.push_back(&entry1_);
+ node_.children_.push_back(&entry2_);
+ node_.children_.push_back(&entry3_);
+ node_.end_offset_ = 40;
+ node_.pa_ = &arena_;
+ }
+};
+
+TEST_F(MetaIndexNodeSearchTest, ExactSearchFound) {
+ const std::string ret_entry_name("");
+ MetaIndexEntry ret_entry;
+ ret_entry.init(ret_entry_name, 0, arena_);
+ int64_t ret_offset = 0;
+ char search_name[] = "banana";
+ int result = node_.binary_search_children(common::String(search_name, 6),
+ true, ret_entry, ret_offset);
+ ASSERT_EQ(result, 0);
+ ASSERT_EQ(ret_offset, 30);
+}
+
+TEST_F(MetaIndexNodeSearchTest, ExactSearchNotFound) {
+ const std::string ret_entry_name("");
+ MetaIndexEntry ret_entry;
+ ret_entry.init(ret_entry_name, 0, arena_);
+ int64_t ret_offset = 0;
+ char search_name[] = "grape";
+ int result = node_.binary_search_children(common::String(search_name, 5),
+ true, ret_entry, ret_offset);
+ ASSERT_EQ(result, common::E_NOT_EXIST);
+}
+
+TEST_F(MetaIndexNodeSearchTest, NonExactSearchFound) {
+ const std::string ret_entry_name("");
+ MetaIndexEntry ret_entry;
+ ret_entry.init(ret_entry_name, 0, arena_);
+ int64_t ret_offset = 0;
+ char search_name[] = "blueberry";
+ int result = node_.binary_search_children(common::String(search_name, 9),
+ false, ret_entry, ret_offset);
+ ASSERT_EQ(result, 0);
+ ASSERT_EQ(ret_offset, 30);
+}
+
+TEST_F(MetaIndexNodeSearchTest, NonExactSearchNotFound) {
+ const std::string ret_entry_name("");
+ MetaIndexEntry ret_entry;
+ ret_entry.init(ret_entry_name, 0, arena_);
+ int64_t ret_offset = 0;
+ char search_name[] = "aardvark";
+ int result = node_.binary_search_children(common::String(search_name, 8),
+ false, ret_entry, ret_offset);
+ ASSERT_EQ(result, common::E_NOT_EXIST);
+}
+
+class TsFileMetaTest : public ::testing::Test {
+ protected:
+ common::PageArena pa_;
+ common::ByteStream* out_;
+ TsFileMeta meta_;
+
+ void SetUp() override {
+ out_ = new common::ByteStream(1024, common::MOD_DEFAULT);
+ }
+
+ void TearDown() override { delete out_; }
+};
+
+TEST_F(TsFileMetaTest, SerializeDeserialize) {
+ MetaIndexEntry* entry =
+ new (pa_.alloc(sizeof(MetaIndexEntry))) MetaIndexEntry;
+ entry->init("child_name", 123, pa_);
+ meta_.index_node_ =
+ new (pa_.alloc(sizeof(MetaIndexNode))) MetaIndexNode(&pa_);
+ meta_.index_node_->push_entry(entry);
+ meta_.meta_offset_ = 456;
+ meta_.bloom_filter_ = new BloomFilter();
+ meta_.bloom_filter_->init(0.1, 100);
+
+ ASSERT_EQ(meta_.serialize_to(*out_), common::E_OK);
+
+ TsFileMeta new_meta(&pa_);
+ new_meta.deserialize_from(*out_);
+ ASSERT_EQ(new_meta.meta_offset_, 456);
+
+ common::String name;
+ ASSERT_EQ(new_meta.index_node_->get_first_child_name(name), common::E_OK);
+}
+
+} // namespace storage
diff --git a/cpp/test/compress/lz4_compressor_test.cc b/cpp/test/compress/lz4_compressor_test.cc
new file mode 100644
index 00000000..b6174bfe
--- /dev/null
+++ b/cpp/test/compress/lz4_compressor_test.cc
@@ -0,0 +1,131 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "compress/lz4_compressor.h"
+
+#include <gtest/gtest.h>
+
+#include <chrono>
+#include <iostream>
+#include <random>
+#include <string>
+#include <vector>
+
+namespace {
+
+class LZ4Test : public ::testing::Test {
+ protected:
+ void SetUp() override {}
+
+ void TearDown() override {}
+
+ std::string RandomString(int length) {
+ std::string characters =
+ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
+ std::random_device rd;
+ std::mt19937 generator(rd());
+ std::uniform_int_distribution<> dis(33, 127);
+
+ std::string result;
+ result.reserve(length);
+ for (int i = 0; i < length; ++i) {
+ result.push_back(static_cast<char>(dis(generator)));
+ }
+ return result;
+ }
+};
+
+TEST_F(LZ4Test, TestBytes1) {
+ std::string input = RandomString(2000000);
+ std::vector<char> uncompressed(input.begin(), input.end());
+
+ storage::LZ4Compressor compressor;
+ compressor.reset(true);
+
+ char *compressed_buf = nullptr;
+ uint32_t compressed_buf_len = 0;
+ auto start_time = std::chrono::high_resolution_clock::now();
+ compressor.compress(uncompressed.data(), uncompressed.size(),
+ compressed_buf, compressed_buf_len);
+ auto end_time = std::chrono::high_resolution_clock::now();
+ auto compression_duration =
+ std::chrono::duration_cast<std::chrono::milliseconds>(end_time -
+ start_time)
+ .count();
+
+ std::cout << "Compression time cost: " << compression_duration << " ms"
+ << std::endl;
+ std::cout << "Ratio: "
+ << static_cast<double>(compressed_buf_len) / uncompressed.size()
+ << std::endl;
+
+ char *decompressed_buf = nullptr;
+ uint32_t decompressed_buf_len = uncompressed.size();
+ compressor.reset(false);
+ start_time = std::chrono::high_resolution_clock::now();
+ compressor.uncompress(compressed_buf, compressed_buf_len, decompressed_buf,
+ decompressed_buf_len);
+ end_time = std::chrono::high_resolution_clock::now();
+ auto decompression_duration =
+ std::chrono::duration_cast<std::chrono::milliseconds>(end_time -
+ start_time)
+ .count();
+
+ std::cout << "Decompression time cost: " << decompression_duration << " ms"
+ << std::endl;
+ std::vector<char> decompressed(decompressed_buf,
+ decompressed_buf + decompressed_buf_len);
+ EXPECT_EQ(uncompressed, decompressed);
+
+ compressor.after_compress(compressed_buf);
+ compressor.after_uncompress(decompressed_buf);
+}
+
+TEST_F(LZ4Test, TestBytes2) {
+ storage::LZ4Compressor compressor;
+
+ int n = 500000;
+ std::string input = RandomString(n);
+ std::vector<char> uncompressed(input.begin(), input.end());
+
+ char *compressed_buf = nullptr;
+ uint32_t compressed_buf_len = 0;
+ uint32_t compressed_buf_len_new = 0;
+ compressor.reset(true);
+ compressor.compress(uncompressed.data(), uncompressed.size(),
+ compressed_buf, compressed_buf_len);
+
+ compressor.compress(uncompressed.data(), uncompressed.size(),
+ compressed_buf, compressed_buf_len_new);
+ EXPECT_EQ(compressed_buf_len_new, compressed_buf_len);
+
+ char *decompressed_buf = nullptr;
+ uint32_t decompressed_buf_len = uncompressed.size();
+ compressor.reset(false);
+ compressor.uncompress(compressed_buf, compressed_buf_len, decompressed_buf,
+ decompressed_buf_len);
+
+ std::vector<char> decompressed(decompressed_buf,
+ decompressed_buf + decompressed_buf_len);
+ EXPECT_EQ(uncompressed, decompressed);
+
+ compressor.after_compress(compressed_buf);
+ compressor.after_uncompress(decompressed_buf);
+}
+
+} // namespace
diff --git a/cpp/test/encoding/bitpack_codec_test.cc b/cpp/test/encoding/bitpack_codec_test.cc
new file mode 100644
index 00000000..0f0168b0
--- /dev/null
+++ b/cpp/test/encoding/bitpack_codec_test.cc
@@ -0,0 +1,289 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include "encoding/bitpack_decoder.h"
+#include "encoding/bitpack_encoder.h"
+
+namespace storage {
+
+class BitPackEncoderTest : public ::testing::Test {};
+
+TEST_F(BitPackEncoderTest, EncodeInt32) {
+ BitPackEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+
+ int test_data[] = {5, 5, 5, 6, 6, 6, 6, 7, 7, 8, 9, 9, 9, 9, 9};
+ for (int value : test_data) {
+ encoder.encode(value, stream);
+ }
+ encoder.encode_flush(stream);
+
+ EXPECT_EQ(stream.total_size(), 12);
+
+ uint32_t want_len = 12, read_len;
+ uint8_t real_buf[12] = {};
+ stream.read_buf(real_buf, want_len, read_len);
+ EXPECT_EQ(want_len, read_len);
+ // Generated using Java Edition
+ uint8_t expected_buf[12] = {11, 4, 5, 7, 85, 86,
+ 102, 103, 120, 153, 153, 144};
+ for (int i = 0; i < 12; i++) {
+ EXPECT_EQ(real_buf[i], expected_buf[i]);
+ }
+}
+
+TEST_F(BitPackEncoderTest, EncodeInt64) {
+ BitPackEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+
+ int64_t test_data[] = {10L, 20L, 10L, 10L, 30L, 30L, 30L,
+ 20L, 20L, 10L, 10L, INT64_MAX, INT64_MIN};
+ for (int64_t value : test_data) {
+ encoder.encode(value, stream);
+ }
+ encoder.encode_flush(stream);
+
+ EXPECT_EQ(stream.total_size(), 133);
+
+ uint32_t want_len = 133, read_len;
+ uint8_t real_buf[133] = {0};
+ stream.read_buf(real_buf, want_len, read_len);
+
+ EXPECT_EQ(want_len, read_len);
+ // Generated using Java Edition
+ int8_t expected_buf[133] = {
+ -125, 1, 64, 5, 5, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0,
+ 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0,
+ 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0, 0,
+ 0, 30, 0, 0, 0, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0, 0, 0,
+ 20, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 10,
+ 0, 0, 0, 0, 0, 0, 0, 10, 127, -1, -1, -1, -1, -1, -1, -1, -128,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
+ for (int i = 0; i < 123; i++) {
+ EXPECT_EQ(real_buf[i], (uint8_t)expected_buf[i]);
+ }
+}
+
+TEST_F(BitPackEncoderTest, EncodeInt64Num1024) {
+ BitPackEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+
+ for (int64_t i = 0; i < 1024; i++) {
+ encoder.encode(i, stream);
+ }
+ encoder.encode_flush(stream);
+
+ EXPECT_EQ(stream.total_size(), 1289);
+
+ uint32_t want_len = 1289, read_len;
+ uint8_t real_buf[1289] = {0};
+ stream.read_buf(real_buf, want_len, read_len);
+
+ EXPECT_EQ(want_len, read_len);
+ // Generated using Java Edition
+ int8_t expected_buf[1289] = {
+ -121, 10, 10, 127, 8, 0, 0, 16, 8, 3, 1, 0,
+ 80, 24, 7, 2, 0, -112, 40, 11, 3, 0, -48, 56,
+ 15, 4, 1, 16, 72, 19, 5, 1, 80, 88, 23, 6,
+ 1, -112, 104, 27, 7, 1, -48, 120, 31, 8, 2, 16,
+ -120, 35, 9, 2, 80, -104, 39, 10, 2, -112, -88, 43,
+ 11, 2, -48, -72, 47, 12, 3, 16, -56, 51, 13, 3,
+ 80, -40, 55, 14, 3, -112, -24, 59, 15, 3, -48, -8,
+ 63, 16, 4, 17, 8, 67, 17, 4, 81, 24, 71, 18,
+ 4, -111, 40, 75, 19, 4, -47, 56, 79, 20, 5, 17,
+ 72, 83, 21, 5, 81, 88, 87, 22, 5, -111, 104, 91,
+ 23, 5, -47, 120, 95, 24, 6, 17, -120, 99, 25, 6,
+ 81, -104, 103, 26, 6, -111, -88, 107, 27, 6, -47, -72,
+ 111, 28, 7, 17, -56, 115, 29, 7, 81, -40, 119, 30,
+ 7, -111, -24, 123, 31, 7, -47, -8, 127, 32, 8, 18,
+ 8, -125, 33, 8, 82, 24, -121, 34, 8, -110, 40, -117,
+ 35, 8, -46, 56, -113, 36, 9, 18, 72, -109, 37, 9,
+ 82, 88, -105, 38, 9, -110, 104, -101, 39, 9, -46, 120,
+ -97, 40, 10, 18, -120, -93, 41, 10, 82, -104, -89, 42,
+ 10, -110, -88, -85, 43, 10, -46, -72, -81, 44, 11, 18,
+ -56, -77, 45, 11, 82, -40, -73, 46, 11, -110, -24, -69,
+ 47, 11, -46, -8, -65, 48, 12, 19, 8, -61, 49, 12,
+ 83, 24, -57, 50, 12, -109, 40, -53, 51, 12, -45, 56,
+ -49, 52, 13, 19, 72, -45, 53, 13, 83, 88, -41, 54,
+ 13, -109, 104, -37, 55, 13, -45, 120, -33, 56, 14, 19,
+ -120, -29, 57, 14, 83, -104, -25, 58, 14, -109, -88, -21,
+ 59, 14, -45, -72, -17, 60, 15, 19, -56, -13, 61, 15,
+ 83, -40, -9, 62, 15, -109, -24, -5, 63, 15, -45, -8,
+ -1, 64, 16, 20, 9, 3, 65, 16, 84, 25, 7, 66,
+ 16, -108, 41, 11, 67, 16, -44, 57, 15, 68, 17, 20,
+ 73, 19, 69, 17, 84, 89, 23, 70, 17, -108, 105, 27,
+ 71, 17, -44, 121, 31, 72, 18, 20, -119, 35, 73, 18,
+ 84, -103, 39, 74, 18, -108, -87, 43, 75, 18, -44, -71,
+ 47, 76, 19, 20, -55, 51, 77, 19, 84, -39, 55, 78,
+ 19, -108, -23, 59, 79, 19, -44, -7, 63, 80, 20, 21,
+ 9, 67, 81, 20, 85, 25, 71, 82, 20, -107, 41, 75,
+ 83, 20, -43, 57, 79, 84, 21, 21, 73, 83, 85, 21,
+ 85, 89, 87, 86, 21, -107, 105, 91, 87, 21, -43, 121,
+ 95, 88, 22, 21, -119, 99, 89, 22, 85, -103, 103, 90,
+ 22, -107, -87, 107, 91, 22, -43, -71, 111, 92, 23, 21,
+ -55, 115, 93, 23, 85, -39, 119, 94, 23, -107, -23, 123,
+ 95, 23, -43, -7, 127, 96, 24, 22, 9, -125, 97, 24,
+ 86, 25, -121, 98, 24, -106, 41, -117, 99, 24, -42, 57,
+ -113, 100, 25, 22, 73, -109, 101, 25, 86, 89, -105, 102,
+ 25, -106, 105, -101, 103, 25, -42, 121, -97, 104, 26, 22,
+ -119, -93, 105, 26, 86, -103, -89, 106, 26, -106, -87, -85,
+ 107, 26, -42, -71, -81, 108, 27, 22, -55, -77, 109, 27,
+ 86, -39, -73, 110, 27, -106, -23, -69, 111, 27, -42, -7,
+ -65, 112, 28, 23, 9, -61, 113, 28, 87, 25, -57, 114,
+ 28, -105, 41, -53, 115, 28, -41, 57, -49, 116, 29, 23,
+ 73, -45, 117, 29, 87, 89, -41, 118, 29, -105, 105, -37,
+ 119, 29, -41, 121, -33, 120, 30, 23, -119, -29, 121, 30,
+ 87, -103, -25, 122, 30, -105, -87, -21, 123, 30, -41, -71,
+ -17, 124, 31, 23, -55, -13, 125, 31, 87, -39, -9, 127,
+ 8, 126, 31, -105, -23, -5, 127, 31, -41, -7, -1, -128,
+ 32, 24, 10, 3, -127, 32, 88, 26, 7, -126, 32, -104,
+ 42, 11, -125, 32, -40, 58, 15, -124, 33, 24, 74, 19,
+ -123, 33, 88, 90, 23, -122, 33, -104, 106, 27, -121, 33,
+ -40, 122, 31, -120, 34, 24, -118, 35, -119, 34, 88, -102,
+ 39, -118, 34, -104, -86, 43, -117, 34, -40, -70, 47, -116,
+ 35, 24, -54, 51, -115, 35, 88, -38, 55, -114, 35, -104,
+ -22, 59, -113, 35, -40, -6, 63, -112, 36, 25, 10, 67,
+ -111, 36, 89, 26, 71, -110, 36, -103, 42, 75, -109, 36,
+ -39, 58, 79, -108, 37, 25, 74, 83, -107, 37, 89, 90,
+ 87, -106, 37, -103, 106, 91, -105, 37, -39, 122, 95, -104,
+ 38, 25, -118, 99, -103, 38, 89, -102, 103, -102, 38, -103,
+ -86, 107, -101, 38, -39, -70, 111, -100, 39, 25, -54, 115,
+ -99, 39, 89, -38, 119, -98, 39, -103, -22, 123, -97, 39,
+ -39, -6, 127, -96, 40, 26, 10, -125, -95, 40, 90, 26,
+ -121, -94, 40, -102, 42, -117, -93, 40, -38, 58, -113, -92,
+ 41, 26, 74, -109, -91, 41, 90, 90, -105, -90, 41, -102,
+ 106, -101, -89, 41, -38, 122, -97, -88, 42, 26, -118, -93,
+ -87, 42, 90, -102, -89, -86, 42, -102, -86, -85, -85, 42,
+ -38, -70, -81, -84, 43, 26, -54, -77, -83, 43, 90, -38,
+ -73, -82, 43, -102, -22, -69, -81, 43, -38, -6, -65, -80,
+ 44, 27, 10, -61, -79, 44, 91, 26, -57, -78, 44, -101,
+ 42, -53, -77, 44, -37, 58, -49, -76, 45, 27, 74, -45,
+ -75, 45, 91, 90, -41, -74, 45, -101, 106, -37, -73, 45,
+ -37, 122, -33, -72, 46, 27, -118, -29, -71, 46, 91, -102,
+ -25, -70, 46, -101, -86, -21, -69, 46, -37, -70, -17, -68,
+ 47, 27, -54, -13, -67, 47, 91, -38, -9, -66, 47, -101,
+ -22, -5, -65, 47, -37, -6, -1, -64, 48, 28, 11, 3,
+ -63, 48, 92, 27, 7, -62, 48, -100, 43, 11, -61, 48,
+ -36, 59, 15, -60, 49, 28, 75, 19, -59, 49, 92, 91,
+ 23, -58, 49, -100, 107, 27, -57, 49, -36, 123, 31, -56,
+ 50, 28, -117, 35, -55, 50, 92, -101, 39, -54, 50, -100,
+ -85, 43, -53, 50, -36, -69, 47, -52, 51, 28, -53, 51,
+ -51, 51, 92, -37, 55, -50, 51, -100, -21, 59, -49, 51,
+ -36, -5, 63, -48, 52, 29, 11, 67, -47, 52, 93, 27,
+ 71, -46, 52, -99, 43, 75, -45, 52, -35, 59, 79, -44,
+ 53, 29, 75, 83, -43, 53, 93, 91, 87, -42, 53, -99,
+ 107, 91, -41, 53, -35, 123, 95, -40, 54, 29, -117, 99,
+ -39, 54, 93, -101, 103, -38, 54, -99, -85, 107, -37, 54,
+ -35, -69, 111, -36, 55, 29, -53, 115, -35, 55, 93, -37,
+ 119, -34, 55, -99, -21, 123, -33, 55, -35, -5, 127, -32,
+ 56, 30, 11, -125, -31, 56, 94, 27, -121, -30, 56, -98,
+ 43, -117, -29, 56, -34, 59, -113, -28, 57, 30, 75, -109,
+ -27, 57, 94, 91, -105, -26, 57, -98, 107, -101, -25, 57,
+ -34, 123, -97, -24, 58, 30, -117, -93, -23, 58, 94, -101,
+ -89, -22, 58, -98, -85, -85, -21, 58, -34, -69, -81, -20,
+ 59, 30, -53, -77, -19, 59, 94, -37, -73, -18, 59, -98,
+ -21, -69, -17, 59, -34, -5, -65, -16, 60, 31, 11, -61,
+ -15, 60, 95, 27, -57, -14, 60, -97, 43, -53, -13, 60,
+ -33, 59, -49, -12, 61, 31, 75, -45, -11, 61, 95, 91,
+ -41, -10, 61, -97, 107, -37, -9, 61, -33, 123, -33, -8,
+ 62, 31, -117, -29, -7, 62, 95, -101, -25, -6, 62, -97,
+ -85, -21, -5, 62, -33, -69, -17, 5, 8, -4, 63, 31,
+ -53, -13, -3, 63, 95, -37, -9, -2, 63, -97, -21, -5,
+ -1, 63, -33, -5, -1};
+ for (int i = 0; i < 1289; i++) {
+ ASSERT_EQ(real_buf[i], (uint8_t)expected_buf[i]);
+ }
+}
+
+TEST_F(BitPackEncoderTest, EncodeFlush) {
+ BitPackEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+ encoder.encode(1, stream);
+ encoder.encode_flush(stream);
+ EXPECT_GT(stream.total_size(), 0);
+}
+
+TEST_F(BitPackEncoderTest, ClearBuffer) {
+ BitPackEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+ encoder.encode(1, stream);
+ encoder.clear_buffer();
+}
+
+TEST_F(BitPackEncoderTest, Flush) {
+ BitPackEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+ encoder.encode(1, stream);
+ encoder.flush(stream);
+ EXPECT_GT(stream.total_size(), 0);
+}
+
+class BitPackDecoderTest : public ::testing::Test {};
+
+TEST_F(BitPackDecoderTest, HasNext) {
+ BitPackDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+ bool result = decoder.has_next(stream);
+ EXPECT_FALSE(result);
+}
+
+TEST_F(BitPackDecoderTest, HasNextPackage) {
+ BitPackDecoder decoder;
+ bool result = decoder.has_next_package();
+ EXPECT_FALSE(result);
+}
+
+TEST_F(BitPackDecoderTest, ReadInt64) {
+ BitPackDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+ BitPackEncoder encoder;
+ for (int64_t i = 0; i < 1024; i++) {
+ encoder.encode(i, stream);
+ }
+ encoder.encode_flush(stream);
+
+ decoder.init();
+ for (int64_t i = 0; i < 1024; i++) {
+ ASSERT_EQ(i, decoder.read_int(stream));
+ }
+}
+
+TEST_F(BitPackDecoderTest, ReadInt64LargeQuantities) {
+ BitPackDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_ENCODER_OBJ);
+ BitPackEncoder encoder;
+ for (int64_t i = 0; i < 10000; i++) {
+ encoder.encode(i, stream);
+ }
+ encoder.encode_flush(stream);
+
+ decoder.init();
+ for (int64_t i = 0; i < 10000; i++) {
+ ASSERT_EQ(i, decoder.read_int(stream));
+ }
+}
+
+TEST_F(BitPackDecoderTest, Destroy) {
+ BitPackDecoder decoder;
+ decoder.destroy();
+}
+
+} // namespace storage
diff --git a/cpp/test/encoding/dictionary_codec_test.cc b/cpp/test/encoding/dictionary_codec_test.cc
new file mode 100644
index 00000000..f41fc2b5
--- /dev/null
+++ b/cpp/test/encoding/dictionary_codec_test.cc
@@ -0,0 +1,101 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include <string>
+#include <vector>
+
+#include "encoding/dictionary_decoder.h"
+#include "encoding/dictionary_encoder.h"
+
+namespace storage {
+
+class DictionaryTest : public ::testing::Test {};
+
+TEST_F(DictionaryTest, DictionaryEncoder) {
+ DictionaryEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_DICENCODE_OBJ);
+ encoder.init();
+ encoder.encode("apple", stream);
+ encoder.encode("banana", stream);
+ encoder.encode("cherry", stream);
+ encoder.encode("apple", stream);
+ encoder.flush(stream);
+
+ uint8_t buf[1024] = {0};
+ uint32_t want_len, read_len;
+ want_len = stream.total_size();
+ stream.read_buf(buf, want_len, read_len);
+ // Generated using Java Edition
+ uint8_t expected_buf[] = {6, 10, 97, 112, 112, 108, 101, 12, 98,
+ 97, 110, 97, 110, 97, 12, 99, 104, 101,
+ 114, 114, 121, 5, 2, 3, 4, 24, 0};
+ EXPECT_EQ(read_len, sizeof(expected_buf));
+
+ for (size_t i = 0; i < (size_t)sizeof(expected_buf); i++) {
+ EXPECT_EQ(expected_buf[i], buf[i]);
+ }
+}
+
+TEST_F(DictionaryTest, DictionaryEncoderAndDecoder) {
+ DictionaryEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_DICENCODE_OBJ);
+ encoder.init();
+
+ encoder.encode("apple", stream);
+ encoder.encode("banana", stream);
+ encoder.encode("cherry", stream);
+ encoder.encode("apple", stream);
+ encoder.flush(stream);
+
+ DictionaryDecoder decoder;
+ decoder.init();
+
+ ASSERT_TRUE(decoder.has_next(stream));
+ ASSERT_EQ(decoder.read_string(stream), "apple");
+
+ ASSERT_TRUE(decoder.has_next(stream));
+ ASSERT_EQ(decoder.read_string(stream), "banana");
+
+ ASSERT_TRUE(decoder.has_next(stream));
+ ASSERT_EQ(decoder.read_string(stream), "cherry");
+
+ ASSERT_TRUE(decoder.has_next(stream));
+ ASSERT_EQ(decoder.read_string(stream), "apple");
+}
+
+TEST_F(DictionaryTest, DictionaryEncoderAndDecoderLargeQuantities) {
+ DictionaryEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_DICENCODE_OBJ);
+ encoder.init();
+
+ for (int64_t value = 1; value < 10000; value++) {
+ encoder.encode(std::to_string(value), stream);
+ }
+ encoder.flush(stream);
+
+ DictionaryDecoder decoder;
+ decoder.init();
+
+ for (int64_t value = 1; value < 10000; value++) {
+ ASSERT_EQ(decoder.read_string(stream), std::to_string(value));
+ }
+}
+
+} // namespace storage
\ No newline at end of file
diff --git a/cpp/test/encoding/gorilla_codec_test.cc b/cpp/test/encoding/gorilla_codec_test.cc
new file mode 100644
index 00000000..6f685b44
--- /dev/null
+++ b/cpp/test/encoding/gorilla_codec_test.cc
@@ -0,0 +1,110 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include "encoding/gorilla_decoder.h"
+#include "encoding/gorilla_encoder.h"
+
+namespace storage {
+
+class GorillaCodecTest : public ::testing::Test {};
+
+TEST_F(GorillaCodecTest, BasicEncoding) {
+ storage::IntGorillaEncoder int_encoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ int32_t data[] = {100, 102, 105, 107, 110, 115, 120, 1000000, 1000005};
+ for (int32_t value : data) {
+ EXPECT_EQ(int_encoder.encode(value, stream), common::E_OK);
+ }
+ int_encoder.flush(stream);
+
+ ASSERT_EQ(stream.total_size(), 24);
+
+ uint32_t want_len = 24, read_len;
+ uint8_t real_buf[24] = {};
+ stream.read_buf(real_buf, want_len, read_len);
+ EXPECT_EQ(want_len, read_len);
+ // Generated using Java Edition
+ uint8_t expected_buf[] = {0, 0, 0, 100, 252, 15, 193, 252,
+ 82, 251, 39, 101, 236, 135, 161, 31,
+ 232, 174, 15, 192, 7, 161, 34, 128};
+ for (int i = 0; i < 24; i++) {
+ EXPECT_EQ(real_buf[i], expected_buf[i]);
+ }
+}
+
+TEST_F(GorillaCodecTest, Int32EncodingDecoding) {
+ storage::IntGorillaEncoder int_encoder;
+ storage::IntGorillaDecoder int_decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ int32_t data[] = {100, 102, 105, 107, 110, 115, 120, 1000000, 1000005};
+ for (int32_t value : data) {
+ EXPECT_EQ(int_encoder.encode(value, stream), common::E_OK);
+ }
+ int_encoder.flush(stream);
+
+ for (int i = 0; i < (int)(sizeof(data) / sizeof(int32_t)); i++) {
+ EXPECT_EQ(data[i], int_decoder.decode(stream));
+ }
+}
+
+TEST_F(GorillaCodecTest, Int32EncodingDecodingLargeQuantities) {
+ storage::IntGorillaEncoder int_encoder;
+ storage::IntGorillaDecoder int_decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ for (int32_t value = 0; value < 10000; value++) {
+ EXPECT_EQ(int_encoder.encode(value, stream), common::E_OK);
+ }
+ int_encoder.flush(stream);
+
+ for (int32_t value = 0; value < 10000; value++) {
+ EXPECT_EQ(value, int_decoder.decode(stream));
+ }
+}
+
+TEST_F(GorillaCodecTest, Int64EncodingDecoding) {
+ storage::LongGorillaEncoder long_encoder;
+ storage::LongGorillaDecoder long_decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ int64_t data[] = {100, 102, 105, 107, 110, 115, 120, 1000000, 1000005};
+ for (int64_t value : data) {
+ EXPECT_EQ(long_encoder.encode(value, stream), common::E_OK);
+ }
+ long_encoder.flush(stream);
+
+ for (int i = 0; i < (int)(sizeof(data) / sizeof(int64_t)); i++) {
+ EXPECT_EQ(data[i], long_decoder.decode(stream));
+ }
+}
+
+TEST_F(GorillaCodecTest, Int64EncodingDecodingLargeQuantities) {
+ storage::LongGorillaEncoder long_encoder;
+ storage::LongGorillaDecoder long_decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ for (int64_t value = 0; value < 10000; value++) {
+ EXPECT_EQ(long_encoder.encode(value, stream), common::E_OK);
+ }
+ long_encoder.flush(stream);
+
+ for (int64_t value = 0; value < 10000; value++) {
+ EXPECT_EQ(value, long_decoder.decode(stream));
+ }
+}
+
+} // namespace storage
diff --git a/cpp/test/encoding/inpacker_test.cc b/cpp/test/encoding/inpacker_test.cc
new file mode 100644
index 00000000..432585c6
--- /dev/null
+++ b/cpp/test/encoding/inpacker_test.cc
@@ -0,0 +1,57 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include <bitset>
+
+#include "encoding/intpacker.h"
+
+namespace storage {
+
+TEST(IntPackerTest, Pack8Values) {
+ IntPacker int_packer(10);
+ int64_t values[NUM_OF_INTS] = {100, 200, 300, 400, 500, 600, 700, 800};
+ unsigned char buf[10 * NUM_OF_INTS / 8] = {0};
+
+ int_packer.pack_8values(values, 0, buf);
+
+ // Generated using Java Edition
+ unsigned char expected_buf[10 * NUM_OF_INTS / 8] = {25, 12, 132, 177, 144,
+ 125, 37, 138, 243, 32};
+ for (int i = 0; i < 10 * NUM_OF_INTS / 8; i++) {
+ EXPECT_EQ(buf[i], expected_buf[i]);
+ }
+}
+
+TEST(IntPackerTest, Unpack8Values) {
+ IntPacker int_packer(10);
+ unsigned char buf[4 * NUM_OF_INTS] = {25, 12, 132, 177, 144,
+ 125, 37, 138, 243, 32};
+ int64_t values[NUM_OF_INTS] = {0};
+
+ int_packer.unpack_8values(buf, 0, values);
+
+ // Generated using Java Edition
+ int expected_values[NUM_OF_INTS] = {100, 200, 300, 400, 500, 600, 700, 800};
+ for (int i = 0; i < NUM_OF_INTS; i++) {
+ EXPECT_EQ(values[i], expected_values[i]);
+ }
+}
+
+} // namespace storage
\ No newline at end of file
diff --git a/cpp/test/encoding/plain_codec_test.cc b/cpp/test/encoding/plain_codec_test.cc
new file mode 100644
index 00000000..0c46d944
--- /dev/null
+++ b/cpp/test/encoding/plain_codec_test.cc
@@ -0,0 +1,91 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include "encoding/plain_decoder.h"
+#include "encoding/plain_encoder.h"
+
+namespace storage {
+
+TEST(PlainEncoderDecoderTest, EncodeDecodeBool) {
+ PlainEncoder encoder;
+ PlainDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ bool original = true;
+ bool decoded = false;
+
+ encoder.encode(original, stream);
+ decoder.read_boolean(decoded, stream);
+
+ EXPECT_EQ(original, decoded);
+}
+
+TEST(PlainEncoderDecoderTest, EncodeDecodeInt32) {
+ PlainEncoder encoder;
+ PlainDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ int32_t original = 12345;
+ int32_t decoded = 0;
+
+ encoder.encode(original, stream);
+ decoder.read_int32(decoded, stream);
+
+ EXPECT_EQ(original, decoded);
+}
+
+TEST(PlainEncoderDecoderTest, EncodeDecodeInt64) {
+ PlainEncoder encoder;
+ PlainDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ int64_t original = 123456789012345LL;
+ int64_t decoded = 0;
+
+ encoder.encode(original, stream);
+ decoder.read_int64(decoded, stream);
+
+ EXPECT_EQ(original, decoded);
+}
+
+TEST(PlainEncoderDecoderTest, EncodeDecodeFloat) {
+ PlainEncoder encoder;
+ PlainDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ float original = 123.45f;
+ float decoded = 0.0f;
+
+ encoder.encode(original, stream);
+ decoder.read_float(decoded, stream);
+
+ EXPECT_FLOAT_EQ(original, decoded);
+}
+
+TEST(PlainEncoderDecoderTest, EncodeDecodeDouble) {
+ PlainEncoder encoder;
+ PlainDecoder decoder;
+ common::ByteStream stream(1024, common::MOD_DEFAULT);
+ double original = 123.456789;
+ double decoded = 0.0;
+
+ encoder.encode(original, stream);
+ decoder.read_double(decoded, stream);
+
+ EXPECT_DOUBLE_EQ(original, decoded);
+}
+
+} // end namespace storage
\ No newline at end of file
diff --git a/cpp/test/encoding/ts2diff_codec_test.cc b/cpp/test/encoding/ts2diff_codec_test.cc
new file mode 100644
index 00000000..f6ec68b7
--- /dev/null
+++ b/cpp/test/encoding/ts2diff_codec_test.cc
@@ -0,0 +1,92 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include <bitset>
+
+#include "encoding/ts2diff_decoder.h"
+#include "encoding/ts2diff_encoder.h"
+
+namespace storage {
+
+class TS2DIFFCodecTest : public ::testing::Test {
+ protected:
+ void SetUp() override {
+ encoder_int_ = new IntTS2DIFFEncoder();
+ encoder_long_ = new LongTS2DIFFEncoder();
+ decoder_int_ = new IntTS2DIFFDecoder();
+ decoder_long_ = new LongTS2DIFFDecoder();
+ }
+
+ void TearDown() override {
+ delete encoder_int_;
+ delete encoder_long_;
+ delete decoder_int_;
+ delete decoder_long_;
+ }
+
+ IntTS2DIFFEncoder* encoder_int_;
+ LongTS2DIFFEncoder* encoder_long_;
+ IntTS2DIFFDecoder* decoder_int_;
+ LongTS2DIFFDecoder* decoder_long_;
+};
+
+TEST_F(TS2DIFFCodecTest, TestIntEncoding) {
+ common::ByteStream out_stream(1024, common::MOD_TS2DIFF_OBJ, false);
+ const int row_num = 10000;
+ int32_t data[row_num];
+ memset(data, 0, sizeof(int32_t) * row_num);
+ for (int i = 0; i < row_num; i++) {
+ data[i] = i * i;
+ }
+
+ for (int i = 0; i < row_num; i++) {
+ EXPECT_EQ(encoder_int_->encode(data[i], out_stream), common::E_OK);
+ }
+ EXPECT_EQ(encoder_int_->flush(out_stream), common::E_OK);
+
+ int32_t x;
+ for (int i = 0; i < row_num; i++) {
+ EXPECT_EQ(decoder_int_->read_int32(x, out_stream), common::E_OK);
+ EXPECT_EQ(x, data[i]);
+ }
+}
+
+TEST_F(TS2DIFFCodecTest, TestLongEncoding) {
+ common::ByteStream out_stream(1024, common::MOD_TS2DIFF_OBJ, false);
+ const int row_num = 10000;
+ int64_t data[row_num];
+ memset(data, 0, sizeof(int64_t) * row_num);
+ for (int i = 0; i < row_num; i++) {
+ data[i] = i * i;
+ }
+
+ for (int i = 0; i < row_num; i++) {
+ EXPECT_EQ(encoder_long_->encode(data[i], out_stream), common::E_OK);
+ }
+ EXPECT_EQ(encoder_long_->flush(out_stream), common::E_OK);
+
+ int64_t x;
+ for (int i = 0; i < row_num; i++) {
+ EXPECT_EQ(decoder_long_->read_int64(x, out_stream), common::E_OK);
+ EXPECT_EQ(x, data[i]);
+ }
+}
+
+} // namespace storage
diff --git a/cpp/test/encoding/zigzag_codec_test.cc b/cpp/test/encoding/zigzag_codec_test.cc
new file mode 100644
index 00000000..65dac5e3
--- /dev/null
+++ b/cpp/test/encoding/zigzag_codec_test.cc
@@ -0,0 +1,136 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include <gtest/gtest.h>
+
+#include "encoding/zigzag_decoder.h"
+#include "encoding/zigzag_encoder.h"
+
+namespace storage {
+
+class ZigzagEncoderTest : public ::testing::Test {};
+
+TEST_F(ZigzagEncoderTest, EncodeInt32) {
+ IntZigzagEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ZIGZAG_OBJ);
+ int data[] = {1, -1, 12345, -12345, 0, INT32_MAX, INT32_MIN};
+ for (auto value : data) {
+ EXPECT_EQ(encoder.encode(value), common::E_OK);
+ }
+ encoder.flush(stream);
+
+ ASSERT_GT(stream.total_size(), 0);
+
+ uint32_t want_len = 21, read_len;
+ uint8_t real_buf[21] = {};
+ stream.read_buf(real_buf, want_len, read_len);
+ EXPECT_EQ(want_len, read_len);
+ // Generated using Java Edition
+ uint8_t expected_buf[] = {19, 7, 2, 1, 242, 192, 1, 241, 192, 1, 0,
+ 254, 255, 255, 255, 15, 255, 255, 255, 255, 15};
+ for (int i = 0; i < 21; i++) {
+ EXPECT_EQ(real_buf[i], expected_buf[i]);
+ }
+}
+
+TEST_F(ZigzagEncoderTest, EncodeInt64) {
+ LongZigzagEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ZIGZAG_OBJ);
+ int64_t data[] = {1, -1, 12345, -12345, 0, INT64_MAX, INT64_MIN};
+ for (auto value : data) {
+ EXPECT_EQ(encoder.encode(value), common::E_OK);
+ }
+ encoder.flush(stream);
+
+ ASSERT_GT(stream.total_size(), 0);
+
+ uint32_t want_len = 31, read_len;
+ uint8_t real_buf[31] = {};
+ stream.read_buf(real_buf, want_len, read_len);
+ EXPECT_EQ(want_len, read_len);
+ // Generated using Java Edition
+ uint8_t expected_buf[] = {29, 7, 2, 1, 242, 192, 1, 241,
+ 192, 1, 0, 254, 255, 255, 255, 255,
+ 255, 255, 255, 255, 1, 255, 255, 255,
+ 255, 255, 255, 255, 255, 255, 1};
+ for (int i = 0; i < 31; i++) {
+ EXPECT_EQ(real_buf[i], expected_buf[i]);
+ }
+}
+
+class ZigzagDecoderTest : public ::testing::Test {};
+
+TEST_F(ZigzagDecoderTest, DecodeInt32) {
+ IntZigzagEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ZIGZAG_OBJ);
+ int32_t data[] = {1, -1, 12345, -12345, 0, INT32_MAX, INT32_MIN};
+ for (auto value : data) {
+ EXPECT_EQ(encoder.encode(value), common::E_OK);
+ }
+ encoder.flush(stream);
+
+ IntZigzagDecoder decoder;
+ for (int i = 0; i < (int)(sizeof(data) / sizeof(int32_t)); i++) {
+ EXPECT_EQ(data[i], decoder.decode(stream));
+ }
+}
+
+TEST_F(ZigzagDecoderTest, DecodeInt64) {
+ LongZigzagEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ZIGZAG_OBJ);
+ int64_t data[] = {1, -1, 12345, -12345, 0, INT64_MAX, INT64_MIN};
+ for (auto value : data) {
+ EXPECT_EQ(encoder.encode(value), common::E_OK);
+ }
+ encoder.flush(stream);
+
+ LongZigzagDecoder decoder;
+ for (int i = 0; i < (int)(sizeof(data) / sizeof(int64_t)); i++) {
+ EXPECT_EQ(data[i], decoder.decode(stream));
+ }
+}
+
+TEST_F(ZigzagDecoderTest, DecodeInt32LargeQuantities) {
+ IntZigzagEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ZIGZAG_OBJ);
+ for (int32_t value = 0; value < 20000; value++) {
+ EXPECT_EQ(encoder.encode(value), common::E_OK);
+ }
+ encoder.flush(stream);
+
+ IntZigzagDecoder decoder;
+ for (int32_t value = 0; value < 20000; value++) {
+ EXPECT_EQ(value, decoder.decode(stream));
+ }
+}
+
+TEST_F(ZigzagDecoderTest, DecodeInt64LargeQuantities) {
+ LongZigzagEncoder encoder;
+ common::ByteStream stream(1024, common::MOD_ZIGZAG_OBJ);
+ for (int64_t value = 0; value < 50000; value++) {
+ EXPECT_EQ(encoder.encode(value), common::E_OK);
+ }
+ encoder.flush(stream);
+
+ LongZigzagDecoder decoder;
+ for (int64_t value = 0; value < 50000; value++) {
+ EXPECT_EQ(value, decoder.decode(stream));
+ }
+}
+
+} // namespace storage
diff --git a/cpp/test/file/open_file_test.cc b/cpp/test/file/open_file_test.cc
new file mode 100644
index 00000000..53125cd8
--- /dev/null
+++ b/cpp/test/file/open_file_test.cc
@@ -0,0 +1,113 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "file/open_file.h"
+
+#include <gtest/gtest.h>
+
+#include <string>
+#include <vector>
+
+namespace storage {
+
+class OpenFileTest : public ::testing::Test {
+ protected:
+ void SetUp() override {
+ open_file_ = OpenFileFactory::alloc();
+ open_file_->init();
+ }
+
+ void TearDown() override {
+ open_file_->reset();
+ OpenFileFactory::free(open_file_);
+ }
+
+ OpenFile* open_file_;
+};
+
+TEST_F(OpenFileTest, Initialization) {
+ ASSERT_NE(open_file_, nullptr);
+ EXPECT_EQ(open_file_->init(), common::E_OK);
+}
+
+TEST_F(OpenFileTest, SetFileIdAndPath) {
+ common::FileID file_id;
+ file_id.seq_ = 1;
+ std::string file_path = "/path/to/file";
+ open_file_->set_file_id_and_path(file_id, file_path);
+
+ EXPECT_EQ(open_file_->get_file_id(), file_id);
+ EXPECT_EQ(open_file_->get_file_path(), file_path);
+}
+
+TEST_F(OpenFileTest, BuildFrom) {
+ std::vector<TimeseriesTimeIndexEntry> time_index_vec = {
+ {common::TsID(1, 1, 1), TimeRange{10, 20}},
+ {common::TsID(2, 2, 2), TimeRange{30, 40}}};
+
+ EXPECT_EQ(open_file_->build_from(time_index_vec), common::E_OK);
+
+ TimeRange time_range;
+ EXPECT_EQ(open_file_->get_time_range(common::TsID(1, 1, 1), time_range),
+ common::E_OK);
+ EXPECT_EQ(time_range.start_time_, 10);
+ EXPECT_EQ(time_range.end_time_, 20);
+
+ EXPECT_EQ(open_file_->get_time_range(common::TsID(2, 2, 2), time_range),
+ common::E_OK);
+ EXPECT_EQ(time_range.start_time_, 30);
+ EXPECT_EQ(time_range.end_time_, 40);
+}
+
+TEST_F(OpenFileTest, Add) {
+ TimeRange time_range{50, 60};
+ common::TsID ts_id(1, 1, 1);
+
+ EXPECT_EQ(open_file_->add(ts_id, time_range), common::E_OK);
+
+ TimeRange ret_time_range;
+ EXPECT_EQ(open_file_->get_time_range(ts_id, ret_time_range), common::E_OK);
+ EXPECT_EQ(ret_time_range.start_time_, 50);
+ EXPECT_EQ(ret_time_range.end_time_, 60);
+}
+
+TEST_F(OpenFileTest, ContainTimeseries) {
+ TimeRange time_range{90, 100};
+ common::TsID ts_id(1, 1, 1);
+
+ open_file_->add(ts_id, time_range);
+ EXPECT_TRUE(open_file_->contain_timeseries(ts_id));
+ EXPECT_FALSE(open_file_->contain_timeseries(common::TsID(2, 2, 2)));
+}
+
+TEST_F(OpenFileTest, GetTimeRange) {
+ TimeRange time_range{110, 120};
+ common::TsID ts_id(1, 1, 1);
+
+ open_file_->add(ts_id, time_range);
+
+ TimeRange ret_time_range;
+ EXPECT_EQ(open_file_->get_time_range(ts_id, ret_time_range), common::E_OK);
+ EXPECT_EQ(ret_time_range.start_time_, 110);
+ EXPECT_EQ(ret_time_range.end_time_, 120);
+
+ EXPECT_EQ(open_file_->get_time_range(common::TsID(2, 2, 2), ret_time_range),
+ common::E_NOT_EXIST);
+}
+
+} // namespace storage
\ No newline at end of file
diff --git a/cpp/test/file/write_file_test.cc b/cpp/test/file/write_file_test.cc
new file mode 100644
index 00000000..7a6c9047
--- /dev/null
+++ b/cpp/test/file/write_file_test.cc
@@ -0,0 +1,107 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "file/write_file.h"
+
+#include <fcntl.h>
+#include <gtest/gtest.h>
+
+#include <fstream>
+
+using namespace storage;
+using namespace common;
+
+class WriteFileTest : public ::testing::Test {};
+
+TEST_F(WriteFileTest, CreateFile) {
+ WriteFile write_file;
+ std::string file_name = "write_file_test.dat";
+
+ remove(file_name.c_str());
+
+ int flags = O_WRONLY | O_CREAT | O_TRUNC;
+ mode_t mode = 0666;
+ EXPECT_EQ(write_file.create(file_name, flags, mode), E_OK);
+ EXPECT_TRUE(write_file.file_opened());
+ EXPECT_EQ(write_file.get_file_path(), file_name);
+
+ write_file.close();
+ remove(file_name.c_str());
+}
+
+TEST_F(WriteFileTest, WriteToFile) {
+ WriteFile write_file;
+ std::string file_name = "test_file_write.dat";
+
+ remove(file_name.c_str());
+
+ int flags = O_WRONLY | O_CREAT | O_TRUNC;
+ mode_t mode = 0666;
+ EXPECT_EQ(write_file.create(file_name, flags, mode), E_OK);
+ EXPECT_TRUE(write_file.file_opened());
+
+ const char *content = "Hello, World!";
+ uint32_t content_len = strlen(content);
+ EXPECT_EQ(write_file.write(content, content_len), E_OK);
+
+ write_file.close();
+
+ std::ifstream file(file_name);
+ std::string file_content((std::istreambuf_iterator<char>(file)),
+ std::istreambuf_iterator<char>());
+ EXPECT_EQ(file_content, content);
+
+ remove(file_name.c_str());
+}
+
+TEST_F(WriteFileTest, SyncFile) {
+ WriteFile write_file;
+ std::string file_name = "test_file_sync.dat";
+
+ remove(file_name.c_str());
+
+ int flags = O_WRONLY | O_CREAT | O_TRUNC;
+ mode_t mode = 0666;
+ EXPECT_EQ(write_file.create(file_name, flags, mode), E_OK);
+ EXPECT_TRUE(write_file.file_opened());
+
+ const char *content = "Hello, Sync!";
+ uint32_t content_len = strlen(content);
+ EXPECT_EQ(write_file.write(content, content_len), E_OK);
+ EXPECT_EQ(write_file.sync(), E_OK);
+
+ write_file.close();
+ remove(file_name.c_str());
+}
+
+TEST_F(WriteFileTest, CloseFile) {
+ WriteFile write_file;
+ std::string file_name = "test_file_close.dat";
+
+ remove(file_name.c_str());
+
+ int flags = O_WRONLY | O_CREAT | O_TRUNC;
+ mode_t mode = 0666;
+ EXPECT_EQ(write_file.create(file_name, flags, mode), E_OK);
+ EXPECT_TRUE(write_file.file_opened());
+
+ const char *content = "Closing file.";
+ uint32_t content_len = strlen(content);
+ EXPECT_EQ(write_file.write(content, content_len), E_OK);
+ EXPECT_EQ(write_file.close(), E_OK);
+}
diff --git a/cpp/test/utils/db_utils_test.cc b/cpp/test/utils/db_utils_test.cc
new file mode 100644
index 00000000..7dae7457
--- /dev/null
+++ b/cpp/test/utils/db_utils_test.cc
@@ -0,0 +1,218 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "utils/db_utils.h"
+
+#include <gtest/gtest.h>
+
+#include <sstream>
+
+namespace common {
+
+TEST(FileIDTest, Constructor) {
+ FileID file_id;
+ EXPECT_EQ(file_id.seq_, 0);
+ EXPECT_EQ(file_id.version_, 0);
+ EXPECT_EQ(file_id.merge_, 0);
+}
+
+TEST(FileIDTest, Reset) {
+ FileID file_id;
+ file_id.seq_ = 123;
+ file_id.version_ = 1;
+ file_id.merge_ = 2;
+ file_id.reset();
+ EXPECT_EQ(file_id.seq_, 0);
+ EXPECT_EQ(file_id.version_, 0);
+ EXPECT_EQ(file_id.merge_, 0);
+}
+
+TEST(FileIDTest, IsValid) {
+ FileID file_id;
+ EXPECT_FALSE(file_id.is_valid());
+ file_id.seq_ = 123;
+ EXPECT_TRUE(file_id.is_valid());
+}
+
+TEST(FileIDTest, OperatorLess) {
+ FileID file_id1, file_id2;
+ file_id1.seq_ = 123;
+ file_id2.seq_ = 456;
+ EXPECT_TRUE(file_id1 < file_id2);
+ EXPECT_FALSE(file_id2 < file_id1);
+}
+
+TEST(FileIDTest, OperatorEqual) {
+ FileID file_id1, file_id2;
+ file_id1.seq_ = 123;
+ file_id2.seq_ = 123;
+ EXPECT_TRUE(file_id1 == file_id2);
+ file_id2.seq_ = 456;
+ EXPECT_FALSE(file_id1 == file_id2);
+}
+
+TEST(TsIDTest, Constructor) {
+ TsID ts_id;
+ EXPECT_EQ(ts_id.db_nid_, 0);
+ EXPECT_EQ(ts_id.device_nid_, 0);
+ EXPECT_EQ(ts_id.measurement_nid_, 0);
+}
+
+TEST(TsIDTest, ParameterizedConstructor) {
+ TsID ts_id(1, 2, 3);
+ EXPECT_EQ(ts_id.db_nid_, 1);
+ EXPECT_EQ(ts_id.device_nid_, 2);
+ EXPECT_EQ(ts_id.measurement_nid_, 3);
+}
+
+TEST(TsIDTest, Reset) {
+ TsID ts_id(1, 2, 3);
+ ts_id.reset();
+ EXPECT_EQ(ts_id.db_nid_, 0);
+ EXPECT_EQ(ts_id.device_nid_, 0);
+ EXPECT_EQ(ts_id.measurement_nid_, 0);
+}
+
+TEST(TsIDTest, OperatorEqual) {
+ TsID ts_id1(1, 2, 3);
+ TsID ts_id2(1, 2, 3);
+ EXPECT_TRUE(ts_id1 == ts_id2);
+ ts_id2.db_nid_ = 4;
+ EXPECT_FALSE(ts_id1 == ts_id2);
+}
+
+TEST(TsIDTest, OperatorNotEqual) {
+ TsID ts_id1(1, 2, 3);
+ TsID ts_id2(1, 2, 3);
+ EXPECT_FALSE(ts_id1 != ts_id2);
+ ts_id2.db_nid_ = 4;
+ EXPECT_TRUE(ts_id1 != ts_id2);
+}
+
+TEST(TsIDTest, ToInt64) {
+ TsID ts_id(1, 2, 3);
+ int64_t expected = (1LL << 32) | (2 << 16) | 3;
+ EXPECT_EQ(ts_id.to_int64(), expected);
+}
+
+TEST(TsIDTest, OperatorLess) {
+ TsID ts_id1(1, 2, 3);
+ TsID ts_id2(1, 2, 4);
+ EXPECT_TRUE(ts_id1 < ts_id2);
+ EXPECT_FALSE(ts_id2 < ts_id1);
+}
+
+TEST(DeviceIDTest, Constructor) {
+ DeviceID device_id;
+ EXPECT_EQ(device_id.db_nid_, 0);
+ EXPECT_EQ(device_id.device_nid_, 0);
+}
+
+TEST(DeviceIDTest, ParameterizedConstructor) {
+ DeviceID device_id(1, 2);
+ EXPECT_EQ(device_id.db_nid_, 1);
+ EXPECT_EQ(device_id.device_nid_, 2);
+}
+
+TEST(DeviceIDTest, TsIDConstructor) {
+ TsID ts_id(1, 2, 3);
+ DeviceID device_id(ts_id);
+ EXPECT_EQ(device_id.db_nid_, 1);
+ EXPECT_EQ(device_id.device_nid_, 2);
+}
+
+TEST(DeviceIDTest, OperatorEqual) {
+ DeviceID device_id1(1, 2);
+ DeviceID device_id2(1, 2);
+ EXPECT_TRUE(device_id1 == device_id2);
+ device_id2.db_nid_ = 3;
+ EXPECT_FALSE(device_id1 == device_id2);
+}
+
+TEST(DeviceIDTest, OperatorNotEqual) {
+ DeviceID device_id1(1, 2);
+ DeviceID device_id2(1, 2);
+ EXPECT_FALSE(device_id1 != device_id2);
+ device_id2.db_nid_ = 3;
+ EXPECT_TRUE(device_id1 != device_id2);
+}
+
+TEST(DatabaseDescTest, Constructor) {
+ DatabaseDesc db_desc;
+ EXPECT_EQ(db_desc.ttl_, INVALID_TTL);
+ EXPECT_EQ(db_desc.db_name_, "");
+ EXPECT_EQ(db_desc.ts_id_.db_nid_, 0);
+}
+
+TEST(DatabaseDescTest, ParameterizedConstructor) {
+ TsID ts_id(1, 2, 3);
+ DatabaseDesc db_desc(1000, "test_db", ts_id);
+ EXPECT_EQ(db_desc.ttl_, 1000);
+ EXPECT_EQ(db_desc.db_name_, "test_db");
+ EXPECT_EQ(db_desc.ts_id_, ts_id);
+}
+
+TEST(ColumnDescTest, Constructor) {
+ ColumnDesc col_desc;
+ EXPECT_EQ(col_desc.type_, INVALID_DATATYPE);
+ EXPECT_EQ(col_desc.encoding_, PLAIN);
+ EXPECT_EQ(col_desc.compression_, UNCOMPRESSED);
+ EXPECT_EQ(col_desc.ttl_, INVALID_TTL);
+ EXPECT_EQ(col_desc.column_name_, "");
+ EXPECT_EQ(col_desc.ts_id_.db_nid_, 0);
+}
+
+TEST(ColumnDescTest, ParameterizedConstructor) {
+ TsID ts_id(1, 2, 3);
+ ColumnDesc col_desc(INT32, RLE, SNAPPY, 1000, "test_col", ts_id);
+ EXPECT_EQ(col_desc.type_, INT32);
+ EXPECT_EQ(col_desc.encoding_, RLE);
+ EXPECT_EQ(col_desc.compression_, SNAPPY);
+ EXPECT_EQ(col_desc.ttl_, 1000);
+ EXPECT_EQ(col_desc.column_name_, "test_col");
+ EXPECT_EQ(col_desc.ts_id_, ts_id);
+}
+
+TEST(ColumnDescTest, OperatorEqual) {
+ TsID ts_id(1, 2, 3);
+ ColumnDesc col_desc1(INT32, RLE, SNAPPY, 1000, "test_col", ts_id);
+ ColumnDesc col_desc2(INT32, RLE, SNAPPY, 1000, "test_col", ts_id);
+ EXPECT_TRUE(col_desc1 == col_desc2);
+}
+
+TEST(ColumnDescTest, OperatorNotEqual) {
+ TsID ts_id(1, 2, 3);
+ ColumnDesc col_desc1(INT32, RLE, SNAPPY, 1000, "test_col", ts_id);
+ ColumnDesc col_desc2(INT32, RLE, SNAPPY, 1000, "test_col2", ts_id);
+ EXPECT_TRUE(col_desc1 != col_desc2);
+}
+
+TEST(ColumnDescTest, IsValid) {
+ TsID ts_id(1, 2, 3);
+ ColumnDesc col_desc(INT32, RLE, SNAPPY, 1000, "test_col", ts_id);
+ EXPECT_TRUE(col_desc.is_valid());
+ col_desc.type_ = INVALID_DATATYPE;
+ EXPECT_FALSE(col_desc.is_valid());
+}
+
+TEST(UtilTest, GetCurTimestamp) {
+ int64_t timestamp = get_cur_timestamp();
+ EXPECT_GT(timestamp, 0);
+}
+
+} // namespace common
diff --git a/cpp/test/writer/chunk_writer_test.cc b/cpp/test/writer/chunk_writer_test.cc
new file mode 100644
index 00000000..c43853e0
--- /dev/null
+++ b/cpp/test/writer/chunk_writer_test.cc
@@ -0,0 +1,99 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "writer/chunk_writer.h"
+
+#include <gtest/gtest.h>
+
+#include "common/allocator/byte_stream.h"
+#include "common/config/config.h"
+#include "common/statistic.h"
+#include "compress/compressor.h"
+#include "encoding/encoder.h"
+
+using namespace storage;
+using namespace common;
+
+class ChunkWriterTest : public ::testing::Test {
+ protected:
+ ChunkWriter chunkWriter;
+ ColumnDesc colDesc;
+
+ void SetUp() override {
+ colDesc.column_name_ = "test_measurement";
+ colDesc.type_ = TSDataType::DOUBLE;
+ colDesc.encoding_ = TSEncoding::PLAIN;
+ colDesc.compression_ = CompressionType::UNCOMPRESSED;
+
+ ASSERT_EQ(chunkWriter.init(colDesc), E_OK);
+ }
+
+ void TearDown() override { chunkWriter.destroy(); }
+};
+
+TEST_F(ChunkWriterTest, InitWithColumnDesc) {
+ EXPECT_EQ(chunkWriter.init(colDesc), E_OK);
+}
+
+TEST_F(ChunkWriterTest, InitWithParameters) {
+ ChunkWriter writer;
+ EXPECT_EQ(writer.init("test_measurement", TSDataType::DOUBLE,
+ TSEncoding::PLAIN, CompressionType::UNCOMPRESSED),
+ E_OK);
+ writer.destroy();
+}
+
+TEST_F(ChunkWriterTest, WriteBoolean) {
+ EXPECT_EQ(chunkWriter.write(1234567890, true), E_TYPE_NOT_MATCH);
+}
+
+TEST_F(ChunkWriterTest, WriteInt32) {
+ EXPECT_EQ(chunkWriter.write(1234567890, int32_t(42)), E_TYPE_NOT_MATCH);
+}
+
+TEST_F(ChunkWriterTest, WriteInt64) {
+ EXPECT_EQ(chunkWriter.write(1234567890, int64_t(42)), E_TYPE_NOT_MATCH);
+}
+
+TEST_F(ChunkWriterTest, WriteFloat) {
+ EXPECT_EQ(chunkWriter.write(1234567890, float(42.0)), E_TYPE_NOT_MATCH);
+}
+
+TEST_F(ChunkWriterTest, WriteDouble) {
+ EXPECT_EQ(chunkWriter.write(1234567890, double(42.0)), E_OK);
+}
+
+TEST_F(ChunkWriterTest, WriteLargeDataSet) {
+ for (int i = 0; i < 10000; ++i) {
+ chunkWriter.write(i, double(i * 0.1));
+ }
+ EXPECT_EQ(chunkWriter.get_chunk_statistic()->count_, 10000);
+}
+
+TEST_F(ChunkWriterTest, EndEncodeChunk) {
+ chunkWriter.write(1234567890, double(42.0));
+ EXPECT_EQ(chunkWriter.end_encode_chunk(), E_OK);
+ EXPECT_GT(chunkWriter.get_chunk_data().total_size(), 0);
+}
+
+TEST_F(ChunkWriterTest, DestroyChunkWriter) {
+ chunkWriter.write(1234567890, double(42.0));
+ chunkWriter.destroy();
+ EXPECT_EQ(chunkWriter.get_chunk_statistic(), nullptr);
+ EXPECT_EQ(chunkWriter.get_chunk_data().total_size(), 0);
+}
\ No newline at end of file
diff --git a/cpp/test/writer/page_writer_test.cc b/cpp/test/writer/page_writer_test.cc
new file mode 100644
index 00000000..33c469a5
--- /dev/null
+++ b/cpp/test/writer/page_writer_test.cc
@@ -0,0 +1,93 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "writer/page_writer.h"
+
+#include <gtest/gtest.h>
+
+#include "common/allocator/byte_stream.h"
+#include "common/statistic.h"
+#include "compress/compressor.h"
+#include "encoding/encoder.h"
+
+using namespace storage;
+using namespace common;
+
+class PageWriterTest : public ::testing::Test {};
+
+TEST_F(PageWriterTest, WriteBooleanSuccess) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::BOOLEAN, TSEncoding::PLAIN, UNCOMPRESSED);
+ int result = page_writer.write(1234567890, true);
+ EXPECT_EQ(result, E_OK);
+}
+
+TEST_F(PageWriterTest, WriteInt32Success) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::INT32, TSEncoding::PLAIN, UNCOMPRESSED);
+ int result = page_writer.write(1234567890, int32_t(42));
+ EXPECT_EQ(result, E_OK);
+}
+
+TEST_F(PageWriterTest, WriteInt64Success) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::INT64, TSEncoding::PLAIN, UNCOMPRESSED);
+ int result = page_writer.write(1234567890, int64_t(42));
+ EXPECT_EQ(result, E_OK);
+}
+
+TEST_F(PageWriterTest, WriteFloatSuccess) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::FLOAT, TSEncoding::PLAIN, UNCOMPRESSED);
+ int result = page_writer.write(1234567890, float(42.0));
+ EXPECT_EQ(result, E_OK);
+}
+
+TEST_F(PageWriterTest, WriteDoubleSuccess) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::DOUBLE, TSEncoding::PLAIN, UNCOMPRESSED);
+ int result = page_writer.write(1234567890, double(42.0));
+ EXPECT_EQ(result, E_OK);
+}
+
+TEST_F(PageWriterTest, WriteLargeDataSet) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::DOUBLE, TSEncoding::PLAIN, UNCOMPRESSED);
+ for (int i = 0; i < 10000; ++i) {
+ page_writer.write(i, double(i * 0.1));
+ }
+ EXPECT_EQ(page_writer.get_point_numer(), 10000);
+}
+
+TEST_F(PageWriterTest, ResetPageWriter) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::INT64, TSEncoding::PLAIN, UNCOMPRESSED);
+ page_writer.write(1234567890, int64_t(42));
+ page_writer.reset();
+ EXPECT_EQ(page_writer.get_point_numer(), 0);
+ EXPECT_EQ(page_writer.get_time_out_stream_size(), 0);
+}
+
+TEST_F(PageWriterTest, DestroyPageWriter) {
+ PageWriter page_writer;
+ page_writer.init(TSDataType::INT64, TSEncoding::PLAIN, UNCOMPRESSED);
+ page_writer.write(1234567890, int64_t(42));
+ Int64Statistic* stat = (Int64Statistic*)page_writer.get_statistic();
+ EXPECT_TRUE(stat);
+ EXPECT_EQ(stat->count_, 1);
+}
\ No newline at end of file
diff --git a/cpp/test/writer/tsfile_writer_test.cc b/cpp/test/writer/tsfile_writer_test.cc
new file mode 100644
index 00000000..a3004c8d
--- /dev/null
+++ b/cpp/test/writer/tsfile_writer_test.cc
@@ -0,0 +1,216 @@
+/*
+ * 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 a
+ *
+ * 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.
+ */
+#include "writer/tsfile_writer.h"
+
+#include <gtest/gtest.h>
+
+#include <random>
+
+#include "common/path.h"
+#include "common/record.h"
+#include "common/schema.h"
+#include "common/tablet.h"
+#include "file/tsfile_io_writer.h"
+#include "file/write_file.h"
+
+using namespace storage;
+using namespace common;
+
+class TsFileWriterTest : public ::testing::Test {
+ protected:
+ void SetUp() override {
+ tsfile_writer_ = new TsFileWriter();
+ libtsfile_init();
+ file_name_ = std::string("tsfile_writer_test_") +
+ generate_random_string(10) + std::string(".dat");
+ remove(file_name_.c_str());
+ int flags = O_WRONLY | O_CREAT | O_TRUNC;
+#ifdef _WIN32
+ flags |= O_BINARY;
+#endif
+ mode_t mode = 0666;
+ EXPECT_EQ(tsfile_writer_->open(file_name_, flags, mode), common::E_OK);
+ }
+ void TearDown() override {
+ delete tsfile_writer_;
+ remove(file_name_.c_str());
+ }
+
+ std::string file_name_;
+ TsFileWriter* tsfile_writer_ = nullptr;
+
+ public:
+ static std::string generate_random_string(int length) {
+ std::random_device rd;
+ std::mt19937 gen(rd());
+ std::uniform_int_distribution<> dis(0, 61);
+
+ const std::string chars =
+ "0123456789"
+ "abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+
+ std::string random_string;
+
+ for (int i = 0; i < length; ++i) {
+ random_string += chars[dis(gen)];
+ }
+
+ return random_string;
+ }
+};
+
+TEST_F(TsFileWriterTest, InitWithNullWriteFile) {
+ TsFileWriter writer;
+ ASSERT_EQ(writer.init(nullptr), E_INVALID_ARG);
+}
+
+TEST_F(TsFileWriterTest, RegisterTimeSeries) {
+ std::string device_path = "device1";
+ std::string measurement_name = "temperature";
+ common::TSDataType data_type = common::TSDataType::INT32;
+ common::TSEncoding encoding = common::TSEncoding::PLAIN;
+ common::CompressionType compression_type =
+ common::CompressionType::UNCOMPRESSED;
+
+ ASSERT_EQ(tsfile_writer_->register_timeseries(device_path, measurement_name,
+ data_type, encoding,
+ compression_type),
+ E_OK);
+}
+
+TEST_F(TsFileWriterTest, WriteMultipleRecords) {
+ std::string device_path = "device1";
+ std::string measurement_name = "temperature";
+ common::TSDataType data_type = common::TSDataType::INT32;
+ common::TSEncoding encoding = common::TSEncoding::PLAIN;
+ common::CompressionType compression_type =
+ common::CompressionType::UNCOMPRESSED;
+ tsfile_writer_->register_timeseries(device_path, measurement_name,
+ data_type, encoding, compression_type);
+
+ for (int i = 0; i < 50000; ++i) {
+ TsRecord record(1622505600000 + i * 1000, device_path);
+ DataPoint point(measurement_name, (int32_t)i);
+ record.append_data_point(point);
+ ASSERT_EQ(tsfile_writer_->write_record(record), E_OK);
+ }
+}
+
+TEST_F(TsFileWriterTest, WriteMultipleTabletsInt64) {
+ const int device_num = 50;
+ const int measurement_num = 50;
+ std::vector<MeasurementSchema> schema_vec[50];
+
+ for (int i = 0; i < device_num; i++) {
+ std::string device_name = "test_device" + std::to_string(i);
+ for (int j = 0; j < measurement_num; j++) {
+ std::string measure_name = "measurement" + std::to_string(j);
+ schema_vec[i].push_back(
+ MeasurementSchema(measure_name, common::TSDataType::INT64,
+ common::TSEncoding::PLAIN,
+ common::CompressionType::UNCOMPRESSED));
+ tsfile_writer_->register_timeseries(
+ device_name, measure_name, common::TSDataType::INT64,
+ common::TSEncoding::PLAIN,
+ common::CompressionType::UNCOMPRESSED);
+ }
+ }
+
+ for (int i = 0; i < device_num; i++) {
+ std::string device_name = "test_device" + std::to_string(i);
+ for (int j = 0; j < measurement_num; j++) {
+ int max_rows = 100;
+ Tablet tablet(device_name, &schema_vec[i], max_rows);
+ tablet.init();
+ for (int row = 0; row < max_rows; row++) {
+ tablet.set_timestamp(row, 16225600 + row);
+ }
+ for (int row = 0; row < max_rows; row++) {
+ tablet.set_value(row, j, row);
+ }
+ ASSERT_EQ(tsfile_writer_->write_tablet(tablet), E_OK);
+ }
+ }
+
+ ASSERT_EQ(tsfile_writer_->flush(), E_OK);
+ tsfile_writer_->close();
+}
+
+TEST_F(TsFileWriterTest, WriteMultipleTabletsDouble) {
+ const int device_num = 50;
+ const int measurement_num = 50;
+ std::vector<MeasurementSchema> schema_vec[50];
+
+ for (int i = 0; i < device_num; i++) {
+ std::string device_name = "test_device" + std::to_string(i);
+ for (int j = 0; j < measurement_num; j++) {
+ std::string measure_name = "measurement" + std::to_string(j);
+ schema_vec[i].push_back(
+ MeasurementSchema(measure_name, common::TSDataType::DOUBLE,
+ common::TSEncoding::PLAIN,
+ common::CompressionType::UNCOMPRESSED));
+ tsfile_writer_->register_timeseries(
+ device_name, measure_name, common::TSDataType::DOUBLE,
+ common::TSEncoding::PLAIN,
+ common::CompressionType::UNCOMPRESSED);
+ }
+ }
+
+ for (int i = 0; i < device_num; i++) {
+ std::string device_name = "test_device" + std::to_string(i);
+ for (int j = 0; j < measurement_num; j++) {
+ int max_rows = 200;
+ Tablet tablet(device_name, &schema_vec[i], max_rows);
+ tablet.init();
+ for (int row = 0; row < max_rows; row++) {
+ tablet.set_timestamp(row, 16225600 + row);
+ }
+ for (int row = 0; row < max_rows; row++) {
+ tablet.set_value(row, j, (double)row + 1.0);
+ }
+ ASSERT_EQ(tsfile_writer_->write_tablet(tablet), E_OK);
+ }
+ }
+
+ ASSERT_EQ(tsfile_writer_->flush(), E_OK);
+ tsfile_writer_->close();
+}
+/*
+// TODO: Flushing without writing after registering a timeseries will cause a
+core
+// dump
+TEST_F(TsFileWriterTest, FlushWithoutWriteAfterRegisterTS) {
+ TsFileWriter writer;
+ writer.init(file_);
+
+ std::string device_path = "device1";
+ std::string measurement_name = "temperature";
+ common::TSDataType data_type = common::TSDataType::INT32;
+ common::TSEncoding encoding = common::TSEncoding::PLAIN;
+ common::CompressionType compression_type =
+ common::CompressionType::UNCOMPRESSED;
+
+ ASSERT_EQ(writer.register_timeseries(device_path, measurement_name,
+ data_type, encoding, compression_type),
+ E_OK);
+ ASSERT_EQ(writer.flush(), E_OK);
+ ASSERT_EQ(writer.close(), E_OK);
+}
+*/
(tsfile) 10/33: [CPP] Fix syntax and logic errors in files under the 'filter' directory (#135)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 1e86410150626aea5050a1436d48ac7df20d1cbe
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Thu Jun 27 11:41:54 2024 +0800
[CPP] Fix syntax and logic errors in files under the 'filter' directory (#135)
* bugfix: bitmap clear method
* fix filter
* fix filter
---------
Co-authored-by: hongzhigao <ho...@foxmail.com>
---
cpp/src/reader/filter/between.h | 2 +
cpp/src/reader/filter/eq.h | 21 ++---
cpp/src/reader/filter/gt.h | 23 ++---
cpp/src/reader/filter/gt_eq.h | 23 ++---
cpp/src/reader/filter/in.h | 8 +-
cpp/src/reader/filter/lt.h | 28 +++---
cpp/src/reader/filter/lt_eq.h | 25 +++---
cpp/src/reader/filter/not_eq.h | 27 +++---
cpp/src/reader/filter/object.h | 182 +++++++++++++++++++++++++++++++++++++-
cpp/src/reader/filter/or_filter.h | 53 +++++++----
10 files changed, 299 insertions(+), 93 deletions(-)
diff --git a/cpp/src/reader/filter/between.h b/cpp/src/reader/filter/between.h
index 655c7aee..1928a36f 100644
--- a/cpp/src/reader/filter/between.h
+++ b/cpp/src/reader/filter/between.h
@@ -19,7 +19,9 @@
#ifndef READER_FILTER_OPERATOR_BETWEEN_H
#define READER_FILTER_OPERATOR_BETWEEN_H
+#include "common/statistic.h"
#include "reader/filter/binary_filter.h"
+#include "reader/filter/object.h"
namespace storage {
template <typename T>
diff --git a/cpp/src/reader/filter/eq.h b/cpp/src/reader/filter/eq.h
index eb577840..13e917b9 100644
--- a/cpp/src/reader/filter/eq.h
+++ b/cpp/src/reader/filter/eq.h
@@ -19,6 +19,7 @@
#ifndef READER_FILTER_OPERATOR_EQ_H
#define READER_FILTER_OPERATOR_EQ_H
+#include "reader/filter/object.h"
#include "reader/filter/unary_filter.h"
namespace storage {
@@ -26,14 +27,14 @@ template <typename T>
class Eq : public UnaryFilter<T> {
public:
Eq() : UnaryFilter<T>() {}
- Eq(T value, FilterType type) { UnaryFilter<T>(value, type); }
+ Eq(T value, FilterType type) : UnaryFilter<T>(value, type) {}
virtual ~Eq() {}
bool satisfy(Statistic *statistic) {
- if (type_ == TIME_FILTER) {
- return value_ >= statistic->start_time_ &&
- value_ <= statistic->end_time_;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ >= statistic->start_time_ &&
+ this->value_ <= statistic->end_time_;
} else {
if (statistic->get_type() == common::TEXT ||
statistic->get_type() == common::BOOLEAN) {
@@ -46,21 +47,21 @@ class Eq : public UnaryFilter<T> {
}
bool satisfy(long time, Object value) {
- Object v = (type_ == TIME_FILTER ? time : value);
- return value_.equals(v);
+ Object v = (this->type_ == TIME_FILTER ? time : value);
+ return this->value_.equals(v);
}
bool satisfy_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ <= end_time && value_ >= start_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ <= end_time && this->value_ >= start_time;
} else {
return true;
}
}
bool contain_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ == start_time && time == end_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ == start_time && this->value_ == end_time;
} else {
return true;
}
diff --git a/cpp/src/reader/filter/gt.h b/cpp/src/reader/filter/gt.h
index e3cde134..5db7b970 100644
--- a/cpp/src/reader/filter/gt.h
+++ b/cpp/src/reader/filter/gt.h
@@ -19,19 +19,20 @@
#ifndef READER_FILTER_OPERATOR_GT_H
#define READER_FILTER_OPERATOR_GT_H
-#include "storage/read/filter/unary_filter.h"
+#include "reader/filter/object.h"
+#include "reader/filter/unary_filter.h"
namespace storage {
template <typename T>
class Gt : public UnaryFilter<T> {
public:
- Gt() : UnaryFilter() {}
- Gt(T value, FilterType type) { UnaryFilter(value, type); }
+ Gt() : UnaryFilter<T>() {}
+ Gt(T value, FilterType type) : UnaryFilter<T>(value, type) {}
virtual ~Gt() {}
bool satisfy(Statistic *statistic) {
- if (type_ == TIME_FILTER) {
- return value_ < statistic.end_time_;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ < statistic->end_time_;
} else {
if (statistic->get_type() == common::TEXT ||
statistic->get_type() == common::BOOLEAN) {
@@ -44,21 +45,21 @@ class Gt : public UnaryFilter<T> {
}
bool satisfy(long time, Object value) {
- Object v = (type_ == TIME_FILTER ? time : value);
- return value_ < v;
+ Object v = (this->type_ == TIME_FILTER ? time : value);
+ return this->value_ < v;
}
bool satisfy_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ < end_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ < end_time;
} else {
return true;
}
}
bool contain_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ < start_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ < start_time;
} else {
return true;
}
diff --git a/cpp/src/reader/filter/gt_eq.h b/cpp/src/reader/filter/gt_eq.h
index 4f08a28c..067c5608 100644
--- a/cpp/src/reader/filter/gt_eq.h
+++ b/cpp/src/reader/filter/gt_eq.h
@@ -19,20 +19,21 @@
#ifndef READER_FILTER_OPERATOR_GT_EQ_H
#define READER_FILTER_OPERATOR_GT_EQ_H
-#include "filter/unary_filter.h"
+#include "reader/filter/object.h"
+#include "reader/filter/unary_filter.h"
namespace storage {
template <typename T>
class GtEq : public UnaryFilter<T> {
public:
- GtEq() : UnaryFilter() {}
- GtEq(T value, FilterType type) { UnaryFilter(value, type); }
+ GtEq() : UnaryFilter<T>(){};
+ GtEq(T value, FilterType type) : UnaryFilter<T>(value, type) {}
virtual ~GtEq() {}
bool satisfy(Statistic *statistic) {
- if (type_ == TIME_FILTER) {
- return value_ <= statistic->end_time_;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ <= statistic->end_time_;
} else {
if (statistic->get_type() == common::TEXT ||
statistic->get_type() == common::BOOLEAN) {
@@ -45,21 +46,21 @@ class GtEq : public UnaryFilter<T> {
}
bool satisfy(long time, Object value) {
- Object v = (type_ == TIME_FILTER ? time : value);
- return value_ <= v;
+ Object v = (this->type_ == TIME_FILTER ? time : value);
+ return this->value_ <= v;
}
bool satisfy_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ <= end_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ <= end_time;
} else {
return true;
}
}
bool contain_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ <= start_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ <= start_time;
} else {
return true;
}
diff --git a/cpp/src/reader/filter/in.h b/cpp/src/reader/filter/in.h
index 4e4494d0..0c95de95 100644
--- a/cpp/src/reader/filter/in.h
+++ b/cpp/src/reader/filter/in.h
@@ -19,9 +19,11 @@
#ifndef READER_FILTER_OPERATOR_IN_H
#define READER_FILTER_OPERATOR_IN_H
+#include <algorithm>
#include <vector>
-#include "filter/binary_filter.h"
+#include "reader/filter/binary_filter.h"
+#include "reader/filter/object.h"
namespace storage {
template <typename T>
@@ -35,8 +37,8 @@ class In : public Filter {
bool satisfy(Statistic *statistic) { return true; }
bool satisfy(long time, Object value) {
- Object v = (filterType == TIME_FILTER ? time : value);
- std::vector<T>::iterator it = find(values_.begin(), values_.end(), v);
+ Object v = (type_ == TIME_FILTER ? time : value);
+ auto it = std::find(values_.begin(), values_.end(), v);
bool result = (it != values_.end() ? true : false);
return result != not_;
}
diff --git a/cpp/src/reader/filter/lt.h b/cpp/src/reader/filter/lt.h
index 85c3e9c7..062fb3af 100644
--- a/cpp/src/reader/filter/lt.h
+++ b/cpp/src/reader/filter/lt.h
@@ -19,22 +19,22 @@
#ifndef READER_FILTER_OPERATOR_LT_H
#define READER_FILTER_OPERATOR_LT_H
-#include "storage/read/filter/unary_filter.h"
-
+#include "reader/filter/object.h"
+#include "reader/filter/unary_filter.h"
namespace storage {
template <typename T>
class Lt : public UnaryFilter<T> {
public:
- Lt() {}
- Lt(T value, FilterType type) { UnaryFilter(value, type); }
+ Lt() : UnaryFilter<T>() {}
+ Lt(T value, FilterType type) : UnaryFilter<T>(value, type) {}
virtual ~Lt() {}
bool satisfy(Statistic *statistic) {
- if (type_ == TIME_FILTER) {
- return value_ > statistic->start_time_;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ > statistic->start_time_;
} else {
- if (statistic.get_type() == common::TEXT ||
- statistic.get_type() == common::BOOLEAN) {
+ if (statistic->get_type() == common::TEXT ||
+ statistic->get_type() == common::BOOLEAN) {
return true;
} else {
// todo value filter
@@ -44,21 +44,21 @@ class Lt : public UnaryFilter<T> {
}
bool satisfy(long time, Object value) {
- Object v = (type_ == TIME_FILTER ? time : value);
- return value_ > v;
+ Object v = (this->type_ == TIME_FILTER ? time : value);
+ return this->value_ > v;
}
bool satisfy_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ > start_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ > start_time;
} else {
return true;
}
}
bool contain_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ > end_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ > end_time;
} else {
return true;
}
diff --git a/cpp/src/reader/filter/lt_eq.h b/cpp/src/reader/filter/lt_eq.h
index 78f5633b..aa866057 100644
--- a/cpp/src/reader/filter/lt_eq.h
+++ b/cpp/src/reader/filter/lt_eq.h
@@ -19,19 +19,22 @@
#ifndef READER_FILTER_OPERATOR_LT_EQ_H
#define READER_FILTER_OPERATOR_LT_EQ_H
-#include "storage/read/filter/unary_filter.h"
+#include <gtest/gtest.h>
+
+#include "common/statistic.h"
+#include "reader/filter/gt.h"
namespace storage {
template <typename T>
class LtEq : public UnaryFilter<T> {
public:
- LtEq() {}
- LtEq(T value, FilterType type) { UnaryFilter(value, type); }
+ LtEq() : UnaryFilter<T>() {}
+ LtEq(T value, FilterType type) : UnaryFilter<T>(value, type) {}
virtual ~LtEq() {}
bool satisfy(Statistic *statistic) {
- if (type_ == TIME_FILTER) {
- return value_ >= statistic->start_time_;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ >= statistic->start_time_;
} else {
if (statistic->get_type() == common::TEXT ||
statistic->get_type() == common::BOOLEAN) {
@@ -44,21 +47,21 @@ class LtEq : public UnaryFilter<T> {
}
bool satisfy(long time, Object value) {
- Object v = (type_ == TIME_FILTER ? time : value);
- return value_ >= v;
+ Object v = (this->type_ == TIME_FILTER ? time : value);
+ return this->value_ >= v;
}
bool satisfy_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ >= start_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ >= start_time;
} else {
return true;
}
}
bool contain_start_end_time(long start_time, long end_time) {
- if (type_ == TIME_FILTER) {
- return value_ >= end_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ >= end_time;
} else {
return true;
}
diff --git a/cpp/src/reader/filter/not_eq.h b/cpp/src/reader/filter/not_eq.h
index 0f4ac3af..d9d54359 100644
--- a/cpp/src/reader/filter/not_eq.h
+++ b/cpp/src/reader/filter/not_eq.h
@@ -19,23 +19,24 @@
#ifndef READER_FILTER_OPERATOR_NOT_EQ_H
#define READER_FILTER_OPERATOR_NOT_EQ_H
-#include "filter/unary_filter.h"
+#include "reader/filter/object.h"
+#include "reader/filter/unary_filter.h"
namespace storage {
template <typename T>
class NotEq : public UnaryFilter<T> {
public:
NotEq() {}
- NotEq(T value, FilterType type) { UnaryFilter(value, type); }
+ NotEq(T value, FilterType type) : UnaryFilter<T>(value, type) {}
virtual ~NotEq() {}
bool satisfy(Statistic *statistic) {
- if (type_ == TIME_FILTER) {
- return !(value_ == statistic->start_time_ &&
- value_ == statistic->end_time_);
+ if (this->type_ == TIME_FILTER) {
+ return !(this->value_ == statistic->start_time_ &&
+ this->value_ == statistic->end_time_);
} else {
- if (statistic.get_type() == common::TEXT ||
- statistic.get_type() == common::BOOLEAN) {
+ if (statistic->get_type() == common::TEXT ||
+ statistic->get_type() == common::BOOLEAN) {
return true;
} else {
// todo value filter
@@ -45,21 +46,21 @@ class NotEq : public UnaryFilter<T> {
}
bool satisfy(long time, Object value) {
- Object v = (type_ == TIME_FILTER ? time : value);
- return !value_.equals(v);
+ Object v = (this->type_ == TIME_FILTER ? time : value);
+ return !this->value_.equals(v);
}
bool satisfy_start_end_time(long start_time, long end_time) {
- if (filterType == TIME_FILTER) {
- return value_ != end_time && value_ != start_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ != end_time && this->value_ != start_time;
} else {
return true;
}
}
bool contain_start_end_time(long start_time, long end_time) {
- if (filterType == TIME_FILTER) {
- return value_ < start_time || value_ > end_time;
+ if (this->type_ == TIME_FILTER) {
+ return this->value_ < start_time || this->value_ > end_time;
} else {
return true;
}
diff --git a/cpp/src/reader/filter/object.h b/cpp/src/reader/filter/object.h
index 5709fadd..2fe2fd59 100644
--- a/cpp/src/reader/filter/object.h
+++ b/cpp/src/reader/filter/object.h
@@ -20,6 +20,7 @@
#define READER_FILTER_BASIC_OBJECT_H
#include "common/db_common.h"
+#include "string.h"
namespace storage {
@@ -72,6 +73,186 @@ class Object {
values_.sval_ = const_cast<char *>(val.c_str());
}
+ bool equals(const Object &object) {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ == object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ == object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ == object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ == object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ == object.values_.dval_;
+ case common::TEXT:
+ return !strcmp(values_.sval_, object.values_.sval_);
+ default:
+ return false;
+ }
+ }
+
+ bool operator==(const Object &object) const {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ == object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ == object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ == object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ == object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ == object.values_.dval_;
+ case common::TEXT:
+ return !strcmp(values_.sval_, object.values_.sval_);
+ default:
+ return false;
+ }
+ }
+
+ bool operator!=(const Object &object) const {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ != object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ != object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ != object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ != object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ != object.values_.dval_;
+ case common::TEXT:
+ return strcmp(values_.sval_, object.values_.sval_);
+ default:
+ return false;
+ }
+ }
+
+ bool operator<(const Object &object) const {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ < object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ < object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ < object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ < object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ < object.values_.dval_;
+ case common::TEXT:
+ return strcmp(values_.sval_, object.values_.sval_) < 0;
+ default:
+ return false;
+ }
+ }
+
+ bool operator<=(const Object &object) const {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ <= object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ <= object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ <= object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ <= object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ <= object.values_.dval_;
+ case common::TEXT:
+ return strcmp(values_.sval_, object.values_.sval_) <= 0;
+ default:
+ return false;
+ }
+ }
+
+ bool operator>(const Object &object) const {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ > object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ > object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ > object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ > object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ > object.values_.dval_;
+ case common::TEXT:
+ return strcmp(values_.sval_, object.values_.sval_) > 0;
+ default:
+ return false;
+ }
+ }
+
+ bool operator>=(const Object &object) const {
+ if (object.get_type() != type_) {
+ return false;
+ }
+ switch (object.get_type()) {
+ case common::BOOLEAN:
+ return values_.bval_ >= object.values_.bval_;
+ case common::INT32:
+ return values_.ival_ >= object.values_.ival_;
+ case common::INT64:
+ return values_.lval_ >= object.values_.lval_;
+ case common::FLOAT:
+ return values_.fval_ >= object.values_.fval_;
+ case common::DOUBLE:
+ return values_.dval_ >= object.values_.dval_;
+ case common::TEXT:
+ return strcmp(values_.sval_, object.values_.sval_) >= 0;
+ default:
+ return false;
+ }
+ }
+
+ friend bool operator>=(const Object &object1, const Object &objec2) {
+ return object1.operator>=(objec2);
+ }
+ friend bool operator>(const Object &object1, const Object &objec2) {
+ return object1.operator>(objec2);
+ }
+ friend bool operator==(const Object &object1, const Object &objec2) {
+ return object1.operator==(objec2);
+ }
+ friend bool operator<=(const Object &object1, const Object &objec2) {
+ return object1.operator<=(objec2);
+ }
+ friend bool operator<(const Object &object1, const Object &objec2) {
+ return object1.operator<(objec2);
+ }
+ friend bool operator!=(const Object &object1, const Object &objec2) {
+ return object1.operator!=(objec2);
+ }
+
+ bool operator>=(const int64_t &time) const {}
+ bool operator<=(const int64_t &time) const {}
+ bool operator==(const int64_t &time) const {}
+ bool operator>(const int64_t &time) const {}
+ bool operator<(const int64_t &time) const {}
+ bool operator!=(const int64_t &time) const {}
+
FORCE_INLINE const common::TSDataType get_type() const { return type_; }
private:
@@ -79,6 +260,5 @@ class Object {
};
} // namespace storage
-} // namespace timecho
#endif // READER_FILTER_BASIC_OBJECT_H
diff --git a/cpp/src/reader/filter/or_filter.h b/cpp/src/reader/filter/or_filter.h
index 49a6d50b..f0ca1aed 100644
--- a/cpp/src/reader/filter/or_filter.h
+++ b/cpp/src/reader/filter/or_filter.h
@@ -27,7 +27,7 @@ namespace storage {
class OrFilter : public BinaryFilter {
public:
OrFilter() {}
- OrFilter(Filter *left, Filter *right) { BinaryFilter(left, right); }
+ OrFilter(Filter *left, Filter *right) : BinaryFilter(left, right) {}
~OrFilter() {}
FORCE_INLINE bool satisfy(Statistic *statistic) {
@@ -56,32 +56,47 @@ class OrFilter : public BinaryFilter {
int left_index = 0, right_index = 0;
int left_size = left_time_ranges->size();
int right_size = right_time_ranges->size();
-
+ TimeRange *range = choose_next_range(
+ left_time_ranges, right_time_ranges, left_index, right_index);
while (left_index < left_size || right_index < right_size) {
- TimeRange *left_range = left_time_ranges->at(left_index);
- TimeRange *right_range = right_time_ranges->at(right_index);
-
- if (left_range->end_time_ < right_range->start_time_) {
- left_index++;
- } else if (right_range->end_time_ < left_range->start_time_) {
- right_index++;
+ TimeRange *choosen_range = choose_next_range(
+ left_time_ranges, right_time_ranges, left_index, right_index);
+ if (choosen_range->start_time_ > range->end_time_) {
+ result->push_back(
+ new TimeRange(range->start_time_, range->end_time_));
+ range = choosen_range;
} else {
- TimeRange *intersection = new TimeRange(
- std::max(left_range->start_time_, right_range->start_time_),
- std::min(left_range->end_time_, right_range->end_time_));
- result->push_back(intersection);
- if (left_range->end_time_ <= intersection->end_time_) {
- left_index++;
- }
- if (right_range->end_time_ <= intersection->end_time_) {
- right_index++;
- }
+ range->end_time_ =
+ std::max(range->end_time_, choosen_range->end_time_);
}
}
+ result->push_back(new TimeRange(range->start_time_, range->end_time_));
return result;
}
private:
+ TimeRange *choose_next_range(std::vector<TimeRange *> *left_time_ranges,
+ std::vector<TimeRange *> *right_time_ranges,
+ int &left_index, int &right_index) {
+ int left_size = left_time_ranges->size();
+ int right_size = right_time_ranges->size();
+ if (left_index < left_size && right_index < right_size) {
+ TimeRange *left_range = left_time_ranges->at(left_index);
+ TimeRange *right_range = right_time_ranges->at(right_index);
+ // Choose the range with the smaller minimum start time
+ if (left_range->start_time_ <= right_range->start_time_) {
+ left_index++;
+ return left_range;
+ } else {
+ right_index++;
+ return right_range;
+ }
+ } else if (left_index < left_size) {
+ return left_time_ranges->at(left_index++);
+ } else {
+ return right_time_ranges->at(right_index++);
+ }
+ }
};
} // namespace storage
(tsfile) 16/33: fix error link (#148)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 2fe90ead51b1d80fe9000453d3a495a934138143
Author: CritasWang <cr...@outlook.com>
AuthorDate: Wed Jul 3 23:04:36 2024 +0800
fix error link (#148)
---
.asf.yaml | 2 ++
README-zh.md | 4 +++-
README.md | 4 +++-
python/README-zh.md | 34 ++++++++++++++++++++++++++++++++++
4 files changed, 42 insertions(+), 2 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index a98910de..f8ea8e76 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -26,6 +26,8 @@ github:
- iot
- big-data
- java
+ - c++
+ - python
- tsfile
features:
wiki: true
diff --git a/README-zh.md b/README-zh.md
index 1c9c0e9c..8596329f 100644
--- a/README-zh.md
+++ b/README-zh.md
@@ -124,4 +124,6 @@ TsFile、CSV 和 Parquet 三种文件格式的比较
[Java](./java/tsfile/README-zh.md)
-[C++](./cpp/tsfile/README-zh.md)
\ No newline at end of file
+[C++](./cpp/README-zh.md)
+
+[Python](./python/README-zh.md)
\ No newline at end of file
diff --git a/README.md b/README.md
index 6251a3db..5b5636af 100644
--- a/README.md
+++ b/README.md
@@ -123,4 +123,6 @@ more see [Docs](https://iotdb.apache.org/UserGuide/latest/Basic-Concept/Encoding
[Java](./java/tsfile/README.md)
-[C++](./cpp/tsfile/README.md)
+[C++](./cpp/README.md)
+
+[Python](./python/README.md)
diff --git a/python/README-zh.md b/python/README-zh.md
new file mode 100644
index 00000000..bd7c8f58
--- /dev/null
+++ b/python/README-zh.md
@@ -0,0 +1,34 @@
+<!--
+
+ 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.
+
+-->
+
+# TsFile Python Document
+<pre>
+___________ ___________.__.__
+\__ ___/____\_ _____/|__| | ____
+ | | / ___/| __) | | | _/ __ \
+ | | \___ \ | \ | | |_\ ___/
+ |____|/____ >\___ / |__|____/\___ > version 1.0.0
+ \/ \/ \/
+</pre>
+
+## 使用
+
+## 开发
\ No newline at end of file
(tsfile) 03/33: Add a Data Model document (#138)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit ae9df85c5bbadfadf728c69c82182f4282ba7bb1
Author: majialin <10...@users.noreply.github.com>
AuthorDate: Tue Jun 25 17:48:23 2024 +0800
Add a Data Model document (#138)
---
docs/src/.vuepress/sidebar/V1.0.x/en.ts | 6 +-
docs/src/.vuepress/sidebar/V1.0.x/zh.ts | 5 ++
docs/src/UserGuide/latest/QuickStart/Data-Model.md | 65 ++++++++++++++++++++++
.../zh/UserGuide/latest/QuickStart/Data-Model.md | 65 ++++++++++++++++++++++
4 files changed, 140 insertions(+), 1 deletion(-)
diff --git a/docs/src/.vuepress/sidebar/V1.0.x/en.ts b/docs/src/.vuepress/sidebar/V1.0.x/en.ts
index cc91e941..d6dcca31 100644
--- a/docs/src/.vuepress/sidebar/V1.0.x/en.ts
+++ b/docs/src/.vuepress/sidebar/V1.0.x/en.ts
@@ -38,6 +38,10 @@ export const enSidebar = {
// { text: 'Quick Start', link: 'QuickStart' },
// ],
},
-
+ {
+ text: 'Data Model',
+ collapsible: true,
+ link: 'QuickStart/Data-Model',
+ },
]
};
diff --git a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
index b62b7ba3..34873140 100644
--- a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
+++ b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
@@ -38,5 +38,10 @@ export const zhSidebar = {
// { text: '快速上手', link: 'QuickStart' },
// ],
},
+ {
+ text: '数据模型',
+ collapsible: true,
+ link: 'QuickStart/Data-Model',
+ },
]
};
diff --git a/docs/src/UserGuide/latest/QuickStart/Data-Model.md b/docs/src/UserGuide/latest/QuickStart/Data-Model.md
new file mode 100644
index 00000000..66d4ce84
--- /dev/null
+++ b/docs/src/UserGuide/latest/QuickStart/Data-Model.md
@@ -0,0 +1,65 @@
+<!--
+
+ 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.
+
+-->
+# Data Model
+
+## Basic Concepts
+
+To manage industrial IoT timing data, the measurement point data model of TsFile includes the following information
+
+- DeviceId(String):Device Name
+- MeasurementSchema:Measurement points
+ - measurementId(String):Measurement Point Name
+ - tsDataType(TSDataType):Data Type
+
+For the above detailed introduction, please refer to:[Entering Time Series Data](https://tsfile.apache.org/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.html)
+
+## Example
+
+
+
+In the above example, the metadata (Scheme) of TsFile contains 2 devices and 5 time series, and is established as a table structure as shown in the following figure:
+
+<table>
+ <tr>
+ <th rowspan="1">Device ID</th>
+ <th rowspan="1">Measurement points</th>
+ </tr>
+ <tr>
+ <th rowspan="2">Solar panel 1</th>
+ <th>Voltage(FLOAT)</th>
+ </tr>
+ <tr>
+ <th>Current(FLOAT)</th>
+ </tr>
+ <tr>
+ <th rowspan="4">Fan1</th>
+ </tr>
+ <tr>
+ <th>Voltage(FLOAT)</th>
+ </tr>
+ <tr>
+ <th>Current(FLOAT)</th>
+ </tr>
+ <tr>
+ <th>Wind Speed(FLOAT)</th>
+ </tr>
+</table>
+
diff --git a/docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md b/docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md
new file mode 100644
index 00000000..5b854399
--- /dev/null
+++ b/docs/src/zh/UserGuide/latest/QuickStart/Data-Model.md
@@ -0,0 +1,65 @@
+<!--
+
+ 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.
+
+-->
+# TsFile 数据模型
+
+## 基本概念
+
+为管理工业物联网时序数据,TsFile 的测点数据模型包含如下信息
+
+- DeviceId(String):设备名
+- MeasurementSchema:测点
+ - measurementId(String):测点名
+ - tsDataType(TSDataType):数据类型
+
+有关上述详细介绍,参见:[走进时序数据](https://tsfile.apache.org/zh/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.html)
+
+## 示例
+
+
+
+在上述示例中,TsFile 的元数据(Schema)共包含 2 个设备,5条时间序列,建立为表结构如下图:
+
+<table>
+ <tr>
+ <th rowspan="1">设备ID</th>
+ <th rowspan="1">测点</th>
+ </tr>
+ <tr>
+ <th rowspan="2">太阳能板1</th>
+ <th>电压(FLOAT)</th>
+ </tr>
+ <tr>
+ <th>电流(FLOAT)</th>
+ </tr>
+ <tr>
+ <th rowspan="4">风机1</th>
+ </tr>
+ <tr>
+ <th>电压(FLOAT)</th>
+ </tr>
+ <tr>
+ <th>电流(FLOAT)</th>
+ </tr>
+ <tr>
+ <th>风速(FLOAT)</th>
+ </tr>
+</table>
+
(tsfile) 04/33: Modify directory order (#140)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit e76fb3dc885c80f57eced99b2b3c10e7b9315264
Author: majialin <10...@users.noreply.github.com>
AuthorDate: Tue Jun 25 20:14:49 2024 +0800
Modify directory order (#140)
---
docs/src/.vuepress/sidebar/V1.0.x/en.ts | 11 ++++++-----
docs/src/.vuepress/sidebar/V1.0.x/zh.ts | 11 ++++++-----
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/docs/src/.vuepress/sidebar/V1.0.x/en.ts b/docs/src/.vuepress/sidebar/V1.0.x/en.ts
index d6dcca31..f23eb1fc 100644
--- a/docs/src/.vuepress/sidebar/V1.0.x/en.ts
+++ b/docs/src/.vuepress/sidebar/V1.0.x/en.ts
@@ -28,6 +28,11 @@ export const enSidebar = {
collapsible: true,
link: 'QuickStart/Navigating_Time_Series_Data',
},
+ {
+ text: 'Data Model',
+ collapsible: true,
+ link: 'QuickStart/Data-Model',
+ },
{
text: 'Quick Start',
collapsible: true,
@@ -38,10 +43,6 @@ export const enSidebar = {
// { text: 'Quick Start', link: 'QuickStart' },
// ],
},
- {
- text: 'Data Model',
- collapsible: true,
- link: 'QuickStart/Data-Model',
- },
+
]
};
diff --git a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
index 34873140..b5fe03eb 100644
--- a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
+++ b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
@@ -28,6 +28,11 @@ export const zhSidebar = {
collapsible: true,
link: 'QuickStart/Navigating_Time_Series_Data',
},
+ {
+ text: '数据模型',
+ collapsible: true,
+ link: 'QuickStart/Data-Model',
+ },
{
text: '快速上手',
collapsible: true,
@@ -38,10 +43,6 @@ export const zhSidebar = {
// { text: '快速上手', link: 'QuickStart' },
// ],
},
- {
- text: '数据模型',
- collapsible: true,
- link: 'QuickStart/Data-Model',
- },
+
]
};
(tsfile) 12/33: fix rlbe (#143)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 3be4c18e0123a9d0493c1880f8236f00533aa561
Author: gzh0806 <14...@users.noreply.github.com>
AuthorDate: Tue Jul 2 11:27:05 2024 +0800
fix rlbe (#143)
---
.../main/java/org/apache/tsfile/encoding/decoder/Decoder.java | 3 +--
.../java/org/apache/tsfile/encoding/decoder/FloatDecoder.java | 11 +++++++++++
.../java/org/apache/tsfile/encoding/encoder/FloatEncoder.java | 9 +++++++++
.../org/apache/tsfile/encoding/encoder/TSEncodingBuilder.java | 6 ++++--
4 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/Decoder.java b/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/Decoder.java
index 36c3d826..be83a285 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/Decoder.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/Decoder.java
@@ -171,9 +171,8 @@ public abstract class Decoder {
case TIMESTAMP:
return new LongRLBEDecoder();
case FLOAT:
- return new FloatRLBEDecoder();
case DOUBLE:
- return new DoubleRLBEDecoder();
+ return new FloatDecoder(TSEncoding.valueOf(encoding.toString()), dataType);
default:
throw new TsFileDecodingException(String.format(ERROR_MSG, encoding, dataType));
}
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java b/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java
index 505b8e69..5682e5ec 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java
@@ -71,6 +71,17 @@ public class FloatDecoder extends Decoder {
throw new TsFileDecodingException(
String.format("data type %s is not supported by FloatDecoder", dataType));
}
+ } else if (encodingType == TSEncoding.RLBE) {
+ if (dataType == TSDataType.FLOAT) {
+ decoder = new IntRLBEDecoder();
+ logger.debug("tsfile-encoding FloatDecoder: init decoder using int-rlbe and float");
+ } else if (dataType == TSDataType.DOUBLE) {
+ decoder = new LongRLBEDecoder();
+ logger.debug("tsfile-encoding FloatDecoder: init decoder using long-rlbe and double");
+ } else {
+ throw new TsFileDecodingException(
+ String.format("data type %s is not supported by FloatDecoder", dataType));
+ }
} else {
throw new TsFileDecodingException(
String.format("%s encoding is not supported by FloatDecoder", encodingType));
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java b/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java
index 4655d3d6..4a79e3e6 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java
@@ -72,6 +72,15 @@ public class FloatEncoder extends Encoder {
throw new TsFileEncodingException(
String.format("data type %s is not supported by FloatEncoder", dataType));
}
+ } else if (encodingType == TSEncoding.RLBE) {
+ if (dataType == TSDataType.FLOAT) {
+ encoder = new IntRLBE();
+ } else if (dataType == TSDataType.DOUBLE) {
+ encoder = new LongRLBE();
+ } else {
+ throw new TsFileEncodingException(
+ String.format("data type %s is not supported by FloatEncoder", dataType));
+ }
} else {
throw new TsFileEncodingException(
String.format("%s encoding is not supported by FloatEncoder", encodingType));
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/TSEncodingBuilder.java b/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/TSEncodingBuilder.java
index 232ddd3c..18889438 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/TSEncodingBuilder.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/TSEncodingBuilder.java
@@ -341,6 +341,9 @@ public abstract class TSEncodingBuilder {
}
public static class RLBE extends TSEncodingBuilder {
+
+ private int maxPointNumber = 0;
+
@Override
public Encoder getEncoder(TSDataType type) {
switch (type) {
@@ -351,9 +354,8 @@ public abstract class TSEncodingBuilder {
case TIMESTAMP:
return new LongRLBE();
case FLOAT:
- return new FloatRLBE();
case DOUBLE:
- return new DoubleRLBE();
+ return new FloatEncoder(TSEncoding.RLBE, type, maxPointNumber);
default:
throw new UnSupportedDataTypeException("RLBE doesn't support data type: " + type);
}
(tsfile) 24/33: Create codeql.yml for code scan (#150)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 03c397453d118bd6d7967464c81f68c7d476d011
Author: Haonan <hh...@outlook.com>
AuthorDate: Thu Jul 4 23:01:04 2024 +0800
Create codeql.yml for code scan (#150)
---
.github/workflows/codeql.yml | 84 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 00000000..0c968ef3
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,84 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ "develop" ]
+
+jobs:
+ analyze:
+ name: Analyze (${{ matrix.language }})
+ # Runner size impacts CodeQL analysis time. To learn more, please see:
+ # - https://gh.io/recommended-hardware-resources-for-running-codeql
+ # - https://gh.io/supported-runners-and-hardware-resources
+ # - https://gh.io/using-larger-runners (GitHub.com only)
+ # Consider using larger runners or machines with greater resources for possible analysis time improvements.
+ runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
+ timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
+ permissions:
+ # required for all workflows
+ security-events: write
+
+ # required to fetch internal or private CodeQL packs
+ packages: read
+
+ # only required for workflows in private repositories
+ actions: read
+ contents: read
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: c-cpp
+ build-mode: autobuild
+ - language: java-kotlin
+ build-mode: none # This mode only analyzes Java. Set this to 'autobuild' or 'manual' to analyze Kotlin too.
+ - language: python
+ build-mode: none
+ # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
+ # Use `c-cpp` to analyze code written in C, C++ or both
+ # Use 'java-kotlin' to analyze code written in Java, Kotlin or both
+ # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
+ # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
+ # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
+ # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
+ # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v3
+ with:
+ languages: ${{ matrix.language }}
+ build-mode: ${{ matrix.build-mode }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+
+ # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
+ # queries: security-extended,security-and-quality
+
+ # If the analyze step fails for one of the languages you are analyzing with
+ # "We were unable to automatically build your code", modify the matrix above
+ # to set the build mode to "manual" for that language. Then modify this step
+ # to build your code.
+ # ℹ️ Command-line programs to run using the OS shell.
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v3
+ with:
+ category: "/language:${{matrix.language}}"
(tsfile) 26/33: fix get_cur_timestamp (#159)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 0bfec3b3fbb93fb5eca81bf0cc9a6b1c67af81f5
Author: Hongzhi Gao <76...@qq.com>
AuthorDate: Fri Jul 5 17:57:13 2024 +0800
fix get_cur_timestamp (#159)
---
cpp/src/utils/db_utils.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/src/utils/db_utils.h b/cpp/src/utils/db_utils.h
index d278b637..dec5368f 100644
--- a/cpp/src/utils/db_utils.h
+++ b/cpp/src/utils/db_utils.h
@@ -349,7 +349,7 @@ FORCE_INLINE int64_t get_cur_timestamp() {
int64_t timestamp = 0;
struct timeval tv;
if (gettimeofday(&tv, NULL) >= 0) {
- timestamp = tv.tv_sec * 1000 + tv.tv_usec / 1000;
+ timestamp = (int64_t)tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
return timestamp;
}
(tsfile) 30/33: Bump org.codehaus.mojo:extra-enforcer-rules from 1.7.0 to 1.8.0 (#155)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit a31a9ae7ad4c2aa2e11d6e06136a2714cc75b28b
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Jul 5 18:52:39 2024 +0800
Bump org.codehaus.mojo:extra-enforcer-rules from 1.7.0 to 1.8.0 (#155)
Bumps [org.codehaus.mojo:extra-enforcer-rules](https://github.com/mojohaus/extra-enforcer-rules) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/mojohaus/extra-enforcer-rules/releases)
- [Commits](https://github.com/mojohaus/extra-enforcer-rules/compare/1.7.0...1.8.0)
---
updated-dependencies:
- dependency-name: org.codehaus.mojo:extra-enforcer-rules
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 5a920aa1..9f4749e2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -234,7 +234,7 @@
<dependency>
<groupId>org.codehaus.mojo</groupId>
<artifactId>extra-enforcer-rules</artifactId>
- <version>1.7.0</version>
+ <version>1.8.0</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
(tsfile) 02/33: Add "Navigating-Time-Series Data" document
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 39f0289fbb8e362a37e03e16518dd54fe07700ed
Author: majialin <10...@users.noreply.github.com>
AuthorDate: Tue Jun 25 16:02:34 2024 +0800
Add "Navigating-Time-Series Data" document
---
docs/pnpm-lock.yaml | 4950 +++++++++-----------
docs/src/.vuepress/sidebar/V1.0.x/en.ts | 6 +
docs/src/.vuepress/sidebar/V1.0.x/zh.ts | 5 +
.../QuickStart/Navigating_Time_Series_Data.md | 64 +
.../QuickStart/Navigating_Time_Series_Data.md | 67 +
5 files changed, 2457 insertions(+), 2635 deletions(-)
diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index 4d67c477..cbd478c8 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -1,142 +1,248 @@
-lockfileVersion: '9.0'
+lockfileVersion: '6.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
-importers:
-
- .:
- devDependencies:
- '@docsearch/css':
- specifier: ^3.5.2
- version: 3.5.2
- '@docsearch/js':
- specifier: ^3.5.2
- version: 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)
- '@docsearch/react':
- specifier: ^3.5.2
- version: 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)
- '@vuepress/client':
- specifier: 2.0.0-rc.0
- version: 2.0.0-rc.0
- '@vuepress/plugin-docsearch':
- specifier: 2.0.0-rc.0
- version: 2.0.0-rc.0(@algolia/client-search@4.22.1)(search-insights@2.13.0)
- '@vuepress/shared':
- specifier: 2.0.0-rc.0
- version: 2.0.0-rc.0
- '@vuepress/utils':
- specifier: 2.0.0-rc.0
- version: 2.0.0-rc.0
- gh-pages:
- specifier: ^6.1.1
- version: 6.1.1
- ts-debounce:
- specifier: ^4.0.0
- version: 4.0.0
- vue:
- specifier: ^3.4.3
- version: 3.4.15
- vue-router:
- specifier: ^4.2.5
- version: 4.2.5(vue@3.4.15)
- vuepress:
- specifier: 2.0.0-rc.0
- version: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
- vuepress-theme-hope:
- specifier: 2.0.0-rc.11
- version: 2.0.0-rc.11(@vuepress/plugin-docsearch@2.0.0-rc.0)(markdown-it@13.0.2)(vuepress@2.0.0-rc.0)
+devDependencies:
+ '@docsearch/css':
+ specifier: ^3.5.2
+ version: 3.6.0
+ '@docsearch/js':
+ specifier: ^3.5.2
+ version: 3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
+ '@docsearch/react':
+ specifier: ^3.5.2
+ version: 3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
+ '@vuepress/client':
+ specifier: 2.0.0-rc.0
+ version: 2.0.0-rc.0
+ '@vuepress/plugin-docsearch':
+ specifier: 2.0.0-rc.0
+ version: 2.0.0-rc.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
+ '@vuepress/shared':
+ specifier: 2.0.0-rc.0
+ version: 2.0.0-rc.0
+ '@vuepress/utils':
+ specifier: 2.0.0-rc.0
+ version: 2.0.0-rc.0
+ gh-pages:
+ specifier: ^6.1.1
+ version: 6.1.1
+ ts-debounce:
+ specifier: ^4.0.0
+ version: 4.0.0
+ vue:
+ specifier: ^3.4.3
+ version: 3.4.30
+ vue-router:
+ specifier: ^4.2.5
+ version: 4.4.0(vue@3.4.30)
+ vuepress:
+ specifier: 2.0.0-rc.0
+ version: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
+ vuepress-theme-hope:
+ specifier: 2.0.0-rc.11
+ version: 2.0.0-rc.11(@vuepress/plugin-docsearch@2.0.0-rc.0)(markdown-it@13.0.2)(vuepress@2.0.0-rc.0)
packages:
- '@algolia/autocomplete-core@1.9.3':
+ /@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)(search-insights@2.14.0):
resolution: {integrity: sha512-009HdfugtGCdC4JdXUbVJClA0q0zh24yyePn+KUGk3rP7j8FEe/m5Yo/z65gn6nP/cM39PxpzqKrL7A6fP6PPw==}
+ dependencies:
+ '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)(search-insights@2.14.0)
+ '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)
+ transitivePeerDependencies:
+ - '@algolia/client-search'
+ - algoliasearch
+ - search-insights
+ dev: true
- '@algolia/autocomplete-plugin-algolia-insights@1.9.3':
+ /@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)(search-insights@2.14.0):
resolution: {integrity: sha512-a/yTUkcO/Vyy+JffmAnTWbr4/90cLzw+CC3bRbhnULr/EM0fGNvM13oQQ14f2moLMcVDyAx/leczLlAOovhSZg==}
peerDependencies:
search-insights: '>= 1 < 3'
+ dependencies:
+ '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)
+ search-insights: 2.14.0
+ transitivePeerDependencies:
+ - '@algolia/client-search'
+ - algoliasearch
+ dev: true
- '@algolia/autocomplete-preset-algolia@1.9.3':
+ /@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3):
resolution: {integrity: sha512-d4qlt6YmrLMYy95n5TB52wtNDr6EgAIPH81dvvvW8UmuWRgxEtY0NJiPwl/h95JtG2vmRM804M0DSwMCNZlzRA==}
peerDependencies:
'@algolia/client-search': '>= 4.9.1 < 6'
algoliasearch: '>= 4.9.1 < 6'
+ dependencies:
+ '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)
+ '@algolia/client-search': 4.23.3
+ algoliasearch: 4.23.3
+ dev: true
- '@algolia/autocomplete-shared@1.9.3':
+ /@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3):
resolution: {integrity: sha512-Wnm9E4Ye6Rl6sTTqjoymD+l8DjSTHsHboVRYrKgEt8Q7UHm9nYbqhN/i0fhUYA3OAEH7WA8x3jfpnmJm3rKvaQ==}
peerDependencies:
'@algolia/client-search': '>= 4.9.1 < 6'
algoliasearch: '>= 4.9.1 < 6'
+ dependencies:
+ '@algolia/client-search': 4.23.3
+ algoliasearch: 4.23.3
+ dev: true
+
+ /@algolia/cache-browser-local-storage@4.23.3:
+ resolution: {integrity: sha512-vRHXYCpPlTDE7i6UOy2xE03zHF2C8MEFjPN2v7fRbqVpcOvAUQK81x3Kc21xyb5aSIpYCjWCZbYZuz8Glyzyyg==}
+ dependencies:
+ '@algolia/cache-common': 4.23.3
+ dev: true
- '@algolia/cache-browser-local-storage@4.22.1':
- resolution: {integrity: sha512-Sw6IAmOCvvP6QNgY9j+Hv09mvkvEIDKjYW8ow0UDDAxSXy664RBNQk3i/0nt7gvceOJ6jGmOTimaZoY1THmU7g==}
+ /@algolia/cache-common@4.23.3:
+ resolution: {integrity: sha512-h9XcNI6lxYStaw32pHpB1TMm0RuxphF+Ik4o7tcQiodEdpKK+wKufY6QXtba7t3k8eseirEMVB83uFFF3Nu54A==}
+ dev: true
- '@algolia/cache-common@4.22.1':
- resolution: {integrity: sha512-TJMBKqZNKYB9TptRRjSUtevJeQVXRmg6rk9qgFKWvOy8jhCPdyNZV1nB3SKGufzvTVbomAukFR8guu/8NRKBTA==}
+ /@algolia/cache-in-memory@4.23.3:
+ resolution: {integrity: sha512-yvpbuUXg/+0rbcagxNT7un0eo3czx2Uf0y4eiR4z4SD7SiptwYTpbuS0IHxcLHG3lq22ukx1T6Kjtk/rT+mqNg==}
+ dependencies:
+ '@algolia/cache-common': 4.23.3
+ dev: true
- '@algolia/cache-in-memory@4.22.1':
- resolution: {integrity: sha512-ve+6Ac2LhwpufuWavM/aHjLoNz/Z/sYSgNIXsinGofWOysPilQZPUetqLj8vbvi+DHZZaYSEP9H5SRVXnpsNNw==}
+ /@algolia/client-account@4.23.3:
+ resolution: {integrity: sha512-hpa6S5d7iQmretHHF40QGq6hz0anWEHGlULcTIT9tbUssWUriN9AUXIFQ8Ei4w9azD0hc1rUok9/DeQQobhQMA==}
+ dependencies:
+ '@algolia/client-common': 4.23.3
+ '@algolia/client-search': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
- '@algolia/client-account@4.22.1':
- resolution: {integrity: sha512-k8m+oegM2zlns/TwZyi4YgCtyToackkOpE+xCaKCYfBfDtdGOaVZCM5YvGPtK+HGaJMIN/DoTL8asbM3NzHonw==}
+ /@algolia/client-analytics@4.23.3:
+ resolution: {integrity: sha512-LBsEARGS9cj8VkTAVEZphjxTjMVCci+zIIiRhpFun9jGDUlS1XmhCW7CTrnaWeIuCQS/2iPyRqSy1nXPjcBLRA==}
+ dependencies:
+ '@algolia/client-common': 4.23.3
+ '@algolia/client-search': 4.23.3
+ '@algolia/requester-common': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
- '@algolia/client-analytics@4.22.1':
- resolution: {integrity: sha512-1ssi9pyxyQNN4a7Ji9R50nSdISIumMFDwKNuwZipB6TkauJ8J7ha/uO60sPJFqQyqvvI+px7RSNRQT3Zrvzieg==}
+ /@algolia/client-common@4.23.3:
+ resolution: {integrity: sha512-l6EiPxdAlg8CYhroqS5ybfIczsGUIAC47slLPOMDeKSVXYG1n0qGiz4RjAHLw2aD0xzh2EXZ7aRguPfz7UKDKw==}
+ dependencies:
+ '@algolia/requester-common': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
- '@algolia/client-common@4.22.1':
- resolution: {integrity: sha512-IvaL5v9mZtm4k4QHbBGDmU3wa/mKokmqNBqPj0K7lcR8ZDKzUorhcGp/u8PkPC/e0zoHSTvRh7TRkGX3Lm7iOQ==}
+ /@algolia/client-personalization@4.23.3:
+ resolution: {integrity: sha512-3E3yF3Ocr1tB/xOZiuC3doHQBQ2zu2MPTYZ0d4lpfWads2WTKG7ZzmGnsHmm63RflvDeLK/UVx7j2b3QuwKQ2g==}
+ dependencies:
+ '@algolia/client-common': 4.23.3
+ '@algolia/requester-common': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
- '@algolia/client-personalization@4.22.1':
- resolution: {integrity: sha512-sl+/klQJ93+4yaqZ7ezOttMQ/nczly/3GmgZXJ1xmoewP5jmdP/X/nV5U7EHHH3hCUEHeN7X1nsIhGPVt9E1cQ==}
+ /@algolia/client-search@4.23.3:
+ resolution: {integrity: sha512-P4VAKFHqU0wx9O+q29Q8YVuaowaZ5EM77rxfmGnkHUJggh28useXQdopokgwMeYw2XUht49WX5RcTQ40rZIabw==}
+ dependencies:
+ '@algolia/client-common': 4.23.3
+ '@algolia/requester-common': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
- '@algolia/client-search@4.22.1':
- resolution: {integrity: sha512-yb05NA4tNaOgx3+rOxAmFztgMTtGBi97X7PC3jyNeGiwkAjOZc2QrdZBYyIdcDLoI09N0gjtpClcackoTN0gPA==}
+ /@algolia/logger-common@4.23.3:
+ resolution: {integrity: sha512-y9kBtmJwiZ9ZZ+1Ek66P0M68mHQzKRxkW5kAAXYN/rdzgDN0d2COsViEFufxJ0pb45K4FRcfC7+33YB4BLrZ+g==}
+ dev: true
- '@algolia/logger-common@4.22.1':
- resolution: {integrity: sha512-OnTFymd2odHSO39r4DSWRFETkBufnY2iGUZNrMXpIhF5cmFE8pGoINNPzwg02QLBlGSaLqdKy0bM8S0GyqPLBg==}
+ /@algolia/logger-console@4.23.3:
+ resolution: {integrity: sha512-8xoiseoWDKuCVnWP8jHthgaeobDLolh00KJAdMe9XPrWPuf1by732jSpgy2BlsLTaT9m32pHI8CRfrOqQzHv3A==}
+ dependencies:
+ '@algolia/logger-common': 4.23.3
+ dev: true
- '@algolia/logger-console@4.22.1':
- resolution: {integrity: sha512-O99rcqpVPKN1RlpgD6H3khUWylU24OXlzkavUAMy6QZd1776QAcauE3oP8CmD43nbaTjBexZj2nGsBH9Tc0FVA==}
+ /@algolia/recommend@4.23.3:
+ resolution: {integrity: sha512-9fK4nXZF0bFkdcLBRDexsnGzVmu4TSYZqxdpgBW2tEyfuSSY54D4qSRkLmNkrrz4YFvdh2GM1gA8vSsnZPR73w==}
+ dependencies:
+ '@algolia/cache-browser-local-storage': 4.23.3
+ '@algolia/cache-common': 4.23.3
+ '@algolia/cache-in-memory': 4.23.3
+ '@algolia/client-common': 4.23.3
+ '@algolia/client-search': 4.23.3
+ '@algolia/logger-common': 4.23.3
+ '@algolia/logger-console': 4.23.3
+ '@algolia/requester-browser-xhr': 4.23.3
+ '@algolia/requester-common': 4.23.3
+ '@algolia/requester-node-http': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
- '@algolia/requester-browser-xhr@4.22.1':
- resolution: {integrity: sha512-dtQGYIg6MteqT1Uay3J/0NDqD+UciHy3QgRbk7bNddOJu+p3hzjTRYESqEnoX/DpEkaNYdRHUKNylsqMpgwaEw==}
+ /@algolia/requester-browser-xhr@4.23.3:
+ resolution: {integrity: sha512-jDWGIQ96BhXbmONAQsasIpTYWslyjkiGu0Quydjlowe+ciqySpiDUrJHERIRfELE5+wFc7hc1Q5hqjGoV7yghw==}
+ dependencies:
+ '@algolia/requester-common': 4.23.3
+ dev: true
- '@algolia/requester-common@4.22.1':
- resolution: {integrity: sha512-dgvhSAtg2MJnR+BxrIFqlLtkLlVVhas9HgYKMk2Uxiy5m6/8HZBL40JVAMb2LovoPFs9I/EWIoFVjOrFwzn5Qg==}
+ /@algolia/requester-common@4.23.3:
+ resolution: {integrity: sha512-xloIdr/bedtYEGcXCiF2muajyvRhwop4cMZo+K2qzNht0CMzlRkm8YsDdj5IaBhshqfgmBb3rTg4sL4/PpvLYw==}
+ dev: true
- '@algolia/requester-node-http@4.22.1':
- resolution: {integrity: sha512-JfmZ3MVFQkAU+zug8H3s8rZ6h0ahHZL/SpMaSasTCGYR5EEJsCc8SI5UZ6raPN2tjxa5bxS13BRpGSBUens7EA==}
+ /@algolia/requester-node-http@4.23.3:
+ resolution: {integrity: sha512-zgu++8Uj03IWDEJM3fuNl34s746JnZOWn1Uz5taV1dFyJhVM/kTNw9Ik7YJWiUNHJQXcaD8IXD1eCb0nq/aByA==}
+ dependencies:
+ '@algolia/requester-common': 4.23.3
+ dev: true
- '@algolia/transporter@4.22.1':
- resolution: {integrity: sha512-kzWgc2c9IdxMa3YqA6TN0NW5VrKYYW/BELIn7vnLyn+U/RFdZ4lxxt9/8yq3DKV5snvoDzzO4ClyejZRdV3lMQ==}
+ /@algolia/transporter@4.23.3:
+ resolution: {integrity: sha512-Wjl5gttqnf/gQKJA+dafnD0Y6Yw97yvfY8R9h0dQltX1GXTgNs1zWgvtWW0tHl1EgMdhAyw189uWiZMnL3QebQ==}
+ dependencies:
+ '@algolia/cache-common': 4.23.3
+ '@algolia/logger-common': 4.23.3
+ '@algolia/requester-common': 4.23.3
+ dev: true
- '@babel/helper-string-parser@7.23.4':
- resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==}
+ /@babel/helper-string-parser@7.24.7:
+ resolution: {integrity: sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==}
engines: {node: '>=6.9.0'}
+ dev: true
- '@babel/helper-validator-identifier@7.22.20':
- resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==}
+ /@babel/helper-validator-identifier@7.24.7:
+ resolution: {integrity: sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==}
engines: {node: '>=6.9.0'}
+ dev: true
- '@babel/parser@7.23.6':
- resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==}
+ /@babel/parser@7.24.7:
+ resolution: {integrity: sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==}
engines: {node: '>=6.0.0'}
hasBin: true
+ dependencies:
+ '@babel/types': 7.24.7
+ dev: true
- '@babel/types@7.23.6':
- resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==}
+ /@babel/types@7.24.7:
+ resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==}
engines: {node: '>=6.9.0'}
+ dependencies:
+ '@babel/helper-string-parser': 7.24.7
+ '@babel/helper-validator-identifier': 7.24.7
+ to-fast-properties: 2.0.0
+ dev: true
- '@docsearch/css@3.5.2':
- resolution: {integrity: sha512-SPiDHaWKQZpwR2siD0KQUwlStvIAnEyK6tAE2h2Wuoq8ue9skzhlyVQ1ddzOxX6khULnAALDiR/isSF3bnuciA==}
+ /@docsearch/css@3.6.0:
+ resolution: {integrity: sha512-+sbxb71sWre+PwDK7X2T8+bhS6clcVMLwBPznX45Qu6opJcgRjAp7gYSDzVFp187J+feSj5dNBN1mJoi6ckkUQ==}
+ dev: true
- '@docsearch/js@3.5.2':
- resolution: {integrity: sha512-p1YFTCDflk8ieHgFJYfmyHBki1D61+U9idwrLh+GQQMrBSP3DLGKpy0XUJtPjAOPltcVbqsTjiPFfH7JImjUNg==}
+ /@docsearch/js@3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0):
+ resolution: {integrity: sha512-QujhqINEElrkIfKwyyyTfbsfMAYCkylInLYMRqHy7PHc8xTBQCow73tlo/Kc7oIwBrCLf0P3YhjlOeV4v8hevQ==}
+ dependencies:
+ '@docsearch/react': 3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
+ preact: 10.22.0
+ transitivePeerDependencies:
+ - '@algolia/client-search'
+ - '@types/react'
+ - react
+ - react-dom
+ - search-insights
+ dev: true
- '@docsearch/react@3.5.2':
- resolution: {integrity: sha512-9Ahcrs5z2jq/DcAvYtvlqEBHImbm4YJI8M9y0x6Tqg598P40HTEkX7hsMcIuThI+hTFxRGZ9hll0Wygm2yEjng==}
+ /@docsearch/react@3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0):
+ resolution: {integrity: sha512-HUFut4ztcVNmqy9gp/wxNbC7pTOHhgVVkHVGCACTuLhUKUhKAF9KYHJtMiLUJxEqiFLQiuri1fWF8zqwM/cu1w==}
peerDependencies:
'@types/react': '>= 16.8.0 < 19.0.0'
react: '>= 16.8.0 < 19.0.0'
@@ -151,187 +257,313 @@ packages:
optional: true
search-insights:
optional: true
+ dependencies:
+ '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)(search-insights@2.14.0)
+ '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.23.3)(algoliasearch@4.23.3)
+ '@docsearch/css': 3.6.0
+ algoliasearch: 4.23.3
+ search-insights: 2.14.0
+ transitivePeerDependencies:
+ - '@algolia/client-search'
+ dev: true
- '@esbuild/aix-ppc64@0.19.11':
- resolution: {integrity: sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==}
+ /@esbuild/aix-ppc64@0.19.12:
+ resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==}
engines: {node: '>=12'}
cpu: [ppc64]
os: [aix]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/android-arm64@0.19.11':
- resolution: {integrity: sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==}
+ /@esbuild/android-arm64@0.19.12:
+ resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==}
engines: {node: '>=12'}
cpu: [arm64]
os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/android-arm@0.19.11':
- resolution: {integrity: sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==}
+ /@esbuild/android-arm@0.19.12:
+ resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==}
engines: {node: '>=12'}
cpu: [arm]
os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/android-x64@0.19.11':
- resolution: {integrity: sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==}
+ /@esbuild/android-x64@0.19.12:
+ resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==}
engines: {node: '>=12'}
cpu: [x64]
os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/darwin-arm64@0.19.11':
- resolution: {integrity: sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==}
+ /@esbuild/darwin-arm64@0.19.12:
+ resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==}
engines: {node: '>=12'}
cpu: [arm64]
os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/darwin-x64@0.19.11':
- resolution: {integrity: sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==}
+ /@esbuild/darwin-x64@0.19.12:
+ resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==}
engines: {node: '>=12'}
cpu: [x64]
os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/freebsd-arm64@0.19.11':
- resolution: {integrity: sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==}
+ /@esbuild/freebsd-arm64@0.19.12:
+ resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==}
engines: {node: '>=12'}
cpu: [arm64]
os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/freebsd-x64@0.19.11':
- resolution: {integrity: sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==}
+ /@esbuild/freebsd-x64@0.19.12:
+ resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==}
engines: {node: '>=12'}
cpu: [x64]
os: [freebsd]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-arm64@0.19.11':
- resolution: {integrity: sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==}
+ /@esbuild/linux-arm64@0.19.12:
+ resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==}
engines: {node: '>=12'}
cpu: [arm64]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-arm@0.19.11':
- resolution: {integrity: sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==}
+ /@esbuild/linux-arm@0.19.12:
+ resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==}
engines: {node: '>=12'}
cpu: [arm]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-ia32@0.19.11':
- resolution: {integrity: sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==}
+ /@esbuild/linux-ia32@0.19.12:
+ resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==}
engines: {node: '>=12'}
cpu: [ia32]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-loong64@0.19.11':
- resolution: {integrity: sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==}
+ /@esbuild/linux-loong64@0.19.12:
+ resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==}
engines: {node: '>=12'}
cpu: [loong64]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-mips64el@0.19.11':
- resolution: {integrity: sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==}
+ /@esbuild/linux-mips64el@0.19.12:
+ resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==}
engines: {node: '>=12'}
cpu: [mips64el]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-ppc64@0.19.11':
- resolution: {integrity: sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==}
+ /@esbuild/linux-ppc64@0.19.12:
+ resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==}
engines: {node: '>=12'}
cpu: [ppc64]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-riscv64@0.19.11':
- resolution: {integrity: sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==}
+ /@esbuild/linux-riscv64@0.19.12:
+ resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==}
engines: {node: '>=12'}
cpu: [riscv64]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-s390x@0.19.11':
- resolution: {integrity: sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==}
+ /@esbuild/linux-s390x@0.19.12:
+ resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==}
engines: {node: '>=12'}
cpu: [s390x]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/linux-x64@0.19.11':
- resolution: {integrity: sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==}
+ /@esbuild/linux-x64@0.19.12:
+ resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==}
engines: {node: '>=12'}
cpu: [x64]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/netbsd-x64@0.19.11':
- resolution: {integrity: sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==}
+ /@esbuild/netbsd-x64@0.19.12:
+ resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==}
engines: {node: '>=12'}
cpu: [x64]
os: [netbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/openbsd-x64@0.19.11':
- resolution: {integrity: sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==}
+ /@esbuild/openbsd-x64@0.19.12:
+ resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==}
engines: {node: '>=12'}
cpu: [x64]
os: [openbsd]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/sunos-x64@0.19.11':
- resolution: {integrity: sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==}
+ /@esbuild/sunos-x64@0.19.12:
+ resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==}
engines: {node: '>=12'}
cpu: [x64]
os: [sunos]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/win32-arm64@0.19.11':
- resolution: {integrity: sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==}
+ /@esbuild/win32-arm64@0.19.12:
+ resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==}
engines: {node: '>=12'}
cpu: [arm64]
os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/win32-ia32@0.19.11':
- resolution: {integrity: sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==}
+ /@esbuild/win32-ia32@0.19.12:
+ resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==}
engines: {node: '>=12'}
cpu: [ia32]
os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@esbuild/win32-x64@0.19.11':
- resolution: {integrity: sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==}
+ /@esbuild/win32-x64@0.19.12:
+ resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==}
engines: {node: '>=12'}
cpu: [x64]
os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@jridgewell/sourcemap-codec@1.4.15':
+ /@jridgewell/sourcemap-codec@1.4.15:
resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==}
+ dev: true
- '@lit-labs/ssr-dom-shim@1.1.2':
- resolution: {integrity: sha512-jnOD+/+dSrfTWYfSXBXlo5l5f0q1UuJo3tkbMDCYA2lKUYq79jaxqtGEvnRoh049nt1vdo1+45RinipU6FGY2g==}
+ /@lit-labs/ssr-dom-shim@1.2.0:
+ resolution: {integrity: sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==}
+ dev: true
- '@lit/reactive-element@2.0.3':
- resolution: {integrity: sha512-e067EuTNNgOHm1tZcc0Ia7TCzD/9ZpoPegHKgesrGK6pSDRGkGDAQbYuQclqLPIoJ9eC8Kb9mYtGryWcM5AywA==}
+ /@lit/reactive-element@2.0.4:
+ resolution: {integrity: sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==}
+ dependencies:
+ '@lit-labs/ssr-dom-shim': 1.2.0
+ dev: true
- '@mdit-vue/plugin-component@1.0.0':
+ /@mdit-vue/plugin-component@1.0.0:
resolution: {integrity: sha512-ZXsJwxkG5yyTHARIYbR74cT4AZ0SfMokFFjiHYCbypHIeYWgJhso4+CZ8+3V9EWFG3EHlGoKNGqKp9chHnqntQ==}
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/plugin-frontmatter@1.0.0':
+ /@mdit-vue/plugin-frontmatter@1.0.0:
resolution: {integrity: sha512-MMA7Ny+YPZA7eDOY1t4E+rKuEWO39mzDdP/M68fKdXJU6VfcGkPr7gnpnJfW2QBJ5qIvMrK/3lDAA2JBy5TfpA==}
+ dependencies:
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ gray-matter: 4.0.3
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/plugin-headers@1.0.0':
+ /@mdit-vue/plugin-headers@1.0.0:
resolution: {integrity: sha512-0rK/iKy6x13d/Pp5XxdLBshTD0+YjZvtHIaIV+JO+/H2WnOv7oaRgs48G5d44z3XJVUE2u6fNnTlI169fef0/A==}
+ dependencies:
+ '@mdit-vue/shared': 1.0.0
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/plugin-sfc@1.0.0':
+ /@mdit-vue/plugin-sfc@1.0.0:
resolution: {integrity: sha512-agMUe0fY4YHxsZivSvplBwRwrFvsIf/JNUJCAYq1+2Sg9+2hviTBZwjZDxYqHDHOVLtiNr+wuo68tE24mAx3AQ==}
+ dependencies:
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/plugin-title@1.0.0':
+ /@mdit-vue/plugin-title@1.0.0:
resolution: {integrity: sha512-8yC60fCZ95xcJ/cvJH4Lv43Rs4k+33UGyKrRWj5J8TNyMwUyGcwur0XyPM+ffJH4/Bzq4myZLsj/TTFSkXRxvw==}
+ dependencies:
+ '@mdit-vue/shared': 1.0.0
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/plugin-toc@1.0.0':
+ /@mdit-vue/plugin-toc@1.0.0:
resolution: {integrity: sha512-WN8blfX0X/5Nolic0ClDWP7eVo9IB+U4g0jbycX3lolIZX5Bai1UpsD3QYZr5VVsPbQJMKMGvTrCEtCNTGvyWQ==}
+ dependencies:
+ '@mdit-vue/shared': 1.0.0
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/shared@1.0.0':
+ /@mdit-vue/shared@1.0.0:
resolution: {integrity: sha512-nbYBfmEi+pR2Lm0Z6TMVX2/iBjfr/kGEsHW8CC0rQw+3+sG5dY6VG094HuFAkiAmmvZx9DZZb+7ZMWp9vkwCRw==}
+ dependencies:
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit-vue/types@1.0.0':
+ /@mdit-vue/types@1.0.0:
resolution: {integrity: sha512-xeF5+sHLzRNF7plbksywKCph4qli20l72of2fMlZQQ7RECvXYrRkE9+bjRFQCyULC7B8ydUYbpbkux5xJlVWyw==}
+ dev: true
- '@mdit/plugin-alert@0.7.6':
+ /@mdit/plugin-alert@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-Z+/bHBDniCz/Q+TMa3M6f47KG4tUKvJI8FHXhDwgbKLzDLn045ZBHcOTeqvuWrrjCIKBEo4fVAlYszYcehxmfg==}
peerDependencies:
markdown-it: ^13.0.2
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-align@0.7.6':
+ /@mdit/plugin-align@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-NYGrsnX1c84dtY1tugDVX71zxxfcGSIjWANzQ0/od4B0+N31eXkq3SXdAjCXOWUUHSa6phfvtok+x4V9ExQwHA==}
engines: {node: '>= 18'}
peerDependencies:
@@ -339,8 +571,13 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@mdit/plugin-container': 0.7.6(markdown-it@13.0.2)
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-attrs@0.7.6':
+ /@mdit/plugin-attrs@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-vTSsqZUXglZRQ4cLNou6N2cTLudHS01Tir+HPtrWkN+VB4VAIRlCKV3hf0vzKRM+HR3DSe+vQMrWzfnQdD0o4A==}
engines: {node: '>= 18'}
peerDependencies:
@@ -348,8 +585,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-container@0.7.6':
+ /@mdit/plugin-container@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-egEYoJLkar4hxrBfFf6tO3IfoLzeUHYChGRI3FA2fxiMwwyclPvBMMQTtG2rY3sjPy497Z86QiqYwjRM0qA8Mw==}
engines: {node: '>= 18'}
peerDependencies:
@@ -357,16 +598,24 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-demo@0.7.6':
+ /@mdit/plugin-demo@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-pybxLVpIKYlxt7fgjHK4Zd6f/IMCjACB6eZmIIlow0eOnijRnikHdRDVkoyDOxcFuQvP0yvT6LWcQlhHF+CGwQ==}
peerDependencies:
markdown-it: ^13.0.2
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-figure@0.7.6':
+ /@mdit/plugin-figure@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-ysH5O3WWuDrfxLWQO4wYXYGdo8oi+EbMQFgbaSTxhoPKTFf3HTovCn3RANn7qATBqmGP26zf0hY55mX9BFUu5A==}
engines: {node: '>= 18'}
peerDependencies:
@@ -374,14 +623,22 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-footnote@0.7.6':
+ /@mdit/plugin-footnote@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-fQvbi3+/Hm+k4GJptXCc5i0n9/+ZpQx4yqpjOTGGSUz1k22XU07YaK3wpL9w+nPAfcBfzD06D72Y+eDIG5wi8w==}
engines: {node: '>= 18'}
peerDependencies:
markdown-it: ^13.0.2
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-img-lazyload@0.7.6':
+ /@mdit/plugin-img-lazyload@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-BBgxlXCOO7+9TMHJXtUyvi48jlH4ZYQtC9lNfgu1rvmq56iblZ7etOzg61/CmXmLgMHNvCbb/Kx7gRLkOBhv6A==}
engines: {node: '>= 18'}
peerDependencies:
@@ -389,8 +646,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-img-mark@0.7.6':
+ /@mdit/plugin-img-mark@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-IhbkmTLbxr+c04ZQcSV2IFq8n1GeRFO08qQagkONUijI1O2G/RE2y6QvCVBUy0gB1Hc8c1i9vEyK1F0e4GpheQ==}
engines: {node: '>= 18'}
peerDependencies:
@@ -398,8 +659,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-img-size@0.7.6':
+ /@mdit/plugin-img-size@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-GZGEbuR0l4+ENXDG1Y2HsrNO2JuEmjI6PPe7pgsolk5yveWOiqzcEV4ushrWnpvwNal3Acuj+dpFDmZFOtm42g==}
engines: {node: '>= 18'}
peerDependencies:
@@ -407,16 +672,25 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-include@0.7.6':
+ /@mdit/plugin-include@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-4Pu0SdD2IOONLor/3GtQOYOBDv1xZ1LWByXLhht0kqEioX5D+aDZ5KD5MZ0AxH0xoNUGMynMEn/ak4/D9LLI7Q==}
peerDependencies:
markdown-it: ^13.0.2
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ upath: 2.0.1
+ dev: true
- '@mdit/plugin-katex@0.7.6':
+ /@mdit/plugin-katex@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-ZbPIks1SlgzS5R6YOL5s0J5vk20ROl5hF+Yj9o6CiEljodK2ln0ewpX36qM6POVrS/cu6E4Lx4X0fc5JTI6nAQ==}
engines: {node: '>= 18'}
peerDependencies:
@@ -427,8 +701,14 @@ packages:
optional: true
markdown-it:
optional: true
+ dependencies:
+ '@mdit/plugin-tex': 0.7.6(markdown-it@13.0.2)
+ '@types/katex': 0.16.7
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-mark@0.7.6':
+ /@mdit/plugin-mark@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-D9gv+ebVORa4r69t0JeJg3NW9gCR/NOGYa1DKYDEQOJoZ1WwjZVuhdxd3wCpLKtqDLnyHTFWd3cnV/HHrmca3w==}
engines: {node: '>= 18'}
peerDependencies:
@@ -436,8 +716,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-mathjax@0.7.6':
+ /@mdit/plugin-mathjax@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-Sn3nYbkPftAF5tgemIJ1aClxgU4NnElHPV5PIgkMxwusaSsN4RB+GZ1NmTKrPUqVoIZi0pO1oYxy08TlIHcrPg==}
engines: {node: '>= 18'}
peerDependencies:
@@ -448,8 +732,14 @@ packages:
optional: true
mathjax-full:
optional: true
+ dependencies:
+ '@mdit/plugin-tex': 0.7.6(markdown-it@13.0.2)
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ upath: 2.0.1
+ dev: true
- '@mdit/plugin-stylize@0.7.6':
+ /@mdit/plugin-stylize@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-dhhYxo4KdnB66g1080qeuz8X/80q3h4Cpmwnwi2rCbQfl29Nv26H5tz5pp15NKQfdfVgrZnXXLsDskJeg5IcaQ==}
engines: {node: '>= 18'}
peerDependencies:
@@ -457,8 +747,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-sub@0.7.6':
+ /@mdit/plugin-sub@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-jo60gUC2KwnG4SqtyrbyI16hOcxb+Y1LwUKxXKfZRbZbcPcOfrzjE8q7XEq4MhmU51mfqY6EvCoB0yo49Zh2QA==}
engines: {node: '>= 18'}
peerDependencies:
@@ -466,8 +760,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-sup@0.7.6':
+ /@mdit/plugin-sup@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-bCR1DxNuPAyYOaTtl3VkrRc7dMsJjrqt9HnM9T1ZiprW08uciaT37fLXF7DeUHWhGpcklI9dFtaU5cQkjUosTg==}
engines: {node: '>= 18'}
peerDependencies:
@@ -475,16 +773,24 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-tab@0.7.6':
+ /@mdit/plugin-tab@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-kWwWmhv+PeeA9aC5InGyY4eJeIsCDDMhi1tbzyKW/wJ1eeFp+rpWpSfWwUe6QyTy/ZOhQ1nGXz0/uXI4xWz4Xw==}
peerDependencies:
markdown-it: ^13.0.2
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-tasklist@0.7.6':
+ /@mdit/plugin-tasklist@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-ZsPHqQv/Cd9TUG3JfmrPOMRFR/SOG3/menWTz2kwE1HtJ1CUfBmoCRtfq2Sm7Rlqg/P6ZfWAd1t9bOwGkxD/5w==}
engines: {node: '>= 18'}
peerDependencies:
@@ -492,8 +798,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-tex@0.7.6':
+ /@mdit/plugin-tex@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-TZfIJp98n7NI0TxDSxPs4Il1fqyJ/1GE3v8UZHA1DbfAdiVMxno/Dun9381ZxoJYibl+dnX3Kz7Ej3BDOceGGA==}
engines: {node: '>= 18'}
peerDependencies:
@@ -501,8 +811,12 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@mdit/plugin-uml@0.7.6':
+ /@mdit/plugin-uml@0.7.6(markdown-it@13.0.2):
resolution: {integrity: sha512-P/aRntMnMfvtAEcLCkg6vhzNFEidj6jIno7VXr3HZNLitonr9ihnksM6jgrqG1rrMo4okBWUGFFGqsR8hHJk6g==}
engines: {node: '>= 18'}
peerDependencies:
@@ -510,2147 +824,468 @@ packages:
peerDependenciesMeta:
markdown-it:
optional: true
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ markdown-it: 13.0.2
+ dev: true
- '@nodelib/fs.scandir@2.1.5':
+ /@nodelib/fs.scandir@2.1.5:
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ run-parallel: 1.2.0
+ dev: true
- '@nodelib/fs.stat@2.0.5':
+ /@nodelib/fs.stat@2.0.5:
resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
engines: {node: '>= 8'}
+ dev: true
- '@nodelib/fs.walk@1.2.8':
+ /@nodelib/fs.walk@1.2.8:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
+ dependencies:
+ '@nodelib/fs.scandir': 2.1.5
+ fastq: 1.17.1
+ dev: true
- '@rollup/rollup-android-arm-eabi@4.9.6':
- resolution: {integrity: sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg==}
+ /@rollup/rollup-android-arm-eabi@4.18.0:
+ resolution: {integrity: sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==}
cpu: [arm]
os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-android-arm64@4.9.6':
- resolution: {integrity: sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw==}
+ /@rollup/rollup-android-arm64@4.18.0:
+ resolution: {integrity: sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==}
cpu: [arm64]
os: [android]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-darwin-arm64@4.9.6':
- resolution: {integrity: sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw==}
+ /@rollup/rollup-darwin-arm64@4.18.0:
+ resolution: {integrity: sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==}
cpu: [arm64]
os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-darwin-x64@4.9.6':
- resolution: {integrity: sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog==}
+ /@rollup/rollup-darwin-x64@4.18.0:
+ resolution: {integrity: sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==}
cpu: [x64]
os: [darwin]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-linux-arm-gnueabihf@4.9.6':
- resolution: {integrity: sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ==}
+ /@rollup/rollup-linux-arm-gnueabihf@4.18.0:
+ resolution: {integrity: sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==}
cpu: [arm]
os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/rollup-linux-arm-musleabihf@4.18.0:
+ resolution: {integrity: sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==}
+ cpu: [arm]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-linux-arm64-gnu@4.9.6':
- resolution: {integrity: sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ==}
+ /@rollup/rollup-linux-arm64-gnu@4.18.0:
+ resolution: {integrity: sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==}
cpu: [arm64]
os: [linux]
- libc: [glibc]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-linux-arm64-musl@4.9.6':
- resolution: {integrity: sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ==}
+ /@rollup/rollup-linux-arm64-musl@4.18.0:
+ resolution: {integrity: sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==}
cpu: [arm64]
os: [linux]
- libc: [musl]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/rollup-linux-powerpc64le-gnu@4.18.0:
+ resolution: {integrity: sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==}
+ cpu: [ppc64]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-linux-riscv64-gnu@4.9.6':
- resolution: {integrity: sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA==}
+ /@rollup/rollup-linux-riscv64-gnu@4.18.0:
+ resolution: {integrity: sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==}
cpu: [riscv64]
os: [linux]
- libc: [glibc]
+ requiresBuild: true
+ dev: true
+ optional: true
+
+ /@rollup/rollup-linux-s390x-gnu@4.18.0:
+ resolution: {integrity: sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==}
+ cpu: [s390x]
+ os: [linux]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-linux-x64-gnu@4.9.6':
- resolution: {integrity: sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw==}
+ /@rollup/rollup-linux-x64-gnu@4.18.0:
+ resolution: {integrity: sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==}
cpu: [x64]
os: [linux]
- libc: [glibc]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-linux-x64-musl@4.9.6':
- resolution: {integrity: sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ==}
+ /@rollup/rollup-linux-x64-musl@4.18.0:
+ resolution: {integrity: sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==}
cpu: [x64]
os: [linux]
- libc: [musl]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-win32-arm64-msvc@4.9.6':
- resolution: {integrity: sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA==}
+ /@rollup/rollup-win32-arm64-msvc@4.18.0:
+ resolution: {integrity: sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==}
cpu: [arm64]
os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-win32-ia32-msvc@4.9.6':
- resolution: {integrity: sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ==}
+ /@rollup/rollup-win32-ia32-msvc@4.18.0:
+ resolution: {integrity: sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==}
cpu: [ia32]
os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@rollup/rollup-win32-x64-msvc@4.9.6':
- resolution: {integrity: sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ==}
+ /@rollup/rollup-win32-x64-msvc@4.18.0:
+ resolution: {integrity: sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==}
cpu: [x64]
os: [win32]
+ requiresBuild: true
+ dev: true
+ optional: true
- '@sindresorhus/merge-streams@1.0.0':
- resolution: {integrity: sha512-rUV5WyJrJLoloD4NDN1V1+LDMDWOa4OTsT4yYJwQNpTU6FWxkxHpL7eu4w+DmiH8x/EAM1otkPE1+LaspIbplw==}
+ /@sindresorhus/merge-streams@2.3.0:
+ resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==}
engines: {node: '>=18'}
+ dev: true
- '@stackblitz/sdk@1.9.0':
- resolution: {integrity: sha512-3m6C7f8pnR5KXys/Hqx2x6ylnpqOak6HtnZI6T5keEO0yT+E4Spkw37VEbdwuC+2oxmjdgq6YZEgiKX7hM1GmQ==}
+ /@stackblitz/sdk@1.10.0:
+ resolution: {integrity: sha512-IcvE9Xifo2c4/f+yNqjFM/OW5VTBPLed3TxsQ+n8n81Py358IqD5w0IYfFgV5gbDjp2g5H5YK2/Shls/kQNTWQ==}
+ dev: true
- '@types/debug@4.1.12':
+ /@types/debug@4.1.12:
resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}
+ dependencies:
+ '@types/ms': 0.7.34
+ dev: true
- '@types/estree@1.0.5':
+ /@types/estree@1.0.5:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
+ dev: true
- '@types/fs-extra@11.0.4':
+ /@types/fs-extra@11.0.4:
resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==}
+ dependencies:
+ '@types/jsonfile': 6.1.4
+ '@types/node': 20.14.8
+ dev: true
- '@types/hash-sum@1.0.2':
+ /@types/hash-sum@1.0.2:
resolution: {integrity: sha512-UP28RddqY8xcU0SCEp9YKutQICXpaAq9N8U2klqF5hegGha7KzTOL8EdhIIV3bOSGBzjEpN9bU/d+nNZBdJYVw==}
+ dev: true
- '@types/jsonfile@6.1.4':
+ /@types/jsonfile@6.1.4:
resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}
+ dependencies:
+ '@types/node': 20.14.8
+ dev: true
- '@types/katex@0.16.7':
+ /@types/katex@0.16.7:
resolution: {integrity: sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==}
+ dev: true
- '@types/linkify-it@3.0.5':
+ /@types/linkify-it@3.0.5:
resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==}
+ dev: true
- '@types/markdown-it-emoji@2.0.4':
- resolution: {integrity: sha512-H6ulk/ZmbDxOayPwI/leJzrmoW1YKX1Z+MVSCHXuYhvqckV4I/c+hPTf6UiqJyn2avWugfj30XroheEb6/Ekqg==}
+ /@types/markdown-it-emoji@2.0.5:
+ resolution: {integrity: sha512-iJLsmCNpSWKtV6Ia3mLSjcXJPEt7ubGG342z+hGvYx++TpM19oTUrJcI7XjbOqRQ+W2UQ323E7B0eCLwlgT/9g==}
+ dependencies:
+ '@types/markdown-it': 13.0.8
+ dev: true
- '@types/markdown-it@13.0.7':
- resolution: {integrity: sha512-U/CBi2YUUcTHBt5tjO2r5QV/x0Po6nsYwQU4Y04fBS6vfoImaiZ6f8bi3CjTCxBPQSO1LMyUqkByzi8AidyxfA==}
+ /@types/markdown-it@13.0.8:
+ resolution: {integrity: sha512-V+KmpgiipS+zoypeUSS9ojesWtY/0k4XfqcK2fnVrX/qInJhX7rsCxZ/rygiPH2zxlPPrhfuW0I6ddMcWTKLsg==}
+ dependencies:
+ '@types/linkify-it': 3.0.5
+ '@types/mdurl': 1.0.5
+ dev: true
- '@types/mdurl@1.0.5':
+ /@types/mdurl@1.0.5:
resolution: {integrity: sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==}
+ dev: true
- '@types/ms@0.7.34':
+ /@types/ms@0.7.34:
resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}
+ dev: true
- '@types/node@17.0.45':
+ /@types/node@17.0.45:
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
+ dev: true
- '@types/node@20.11.5':
- resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==}
+ /@types/node@20.14.8:
+ resolution: {integrity: sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==}
+ dependencies:
+ undici-types: 5.26.5
+ dev: true
- '@types/sax@1.2.7':
+ /@types/sax@1.2.7:
resolution: {integrity: sha512-rO73L89PJxeYM3s3pPPjiPgVVcymqU490g0YO5n5By0k2Erzj6tay/4lr1CHAAU4JyOWd1rpQ8bCf6cZfHU96A==}
+ dependencies:
+ '@types/node': 17.0.45
+ dev: true
- '@types/trusted-types@2.0.7':
+ /@types/trusted-types@2.0.7:
resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==}
+ dev: true
- '@types/web-bluetooth@0.0.20':
+ /@types/web-bluetooth@0.0.20:
resolution: {integrity: sha512-g9gZnnXVq7gM7v3tJCWV/qw7w+KeOlSHAhgF9RytFyifW6AF61hdT2ucrYhPq9hLs5JIryeupHV3qGk95dH9ow==}
+ dev: true
- '@vitejs/plugin-vue@4.6.2':
+ /@vitejs/plugin-vue@4.6.2(vite@5.0.13)(vue@3.4.30):
resolution: {integrity: sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
vite: ^4.0.0 || ^5.0.0
vue: ^3.2.25
+ dependencies:
+ vite: 5.0.13
+ vue: 3.4.30
+ dev: true
- '@vue/compiler-core@3.4.15':
- resolution: {integrity: sha512-XcJQVOaxTKCnth1vCxEChteGuwG6wqnUHxAm1DO3gCz0+uXKaJNx8/digSz4dLALCy8n2lKq24jSUs8segoqIw==}
+ /@vue/compiler-core@3.4.30:
+ resolution: {integrity: sha512-ZL8y4Xxdh8O6PSwfdZ1IpQ24PjTAieOz3jXb/MDTfDtANcKBMxg1KLm6OX2jofsaQGYfIVzd3BAG22i56/cF1w==}
+ dependencies:
+ '@babel/parser': 7.24.7
+ '@vue/shared': 3.4.30
+ entities: 4.5.0
+ estree-walker: 2.0.2
+ source-map-js: 1.2.0
+ dev: true
- '@vue/compiler-dom@3.4.15':
- resolution: {integrity: sha512-wox0aasVV74zoXyblarOM3AZQz/Z+OunYcIHe1OsGclCHt8RsRm04DObjefaI82u6XDzv+qGWZ24tIsRAIi5MQ==}
+ /@vue/compiler-dom@3.4.30:
+ resolution: {integrity: sha512-+16Sd8lYr5j/owCbr9dowcNfrHd+pz+w2/b5Lt26Oz/kB90C9yNbxQ3bYOvt7rI2bxk0nqda39hVcwDFw85c2Q==}
+ dependencies:
+ '@vue/compiler-core': 3.4.30
+ '@vue/shared': 3.4.30
+ dev: true
- '@vue/compiler-sfc@3.4.15':
- resolution: {integrity: sha512-LCn5M6QpkpFsh3GQvs2mJUOAlBQcCco8D60Bcqmf3O3w5a+KWS5GvYbrrJBkgvL1BDnTp+e8q0lXCLgHhKguBA==}
+ /@vue/compiler-sfc@3.4.30:
+ resolution: {integrity: sha512-8vElKklHn/UY8+FgUFlQrYAPbtiSB2zcgeRKW7HkpSRn/JjMRmZvuOtwDx036D1aqKNSTtXkWRfqx53Qb+HmMg==}
+ dependencies:
+ '@babel/parser': 7.24.7
+ '@vue/compiler-core': 3.4.30
+ '@vue/compiler-dom': 3.4.30
+ '@vue/compiler-ssr': 3.4.30
+ '@vue/shared': 3.4.30
+ estree-walker: 2.0.2
+ magic-string: 0.30.10
+ postcss: 8.4.38
+ source-map-js: 1.2.0
+ dev: true
- '@vue/compiler-ssr@3.4.15':
- resolution: {integrity: sha512-1jdeQyiGznr8gjFDadVmOJqZiLNSsMa5ZgqavkPZ8O2wjHv0tVuAEsw5hTdUoUW4232vpBbL/wJhzVW/JwY1Uw==}
+ /@vue/compiler-ssr@3.4.30:
+ resolution: {integrity: sha512-ZJ56YZGXJDd6jky4mmM0rNaNP6kIbQu9LTKZDhcpddGe/3QIalB1WHHmZ6iZfFNyj5mSypTa4+qDJa5VIuxMSg==}
+ dependencies:
+ '@vue/compiler-dom': 3.4.30
+ '@vue/shared': 3.4.30
+ dev: true
- '@vue/devtools-api@6.5.1':
- resolution: {integrity: sha512-+KpckaAQyfbvshdDW5xQylLni1asvNSGme1JFs8I1+/H5pHEhqUKMEQD/qn3Nx5+/nycBq11qAEi8lk+LXI2dA==}
+ /@vue/devtools-api@6.6.3:
+ resolution: {integrity: sha512-0MiMsFma/HqA6g3KLKn+AGpL1kgKhFWszC9U29NfpWK5LE7bjeXxySWJrOJ77hBz+TBrBQ7o4QJqbPbqbs8rJw==}
+ dev: true
- '@vue/reactivity@3.4.15':
- resolution: {integrity: sha512-55yJh2bsff20K5O84MxSvXKPHHt17I2EomHznvFiJCAZpJTNW8IuLj1xZWMLELRhBK3kkFV/1ErZGHJfah7i7w==}
+ /@vue/reactivity@3.4.30:
+ resolution: {integrity: sha512-bVJurnCe3LS0JII8PPoAA63Zd2MBzcKrEzwdQl92eHCcxtIbxD2fhNwJpa+KkM3Y/A4T5FUnmdhgKwOf6BfbcA==}
+ dependencies:
+ '@vue/shared': 3.4.30
+ dev: true
- '@vue/runtime-core@3.4.15':
- resolution: {integrity: sha512-6E3by5m6v1AkW0McCeAyhHTw+3y17YCOKG0U0HDKDscV4Hs0kgNT5G+GCHak16jKgcCDHpI9xe5NKb8sdLCLdw==}
+ /@vue/runtime-core@3.4.30:
+ resolution: {integrity: sha512-qaFEbnNpGz+tlnkaualomogzN8vBLkgzK55uuWjYXbYn039eOBZrWxyXWq/7qh9Bz2FPifZqGjVDl/FXiq9L2g==}
+ dependencies:
+ '@vue/reactivity': 3.4.30
+ '@vue/shared': 3.4.30
+ dev: true
- '@vue/runtime-dom@3.4.15':
- resolution: {integrity: sha512-EVW8D6vfFVq3V/yDKNPBFkZKGMFSvZrUQmx196o/v2tHKdwWdiZjYUBS+0Ez3+ohRyF8Njwy/6FH5gYJ75liUw==}
+ /@vue/runtime-dom@3.4.30:
+ resolution: {integrity: sha512-tV6B4YiZRj5QsaJgw2THCy5C1H+2UeywO9tqgWEc21tn85qHEERndHN/CxlyXvSBFrpmlexCIdnqPuR9RM9thw==}
+ dependencies:
+ '@vue/reactivity': 3.4.30
+ '@vue/runtime-core': 3.4.30
+ '@vue/shared': 3.4.30
+ csstype: 3.1.3
+ dev: true
- '@vue/server-renderer@3.4.15':
- resolution: {integrity: sha512-3HYzaidu9cHjrT+qGUuDhFYvF/j643bHC6uUN9BgM11DVy+pM6ATsG6uPBLnkwOgs7BpJABReLmpL3ZPAsUaqw==}
+ /@vue/server-renderer@3.4.30(vue@3.4.30):
+ resolution: {integrity: sha512-TBD3eqR1DeDc0cMrXS/vEs/PWzq1uXxnvjoqQuDGFIEHFIwuDTX/KWAQKIBjyMWLFHEeTDGYVsYci85z2UbTDg==}
peerDependencies:
- vue: 3.4.15
+ vue: 3.4.30
+ dependencies:
+ '@vue/compiler-ssr': 3.4.30
+ '@vue/shared': 3.4.30
+ vue: 3.4.30
+ dev: true
- '@vue/shared@3.4.15':
- resolution: {integrity: sha512-KzfPTxVaWfB+eGcGdbSf4CWdaXcGDqckoeXUh7SB3fZdEtzPCK2Vq9B/lRRL3yutax/LWITz+SwvgyOxz5V75g==}
+ /@vue/shared@3.4.30:
+ resolution: {integrity: sha512-CLg+f8RQCHQnKvuHY9adMsMaQOcqclh6Z5V9TaoMgy0ut0tz848joZ7/CYFFyF/yZ5i2yaw7Fn498C+CNZVHIg==}
+ dev: true
- '@vuepress/bundler-vite@2.0.0-rc.0':
+ /@vuepress/bundler-vite@2.0.0-rc.0:
resolution: {integrity: sha512-rX8S8IYpqqlJfNPstS/joorpxXx/4WuE7+gDM31i2HUrxOKGZVzq8ZsRRRU2UdoTwHZSd3LpUS4sMtxE5xLK1A==}
+ dependencies:
+ '@vitejs/plugin-vue': 4.6.2(vite@5.0.13)(vue@3.4.30)
+ '@vuepress/client': 2.0.0-rc.0
+ '@vuepress/core': 2.0.0-rc.0
+ '@vuepress/shared': 2.0.0-rc.0
+ '@vuepress/utils': 2.0.0-rc.0
+ autoprefixer: 10.4.19(postcss@8.4.38)
+ connect-history-api-fallback: 2.0.0
+ postcss: 8.4.38
+ postcss-load-config: 4.0.2(postcss@8.4.38)
+ rollup: 4.18.0
+ vite: 5.0.13
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ transitivePeerDependencies:
+ - '@types/node'
+ - '@vue/composition-api'
+ - less
+ - lightningcss
+ - sass
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - ts-node
+ - typescript
+ dev: true
- '@vuepress/cli@2.0.0-rc.0':
+ /@vuepress/cli@2.0.0-rc.0:
resolution: {integrity: sha512-XWSIFO9iOR7N4O2lXIwS5vZuLjU9WU/aGAtmhMWEMxrdMx7TQaJbgrfpTUEbHMf+cPI1DXBbUbtmkqIvtfOV0w==}
hasBin: true
+ dependencies:
+ '@vuepress/core': 2.0.0-rc.0
+ '@vuepress/shared': 2.0.0-rc.0
+ '@vuepress/utils': 2.0.0-rc.0
+ cac: 6.7.14
+ chokidar: 3.6.0
+ envinfo: 7.13.0
+ esbuild: 0.19.12
+ transitivePeerDependencies:
+ - '@vue/composition-api'
+ - supports-color
+ - typescript
+ dev: true
- '@vuepress/client@2.0.0-rc.0':
+ /@vuepress/client@2.0.0-rc.0:
resolution: {integrity: sha512-TwQx8hJgYONYxX+QltZ2aw9O5Ym6SKelfiUduuIRb555B1gece/jSVap3H/ZwyBhpgJMtG4+/Mrmf8nlDSHjvw==}
+ dependencies:
+ '@vue/devtools-api': 6.6.3
+ '@vuepress/shared': 2.0.0-rc.0
+ '@vueuse/core': 10.11.0(vue@3.4.30)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ transitivePeerDependencies:
+ - '@vue/composition-api'
+ - typescript
+ dev: true
- '@vuepress/core@2.0.0-rc.0':
+ /@vuepress/core@2.0.0-rc.0:
resolution: {integrity: sha512-uoOaZP1MdxZYJIAJcRcmYKKeCIVnxZeOuLMOOB9CPuAKSalT1RvJ1lztw6RX3q9SPnlqtSZPQXDncPAZivw4pA==}
+ dependencies:
+ '@vuepress/client': 2.0.0-rc.0
+ '@vuepress/markdown': 2.0.0-rc.0
+ '@vuepress/shared': 2.0.0-rc.0
+ '@vuepress/utils': 2.0.0-rc.0
+ vue: 3.4.30
+ transitivePeerDependencies:
+ - '@vue/composition-api'
+ - supports-color
+ - typescript
+ dev: true
- '@vuepress/markdown@2.0.0-rc.0':
+ /@vuepress/markdown@2.0.0-rc.0:
resolution: {integrity: sha512-USmqdKKMT6ZFHYRztTjKUlO8qgGfnEygMAAq4AzC/uYXiEfrbMBLAWJhteyGS56P3rGLj0OPAhksE681bX/wOg==}
+ dependencies:
+ '@mdit-vue/plugin-component': 1.0.0
+ '@mdit-vue/plugin-frontmatter': 1.0.0
+ '@mdit-vue/plugin-headers': 1.0.0
+ '@mdit-vue/plugin-sfc': 1.0.0
+ '@mdit-vue/plugin-title': 1.0.0
+ '@mdit-vue/plugin-toc': 1.0.0
+ '@mdit-vue/shared': 1.0.0
+ '@mdit-vue/types': 1.0.0
+ '@types/markdown-it': 13.0.8
+ '@types/markdown-it-emoji': 2.0.5
+ '@vuepress/shared': 2.0.0-rc.0
+ '@vuepress/utils': 2.0.0-rc.0
+ markdown-it: 13.0.2
+ markdown-it-anchor: 8.6.7(@types/markdown-it@13.0.8)(markdown-it@13.0.2)
+ markdown-it-emoji: 2.0.2
+ mdurl: 1.0.1
+ transitivePeerDependencies:
+ - supports-color
+ dev: true
- '@vuepress/plugin-active-header-links@2.0.0-rc.0':
+ /@vuepress/plugin-active-header-links@2.0.0-rc.0:
resolution: {integrity: sha512-UJdXLYNGL5Wjy5YGY8M2QgqT75bZ95EHebbqGi8twBdIJE9O+bM+dPJyYtAk2PIVqFORiw3Hj+PchsNSxdn9+g==}
-
- '@vuepress/plugin-back-to-top@2.0.0-rc.0':
- resolution: {integrity: sha512-6GPfuzV5lkAnR00BxRUhqMXwMWt741alkq2R6bln4N8BneSOwEpX/7vi19MGf232aKdS/Va4pF5p0/nJ8Sed/g==}
-
- '@vuepress/plugin-container@2.0.0-rc.0':
- resolution: {integrity: sha512-b7vrLN11YE7qiUDPfA3N9P7Z8fupe9Wbcr9KAE/bmfZ9VT4d6kzpVyoU7XHi99XngitsmnkaXP4aBvBF1c2AnA==}
-
- '@vuepress/plugin-docsearch@2.0.0-rc.0':
- resolution: {integrity: sha512-bFbb+RxNyoLVbojv3Fh3UNfMmx9tszdae5ni9nG2xa05giCRwGKT0wFG3Q6n0a9kIQ6V7z3PjCj9x1k4SALPEA==}
-
- '@vuepress/plugin-external-link-icon@2.0.0-rc.0':
- resolution: {integrity: sha512-o8bk0oIlj/BkKc02mq91XLDloq1VOz/8iNcRwKAeqBE6svXzdYiyoTGet0J/4iPuAetsCn75S57W6RioDJHMnQ==}
-
- '@vuepress/plugin-git@2.0.0-rc.0':
- resolution: {integrity: sha512-r7UF77vZxaYeJQLygzodKv+15z3/dTLuGp4VcYO21W6BlJZvd4u9zqgiV7A//bZQvK4+3Hprylr0G3KgXqMewA==}
-
- '@vuepress/plugin-medium-zoom@2.0.0-rc.0':
- resolution: {integrity: sha512-peU1lYKsmKikIe/0pkJuHzD/k6xW2TuqdvKVhV4I//aOE1WxsREKJ4ACcldmoIsnysoDydAUqKT6xDPGyDsH2g==}
-
- '@vuepress/plugin-nprogress@2.0.0-rc.0':
- resolution: {integrity: sha512-rI+eK0Pg1KiZE+7hGmDUeSbgdWCid8Vnw0hFKNmjinDzGVmx4m03M6qfvclsI0SryH+lR7itZGLaR4gbTlrz/w==}
-
- '@vuepress/plugin-palette@2.0.0-rc.0':
- resolution: {integrity: sha512-wW70SCp3/K7s1lln5YQsBGTog2WXaQv5piva5zhXcQ47YGf4aAJpThDa5C/ot4HhkPOKn8Iz5s0ckxXZzW8DIg==}
-
- '@vuepress/plugin-prismjs@2.0.0-rc.0':
- resolution: {integrity: sha512-c5WRI7+FhVjdbymOKQ8F2KY/Bnv7aQtWScVk8vCMUimNi7v7Wff/A/i3KSFNz/tge3LxiAeH/Dc2WS/OnQXwCg==}
-
- '@vuepress/plugin-theme-data@2.0.0-rc.0':
- resolution: {integrity: sha512-FXY3/Ml+rM6gNKvwdBF6vKAcwnSvtXCzKgQwJAw3ppQTKUkLcbOxqM+h4d8bzHWAAvdnEvQFug5uEZgWllBQbA==}
-
- '@vuepress/shared@2.0.0-rc.0':
- resolution: {integrity: sha512-ikdSfjRv5LGM1iv4HHwF9P6gqTjaFCXKPK+hzlkHFHNZO1GLqk7/BPc4F51tAG1s8TcLhUZc+54LrfgS7PkXXA==}
-
- '@vuepress/theme-default@2.0.0-rc.0':
- resolution: {integrity: sha512-I8Y08evDmMuD1jh3NftPpFFSlCWOizQDJLjN7EQwcg7jiAP4A7c2REo6nBN2EmP24Mi7UrRM+RnytHR5V+pElA==}
- peerDependencies:
- sass-loader: ^13.3.2
- peerDependenciesMeta:
- sass-loader:
- optional: true
-
- '@vuepress/utils@2.0.0-rc.0':
- resolution: {integrity: sha512-Q1ay/woClDHcW0Qe91KsnHoupdNN0tp/vhjvVLuAYxlv/1Obii7hz9WFcajyyGEhmsYxdvG2sGmcxFA02tuKkw==}
-
- '@vueuse/core@10.7.2':
- resolution: {integrity: sha512-AOyAL2rK0By62Hm+iqQn6Rbu8bfmbgaIMXcE3TSr7BdQ42wnSFlwIdPjInO62onYsEMK/yDMU8C6oGfDAtZ2qQ==}
-
- '@vueuse/metadata@10.7.2':
- resolution: {integrity: sha512-kCWPb4J2KGrwLtn1eJwaJD742u1k5h6v/St5wFe8Quih90+k2a0JP8BS4Zp34XUuJqS2AxFYMb1wjUL8HfhWsQ==}
-
- '@vueuse/shared@10.7.2':
- resolution: {integrity: sha512-qFbXoxS44pi2FkgFjPvF4h7c9oMDutpyBdcJdMYIMg9XyXli2meFMuaKn+UMgsClo//Th6+beeCgqweT/79BVA==}
-
- algoliasearch@4.22.1:
- resolution: {integrity: sha512-jwydKFQJKIx9kIZ8Jm44SdpigFwRGPESaxZBaHSV0XWN2yBJAOT4mT7ppvlrpA4UGzz92pqFnVKr/kaZXrcreg==}
-
- ansi-regex@5.0.1:
- resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
- engines: {node: '>=8'}
-
- ansi-regex@6.0.1:
- resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}
- engines: {node: '>=12'}
-
- ansi-styles@4.3.0:
- resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
- engines: {node: '>=8'}
-
- anymatch@3.1.3:
- resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
- engines: {node: '>= 8'}
-
- arg@5.0.2:
- resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
-
- argparse@1.0.10:
- resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
-
- argparse@2.0.1:
- resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
-
- array-union@1.0.2:
- resolution: {integrity: sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==}
- engines: {node: '>=0.10.0'}
-
- array-uniq@1.0.3:
- resolution: {integrity: sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==}
- engines: {node: '>=0.10.0'}
-
- async@3.2.5:
- resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==}
-
- autoprefixer@10.4.17:
- resolution: {integrity: sha512-/cpVNRLSfhOtcGflT13P2794gVSgmPgTR+erw5ifnMLZb0UnSlkK4tquLmkd3BhA+nLo5tX8Cu0upUsGKvKbmg==}
- engines: {node: ^10 || ^12 || >=14}
- hasBin: true
- peerDependencies:
- postcss: ^8.1.0
-
- balanced-match@1.0.2:
- resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
-
- balloon-css@1.2.0:
- resolution: {integrity: sha512-urXwkHgwp6GsXVF+it01485Z2Cj4pnW02ICnM0TemOlkKmCNnDLmyy+ZZiRXBpwldUXO+aRNr7Hdia4CBvXJ5A==}
-
- base64-js@1.5.1:
- resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
-
- bcrypt-ts@5.0.1:
- resolution: {integrity: sha512-+Q6wjkT+PO0Da56BIyaYyueMeqAV/zOXqfFIssRgCbQLGwU+YkBJfBpP2Q9Q8hGbpDyDNCrG36npSdE+S9HWUA==}
- engines: {node: '>=18'}
-
- binary-extensions@2.2.0:
- resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==}
- engines: {node: '>=8'}
-
- bl@5.1.0:
- resolution: {integrity: sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==}
-
- boolbase@1.0.0:
- resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
-
- brace-expansion@1.1.11:
- resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
-
- braces@3.0.2:
- resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==}
- engines: {node: '>=8'}
-
- browserslist@4.22.2:
- resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==}
- engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
- hasBin: true
-
- buffer@6.0.3:
- resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}
-
- cac@6.7.14:
- resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
- engines: {node: '>=8'}
-
- camelcase@5.3.1:
- resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}
- engines: {node: '>=6'}
-
- caniuse-lite@1.0.30001579:
- resolution: {integrity: sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==}
-
- chalk@5.3.0:
- resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
- engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
-
- cheerio-select@2.1.0:
- resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}
-
- cheerio@1.0.0-rc.12:
- resolution: {integrity: sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==}
- engines: {node: '>= 6'}
-
- chokidar@3.5.3:
- resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}
- engines: {node: '>= 8.10.0'}
-
- cli-cursor@4.0.0:
- resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
- cli-spinners@2.9.2:
- resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
- engines: {node: '>=6'}
-
- cliui@6.0.0:
- resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==}
-
- color-convert@2.0.1:
- resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
- engines: {node: '>=7.0.0'}
-
- color-name@1.1.4:
- resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
-
- commander@11.1.0:
- resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
- engines: {node: '>=16'}
-
- commondir@1.0.1:
- resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
-
- concat-map@0.0.1:
- resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
-
- connect-history-api-fallback@2.0.0:
- resolution: {integrity: sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==}
- engines: {node: '>=0.8'}
-
- create-codepen@1.0.1:
- resolution: {integrity: sha512-XzSWwGCFNeOnNGp3KdCDGaKq4Cp1SvjzpPGQqO0tj1HT3BhksLdl/xQ2ZEY4+0MQ3m1I/K1Fvpm4GGMthtamyA==}
-
- cross-spawn@7.0.3:
- resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
- engines: {node: '>= 8'}
-
- css-select@5.1.0:
- resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==}
-
- css-what@6.1.0:
- resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==}
- engines: {node: '>= 6'}
-
- csstype@3.1.3:
- resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
-
- dayjs@1.11.10:
- resolution: {integrity: sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==}
-
- debug@4.3.4:
- resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==}
- engines: {node: '>=6.0'}
- peerDependencies:
- supports-color: '*'
- peerDependenciesMeta:
- supports-color:
- optional: true
-
- decamelize@1.2.0:
- resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==}
- engines: {node: '>=0.10.0'}
-
- dijkstrajs@1.0.3:
- resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==}
-
- dom-serializer@2.0.0:
- resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
-
- domelementtype@2.3.0:
- resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
-
- domhandler@5.0.3:
- resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
- engines: {node: '>= 4'}
-
- domutils@3.1.0:
- resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}
-
- eastasianwidth@0.2.0:
- resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
-
- electron-to-chromium@1.4.640:
- resolution: {integrity: sha512-z/6oZ/Muqk4BaE7P69bXhUhpJbUM9ZJeka43ZwxsDshKtePns4mhBlh8bU5+yrnOnz3fhG82XLzGUXazOmsWnA==}
-
- email-addresses@5.0.0:
- resolution: {integrity: sha512-4OIPYlA6JXqtVn8zpHpGiI7vE6EQOAg16aGnDMIAlZVinnoZ8208tW1hAbjWydgN/4PLTT9q+O1K6AH/vALJGw==}
-
- emoji-regex@10.3.0:
- resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==}
-
- emoji-regex@8.0.0:
- resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
-
- encode-utf8@1.0.3:
- resolution: {integrity: sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==}
-
- entities@3.0.1:
- resolution: {integrity: sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==}
- engines: {node: '>=0.12'}
-
- entities@4.5.0:
- resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
- engines: {node: '>=0.12'}
-
- envinfo@7.11.0:
- resolution: {integrity: sha512-G9/6xF1FPbIw0TtalAMaVPpiq2aDEuKLXM314jPVAO9r2fo2a4BLqMNkmRS7O/xPPZ+COAhGIz3ETvHEV3eUcg==}
- engines: {node: '>=4'}
- hasBin: true
-
- esbuild@0.19.11:
- resolution: {integrity: sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==}
- engines: {node: '>=12'}
- hasBin: true
-
- escalade@3.1.1:
- resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
- engines: {node: '>=6'}
-
- escape-string-regexp@1.0.5:
- resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
- engines: {node: '>=0.8.0'}
-
- esprima@4.0.1:
- resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
- engines: {node: '>=4'}
- hasBin: true
-
- estree-walker@2.0.2:
- resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
-
- execa@8.0.1:
- resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
- engines: {node: '>=16.17'}
-
- extend-shallow@2.0.1:
- resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}
- engines: {node: '>=0.10.0'}
-
- fast-glob@3.3.2:
- resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
- engines: {node: '>=8.6.0'}
-
- fastq@1.16.0:
- resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==}
-
- fflate@0.8.1:
- resolution: {integrity: sha512-/exOvEuc+/iaUm105QIiOt4LpBdMTWsXxqR0HDF35vx3fmaKzw7354gTilCh5rkzEt8WYyG//ku3h3nRmd7CHQ==}
-
- filename-reserved-regex@2.0.0:
- resolution: {integrity: sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==}
- engines: {node: '>=4'}
-
- filenamify@4.3.0:
- resolution: {integrity: sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==}
- engines: {node: '>=8'}
-
- fill-range@7.0.1:
- resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==}
- engines: {node: '>=8'}
-
- find-cache-dir@3.3.2:
- resolution: {integrity: sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==}
- engines: {node: '>=8'}
-
- find-up@4.1.0:
- resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
- engines: {node: '>=8'}
-
- fraction.js@4.3.7:
- resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
-
- fs-extra@11.2.0:
- resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==}
- engines: {node: '>=14.14'}
-
- fs.realpath@1.0.0:
- resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
-
- fsevents@2.3.3:
- resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
- engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
- os: [darwin]
-
- get-caller-file@2.0.5:
- resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
- engines: {node: 6.* || 8.* || >= 10.*}
-
- get-stream@8.0.1:
- resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
- engines: {node: '>=16'}
-
- gh-pages@6.1.1:
- resolution: {integrity: sha512-upnohfjBwN5hBP9w2dPE7HO5JJTHzSGMV1JrLrHvNuqmjoYHg6TBrCcnEoorjG/e0ejbuvnwyKMdTyM40PEByw==}
- engines: {node: '>=10'}
- hasBin: true
-
- giscus@1.4.0:
- resolution: {integrity: sha512-Pll+pcclTx47NcFDw8nuka2Ja85Gc4XWpzSgL0rszOQaMQRQIV8UMR+zP4a+/N3tV2TXc1SZ537kWlsN6EsAaw==}
-
- glob-parent@5.1.2:
- resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
- engines: {node: '>= 6'}
-
- glob@7.2.3:
- resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
-
- globby@14.0.0:
- resolution: {integrity: sha512-/1WM/LNHRAOH9lZta77uGbq0dAEQM+XjNesWwhlERDVenqothRbnzTrL3/LrIoEPPjeUHC3vrS6TwoyxeHs7MQ==}
- engines: {node: '>=18'}
-
- globby@6.1.0:
- resolution: {integrity: sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==}
- engines: {node: '>=0.10.0'}
-
- graceful-fs@4.2.11:
- resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
-
- gray-matter@4.0.3:
- resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}
- engines: {node: '>=6.0'}
-
- hash-sum@2.0.0:
- resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==}
-
- htmlparser2@8.0.2:
- resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
-
- human-signals@5.0.0:
- resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
- engines: {node: '>=16.17.0'}
-
- ieee754@1.2.1:
- resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
-
- ignore@5.3.0:
- resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==}
- engines: {node: '>= 4'}
-
- immutable@4.3.4:
- resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==}
-
- inflight@1.0.6:
- resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
-
- inherits@2.0.4:
- resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
-
- is-binary-path@2.1.0:
- resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
- engines: {node: '>=8'}
-
- is-extendable@0.1.1:
- resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==}
- engines: {node: '>=0.10.0'}
-
- is-extglob@2.1.1:
- resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
- engines: {node: '>=0.10.0'}
-
- is-fullwidth-code-point@3.0.0:
- resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
- engines: {node: '>=8'}
-
- is-glob@4.0.3:
- resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
- engines: {node: '>=0.10.0'}
-
- is-interactive@2.0.0:
- resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
- engines: {node: '>=12'}
-
- is-number@7.0.0:
- resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
- engines: {node: '>=0.12.0'}
-
- is-stream@3.0.0:
- resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
- is-unicode-supported@1.3.0:
- resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}
- engines: {node: '>=12'}
-
- isexe@2.0.0:
- resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
-
- js-yaml@3.14.1:
- resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}
- hasBin: true
-
- js-yaml@4.1.0:
- resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
- hasBin: true
-
- jsonfile@6.1.0:
- resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
-
- kind-of@6.0.3:
- resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
- engines: {node: '>=0.10.0'}
-
- lilconfig@3.0.0:
- resolution: {integrity: sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==}
- engines: {node: '>=14'}
-
- linkify-it@4.0.1:
- resolution: {integrity: sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==}
-
- lit-element@4.0.3:
- resolution: {integrity: sha512-2vhidmC7gGLfnVx41P8UZpzyS0Fb8wYhS5RCm16cMW3oERO0Khd3EsKwtRpOnttuByI5rURjT2dfoA7NlInCNw==}
-
- lit-html@3.1.1:
- resolution: {integrity: sha512-x/EwfGk2D/f4odSFM40hcGumzqoKv0/SUh6fBO+1Ragez81APrcAMPo1jIrCDd9Sn+Z4CT867HWKViByvkDZUA==}
-
- lit@3.1.1:
- resolution: {integrity: sha512-hF1y4K58+Gqrz+aAPS0DNBwPqPrg6P04DuWK52eMkt/SM9Qe9keWLcFgRcEKOLuDlRZlDsDbNL37Vr7ew1VCuw==}
-
- locate-path@5.0.0:
- resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
- engines: {node: '>=8'}
-
- log-symbols@5.1.0:
- resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==}
- engines: {node: '>=12'}
-
- lru-cache@6.0.0:
- resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}
- engines: {node: '>=10'}
-
- magic-string@0.30.5:
- resolution: {integrity: sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==}
- engines: {node: '>=12'}
-
- make-dir@3.1.0:
- resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
- engines: {node: '>=8'}
-
- markdown-it-anchor@8.6.7:
- resolution: {integrity: sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==}
- peerDependencies:
- '@types/markdown-it': '*'
- markdown-it: '*'
-
- markdown-it-container@3.0.0:
- resolution: {integrity: sha512-y6oKTq4BB9OQuY/KLfk/O3ysFhB3IMYoIWhGJEidXt1NQFocFK2sA2t0NYZAMyMShAGL6x5OPIbrmXPIqaN9rw==}
-
- markdown-it-emoji@2.0.2:
- resolution: {integrity: sha512-zLftSaNrKuYl0kR5zm4gxXjHaOI3FAOEaloKmRA5hijmJZvSjmxcokOLlzycb/HXlUFWzXqpIEoyEMCE4i9MvQ==}
-
- markdown-it@13.0.2:
- resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==}
- hasBin: true
-
- mdurl@1.0.1:
- resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==}
-
- medium-zoom@1.1.0:
- resolution: {integrity: sha512-ewyDsp7k4InCUp3jRmwHBRFGyjBimKps/AJLjRSox+2q/2H4p/PNpQf+pwONWlJiOudkBXtbdmVbFjqyybfTmQ==}
-
- merge-stream@2.0.0:
- resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
-
- merge2@1.4.1:
- resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
- engines: {node: '>= 8'}
-
- micromatch@4.0.5:
- resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}
- engines: {node: '>=8.6'}
-
- mimic-fn@2.1.0:
- resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
- engines: {node: '>=6'}
-
- mimic-fn@4.0.0:
- resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
- engines: {node: '>=12'}
-
- minimatch@3.1.2:
- resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
-
- ms@2.1.2:
- resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
-
- nanoid@3.3.7:
- resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
- hasBin: true
-
- node-releases@2.0.14:
- resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}
-
- normalize-path@3.0.0:
- resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
- engines: {node: '>=0.10.0'}
-
- normalize-range@0.1.2:
- resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
- engines: {node: '>=0.10.0'}
-
- npm-run-path@5.2.0:
- resolution: {integrity: sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
- nth-check@2.1.1:
- resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
-
- object-assign@4.1.1:
- resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
- engines: {node: '>=0.10.0'}
-
- once@1.4.0:
- resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
-
- onetime@5.1.2:
- resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
- engines: {node: '>=6'}
-
- onetime@6.0.0:
- resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
- engines: {node: '>=12'}
-
- ora@7.0.1:
- resolution: {integrity: sha512-0TUxTiFJWv+JnjWm4o9yvuskpEJLXTcng8MJuKd+SzAzp2o+OP3HWqNhB4OdJRt1Vsd9/mR0oyaEYlOnL7XIRw==}
- engines: {node: '>=16'}
-
- p-limit@2.3.0:
- resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}
- engines: {node: '>=6'}
-
- p-locate@4.1.0:
- resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}
- engines: {node: '>=8'}
-
- p-try@2.2.0:
- resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
- engines: {node: '>=6'}
-
- parse5-htmlparser2-tree-adapter@7.0.0:
- resolution: {integrity: sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==}
-
- parse5@7.1.2:
- resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}
-
- path-exists@4.0.0:
- resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
- engines: {node: '>=8'}
-
- path-is-absolute@1.0.1:
- resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
- engines: {node: '>=0.10.0'}
-
- path-key@3.1.1:
- resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
- engines: {node: '>=8'}
-
- path-key@4.0.0:
- resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
- engines: {node: '>=12'}
-
- path-type@5.0.0:
- resolution: {integrity: sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==}
- engines: {node: '>=12'}
-
- photoswipe@5.4.3:
- resolution: {integrity: sha512-9UC6oJBK4oXFZ5HcdlcvGkfEHsVrmE4csUdCQhEjHYb3PvPLO3PG7UhnPuOgjxwmhq5s17Un5NUdum01LgBDng==}
- engines: {node: '>= 0.12.0'}
-
- picocolors@1.0.0:
- resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==}
-
- picomatch@2.3.1:
- resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
- engines: {node: '>=8.6'}
-
- pify@2.3.0:
- resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
- engines: {node: '>=0.10.0'}
-
- pinkie-promise@2.0.1:
- resolution: {integrity: sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==}
- engines: {node: '>=0.10.0'}
-
- pinkie@2.0.4:
- resolution: {integrity: sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==}
- engines: {node: '>=0.10.0'}
-
- pkg-dir@4.2.0:
- resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
- engines: {node: '>=8'}
-
- pngjs@5.0.0:
- resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==}
- engines: {node: '>=10.13.0'}
-
- postcss-load-config@4.0.2:
- resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
- engines: {node: '>= 14'}
- peerDependencies:
- postcss: '>=8.0.9'
- ts-node: '>=9.0.0'
- peerDependenciesMeta:
- postcss:
- optional: true
- ts-node:
- optional: true
-
- postcss-value-parser@4.2.0:
- resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
-
- postcss@8.4.33:
- resolution: {integrity: sha512-Kkpbhhdjw2qQs2O2DGX+8m5OVqEcbB9HRBvuYM9pgrjEFUg30A9LmXNlTAUj4S9kgtGyrMbTzVjH7E+s5Re2yg==}
- engines: {node: ^10 || ^12 || >=14}
-
- preact@10.19.3:
- resolution: {integrity: sha512-nHHTeFVBTHRGxJXKkKu5hT8C/YWBkPso4/Gad6xuj5dbptt9iF9NZr9pHbPhBrnT2klheu7mHTxTZ/LjwJiEiQ==}
-
- prismjs@1.29.0:
- resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==}
- engines: {node: '>=6'}
-
- qrcode@1.5.3:
- resolution: {integrity: sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==}
- engines: {node: '>=10.13.0'}
- hasBin: true
-
- queue-microtask@1.2.3:
- resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
-
- readable-stream@3.6.2:
- resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
- engines: {node: '>= 6'}
-
- readdirp@3.6.0:
- resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
- engines: {node: '>=8.10.0'}
-
- require-directory@2.1.1:
- resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
- engines: {node: '>=0.10.0'}
-
- require-main-filename@2.0.0:
- resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==}
-
- restore-cursor@4.0.0:
- resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
- reusify@1.0.4:
- resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
- engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
-
- rollup@4.9.6:
- resolution: {integrity: sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==}
- engines: {node: '>=18.0.0', npm: '>=8.0.0'}
- hasBin: true
-
- run-parallel@1.2.0:
- resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
-
- safe-buffer@5.2.1:
- resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
-
- sass@1.70.0:
- resolution: {integrity: sha512-uUxNQ3zAHeAx5nRFskBnrWzDUJrrvpCPD5FNAoRvTi0WwremlheES3tg+56PaVtCs5QDRX5CBLxxKMDJMEa1WQ==}
- engines: {node: '>=14.0.0'}
- hasBin: true
-
- sax@1.3.0:
- resolution: {integrity: sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA==}
-
- search-insights@2.13.0:
- resolution: {integrity: sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==}
-
- section-matter@1.0.0:
- resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
- engines: {node: '>=4'}
-
- semver@6.3.1:
- resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
- hasBin: true
-
- semver@7.5.4:
- resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==}
- engines: {node: '>=10'}
- hasBin: true
-
- set-blocking@2.0.0:
- resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
-
- shebang-command@2.0.0:
- resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
- engines: {node: '>=8'}
-
- shebang-regex@3.0.0:
- resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
- engines: {node: '>=8'}
-
- signal-exit@3.0.7:
- resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
-
- signal-exit@4.1.0:
- resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
- engines: {node: '>=14'}
-
- sitemap@7.1.1:
- resolution: {integrity: sha512-mK3aFtjz4VdJN0igpIJrinf3EO8U8mxOPsTBzSsy06UtjZQJ3YY3o3Xa7zSc5nMqcMrRwlChHZ18Kxg0caiPBg==}
- engines: {node: '>=12.0.0', npm: '>=5.6.0'}
- hasBin: true
-
- slash@5.1.0:
- resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}
- engines: {node: '>=14.16'}
-
- source-map-js@1.0.2:
- resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
- engines: {node: '>=0.10.0'}
-
- sprintf-js@1.0.3:
- resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
-
- stdin-discarder@0.1.0:
- resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==}
- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
-
- string-width@4.2.3:
- resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
- engines: {node: '>=8'}
-
- string-width@6.1.0:
- resolution: {integrity: sha512-k01swCJAgQmuADB0YIc+7TuatfNvTBVOoaUWJjTB9R4VJzR5vNWzf5t42ESVZFPS8xTySF7CAdV4t/aaIm3UnQ==}
- engines: {node: '>=16'}
-
- string_decoder@1.3.0:
- resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
-
- strip-ansi@6.0.1:
- resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
- engines: {node: '>=8'}
-
- strip-ansi@7.1.0:
- resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
- engines: {node: '>=12'}
-
- strip-bom-string@1.0.0:
- resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==}
- engines: {node: '>=0.10.0'}
-
- strip-final-newline@3.0.0:
- resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
- engines: {node: '>=12'}
-
- strip-outer@1.0.1:
- resolution: {integrity: sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==}
- engines: {node: '>=0.10.0'}
-
- striptags@3.2.0:
- resolution: {integrity: sha512-g45ZOGzHDMe2bdYMdIvdAfCQkCTDMGBazSw1ypMowwGIee7ZQ5dU0rBJ8Jqgl+jAKIv4dbeE1jscZq9wid1Tkw==}
-
- to-fast-properties@2.0.0:
- resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
- engines: {node: '>=4'}
-
- to-regex-range@5.0.1:
- resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
- engines: {node: '>=8.0'}
-
- trim-repeated@1.0.0:
- resolution: {integrity: sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==}
- engines: {node: '>=0.10.0'}
-
- ts-debounce@4.0.0:
- resolution: {integrity: sha512-+1iDGY6NmOGidq7i7xZGA4cm8DAa6fqdYcvO5Z6yBevH++Bdo9Qt/mN0TzHUgcCcKv1gmh9+W5dHqz8pMWbCbg==}
-
- uc.micro@1.0.6:
- resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}
-
- undici-types@5.26.5:
- resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
-
- unicorn-magic@0.1.0:
- resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==}
- engines: {node: '>=18'}
-
- universalify@2.0.1:
- resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
- engines: {node: '>= 10.0.0'}
-
- upath@2.0.1:
- resolution: {integrity: sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==}
- engines: {node: '>=4'}
-
- update-browserslist-db@1.0.13:
- resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
- hasBin: true
- peerDependencies:
- browserslist: '>= 4.21.0'
-
- util-deprecate@1.0.2:
- resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
-
- vite@5.0.12:
- resolution: {integrity: sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==}
- engines: {node: ^18.0.0 || >=20.0.0}
- hasBin: true
- peerDependencies:
- '@types/node': ^18.0.0 || >=20.0.0
- less: '*'
- lightningcss: ^1.21.0
- sass: '*'
- stylus: '*'
- sugarss: '*'
- terser: ^5.4.0
- peerDependenciesMeta:
- '@types/node':
- optional: true
- less:
- optional: true
- lightningcss:
- optional: true
- sass:
- optional: true
- stylus:
- optional: true
- sugarss:
- optional: true
- terser:
- optional: true
-
- vue-demi@0.14.6:
- resolution: {integrity: sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==}
- engines: {node: '>=12'}
- hasBin: true
- peerDependencies:
- '@vue/composition-api': ^1.0.0-rc.1
- vue: ^3.0.0-0 || ^2.6.0
- peerDependenciesMeta:
- '@vue/composition-api':
- optional: true
-
- vue-router@4.2.5:
- resolution: {integrity: sha512-DIUpKcyg4+PTQKfFPX88UWhlagBEBEfJ5A8XDXRJLUnZOvcpMF8o/dnL90vpVkGaPbjvXazV/rC1qBKrZlFugw==}
- peerDependencies:
- vue: ^3.2.0
-
- vue@3.4.15:
- resolution: {integrity: sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==}
- peerDependencies:
- typescript: '*'
- peerDependenciesMeta:
- typescript:
- optional: true
-
- vuepress-plugin-auto-catalog@2.0.0-rc.11:
- resolution: {integrity: sha512-QA0TN42VSmhrfrl2LKG4ioMBpcQnhB1M799oj6pXQ0MbRdc8Z7rQCVY4DSCGG4I3E7PYUX5sg4bYf1om9BXBsQ==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- sass-loader: ^13.3.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- sass-loader:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-blog2@2.0.0-rc.11:
- resolution: {integrity: sha512-EDzsWMB4U7d6en6Zup/ztUoTrdCesdLdjEpRgXYONRZqlpsyPjzzbO6LW0BCNkBcS4ydyjKUXD+MhH1vgp6q1A==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-comment2@2.0.0-rc.11:
- resolution: {integrity: sha512-Wcj2E/Oi0EWyJI/tR/GJNnvEbKkwvzWNTR+IspmHiH4fc9TPaIwKfKMUAMRUewxnGDaXU5H3+lrHTgkbZsU17g==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- '@waline/client': ^2.15.8 || ^3.0.0-alpha.8
- artalk: ^2.7.3
- sass-loader: ^13.3.0
- twikoo: ^1.5.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- '@waline/client':
- optional: true
- artalk:
- optional: true
- sass-loader:
- optional: true
- twikoo:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-components@2.0.0-rc.11:
- resolution: {integrity: sha512-5h3vIFrl2qBYkbCToH/qni2YIOlIeL1RGzuvA7vDJLfohCIIvi/u/V55HLGc67EbVnlD21g/naVblhgE3r2qkg==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- artplayer: ^5.0.0
- dashjs-pure: ^1.0.0
- hls.js: ^1.4.12
- mpegts.js: ^1.7.3
- plyr: ^3.7.8
- sass-loader: ^13.3.0
- vidstack: ^1.9.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- artplayer:
- optional: true
- dashjs-pure:
- optional: true
- hls.js:
- optional: true
- mpegts.js:
- optional: true
- plyr:
- optional: true
- sass-loader:
- optional: true
- vidstack:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-copy-code2@2.0.0-rc.11:
- resolution: {integrity: sha512-69wX9qjJHGbTSnT5badtr6Z7Ao+/qRNNakTfUh8VIpTcFLtYfC7WhykvC9A8uy8Gti/lh+6Y5SK1EmZiThOqOA==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- sass-loader: ^13.3.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- sass-loader:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-copyright2@2.0.0-rc.11:
- resolution: {integrity: sha512-Squ5YasdSwJy6WejXGbQzWSNgO7jWDgwNDst2fpB1xGI7f7HX9ytK9ZIrrIXkaZCeNz0JCb0xIN8GKEr1qhppQ==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-md-enhance@2.0.0-rc.11:
- resolution: {integrity: sha512-zkQRkuo2oVGaSqW5srKnLSIU1IW/OKMTmjozsqRhJ/pmLJRvoTpqa25Y4DdQYsWYsRXj09qsthobWzOsRSpgjw==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- '@types/reveal.js': ^4.4.5
- '@vue/repl': ^3.0.0
- chart.js: ^4.0.0
- echarts: ^5.0.0
- flowchart.ts: ^2.0.0 || ^3.0.0
- katex: ^0.16.0
- kotlin-playground: ^1.23.0
- markmap-lib: ^0.15.5
- markmap-toolbar: ^0.15.5
- markmap-view: ^0.15.5
- mathjax-full: ^3.2.2
- mermaid: ^10.6.0
- reveal.js: ^5.0.0
- sandpack-vue3: ^3.0.0
- sass-loader: ^13.3.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- '@types/reveal.js':
- optional: true
- '@vue/repl':
- optional: true
- chart.js:
- optional: true
- echarts:
- optional: true
- flowchart.ts:
- optional: true
- katex:
- optional: true
- kotlin-playground:
- optional: true
- markmap-lib:
- optional: true
- markmap-toolbar:
- optional: true
- markmap-view:
- optional: true
- mathjax-full:
- optional: true
- mermaid:
- optional: true
- reveal.js:
- optional: true
- sandpack-vue3:
- optional: true
- sass-loader:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-photo-swipe@2.0.0-rc.11:
- resolution: {integrity: sha512-uSJkuoJTJJjf5PyShm2C7uW6HzCNH3GEcsK0X70pzSytL/lpDF0wUAJqUbZGgt69FPX0mBfl1dOeaMxAduYtJw==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- sass-loader: ^13.3.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- sass-loader:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-reading-time2@2.0.0-rc.11:
- resolution: {integrity: sha512-u0xHTa/s2755mdihqXRdIT+lixWAyxv81LCgPYgiyX432wEVwphxu4AD5r7kV4RUZH37EMehnQz4uXXHf21l8w==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-rtl@2.0.0-rc.11:
- resolution: {integrity: sha512-7cD7+vwRV4qIXxrKx66VWW+2AmXz2jGnJEk6XVWcdjiWoTYR9OMUk/oDsolQJQXEIu949kzxSjl/FnyKuVMSmw==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-sass-palette@2.0.0-rc.11:
- resolution: {integrity: sha512-9uHknDmyGg6BN90kZkQcO96uU1Sfq7e27otQ99zozq32wL2nx84MuVc1d6q95lgpyySwiMZ/l4adSsSIgWAxpQ==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- sass-loader: ^13.3.0
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- sass-loader:
- optional: true
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-seo2@2.0.0-rc.11:
- resolution: {integrity: sha512-Cf5wabvruMYzytwrj+UcXYjsyq/HliZUJ4BwkoyYiz4Jt48pLEQOi1iqxwLnUR0653EPqA9yrmt1uX4kSuBdrQ==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-plugin-sitemap2@2.0.0-rc.11:
- resolution: {integrity: sha512-JxDXr13xeq2sXtUYJ/bsl9G2w3KUmuAd4cFCWdfkVCZL5Yt6FbOUIvqy1qp3DrN35OFr97ir22BtOJDwAyrGcA==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-shared@2.0.0-rc.11:
- resolution: {integrity: sha512-ueyr8gJ40VwDmUILKlSwYwspMHCUdPVE4q5yh7Dm5khrHnARfOmKasV7/FpDQtNL6SPAatG+sGBO/ib4Pb7Htw==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- vuepress: 2.0.0-rc.0
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- vuepress:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-theme-hope@2.0.0-rc.11:
- resolution: {integrity: sha512-BQCobcJ5wM8BDjd53Y24acxrk0Z0nkbNIdYrf1GDsDgMCEB3pD20zwHKOA8NtovZkya7AA6DHhK3XY6bvd2Rlg==}
- engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
- peerDependencies:
- '@vuepress/plugin-docsearch': 2.0.0-rc.0
- '@vuepress/plugin-search': 2.0.0-rc.0
- nodejs-jieba: ^0.1.2
- sass-loader: ^13.3.0
- vuepress: 2.0.0-rc.0
- vuepress-plugin-feed2: 2.0.0-rc.11
- vuepress-plugin-pwa2: 2.0.0-rc.11
- vuepress-plugin-redirect: 2.0.0-rc.11
- vuepress-plugin-search-pro: 2.0.0-rc.11
- vuepress-vite: 2.0.0-rc.0
- vuepress-webpack: 2.0.0-rc.0
- peerDependenciesMeta:
- '@vuepress/plugin-docsearch':
- optional: true
- '@vuepress/plugin-search':
- optional: true
- nodejs-jieba:
- optional: true
- sass-loader:
- optional: true
- vuepress:
- optional: true
- vuepress-plugin-feed2:
- optional: true
- vuepress-plugin-pwa2:
- optional: true
- vuepress-plugin-redirect:
- optional: true
- vuepress-plugin-search-pro:
- optional: true
- vuepress-vite:
- optional: true
- vuepress-webpack:
- optional: true
-
- vuepress-vite@2.0.0-rc.0:
- resolution: {integrity: sha512-+2XBejeiskPyr2raBeA2o4uDFDsjtadpUVmtio3qqFtQpOhidz/ORuiTLr2UfLtFn1ASIHP6Vy2YjQ0e/TeUVw==}
- engines: {node: '>=18.16.0'}
- hasBin: true
- peerDependencies:
- '@vuepress/client': 2.0.0-rc.0
- vue: ^3.3.4
-
- vuepress@2.0.0-rc.0:
- resolution: {integrity: sha512-sydt/B7+pIw926G5PntYmptLkC5o2buXKh+WR1+P2KnsvkXU+UGnQrJJ0FBvu/4RNuY99tkUZd59nyPhEmRrCg==}
- engines: {node: '>=18.16.0'}
- hasBin: true
-
- which-module@2.0.1:
- resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==}
-
- which@2.0.2:
- resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
- engines: {node: '>= 8'}
- hasBin: true
-
- wrap-ansi@6.2.0:
- resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
- engines: {node: '>=8'}
-
- wrappy@1.0.2:
- resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
-
- y18n@4.0.3:
- resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
-
- yallist@4.0.0:
- resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
-
- yaml@2.3.4:
- resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==}
- engines: {node: '>= 14'}
-
- yargs-parser@18.1.3:
- resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==}
- engines: {node: '>=6'}
-
- yargs@15.4.1:
- resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==}
- engines: {node: '>=8'}
-
-snapshots:
-
- '@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0)':
- dependencies:
- '@algolia/autocomplete-plugin-algolia-insights': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0)
- '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)
- transitivePeerDependencies:
- - '@algolia/client-search'
- - algoliasearch
- - search-insights
-
- '@algolia/autocomplete-plugin-algolia-insights@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0)':
- dependencies:
- '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)
- search-insights: 2.13.0
- transitivePeerDependencies:
- - '@algolia/client-search'
- - algoliasearch
-
- '@algolia/autocomplete-preset-algolia@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)':
- dependencies:
- '@algolia/autocomplete-shared': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)
- '@algolia/client-search': 4.22.1
- algoliasearch: 4.22.1
-
- '@algolia/autocomplete-shared@1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)':
- dependencies:
- '@algolia/client-search': 4.22.1
- algoliasearch: 4.22.1
-
- '@algolia/cache-browser-local-storage@4.22.1':
- dependencies:
- '@algolia/cache-common': 4.22.1
-
- '@algolia/cache-common@4.22.1': {}
-
- '@algolia/cache-in-memory@4.22.1':
- dependencies:
- '@algolia/cache-common': 4.22.1
-
- '@algolia/client-account@4.22.1':
- dependencies:
- '@algolia/client-common': 4.22.1
- '@algolia/client-search': 4.22.1
- '@algolia/transporter': 4.22.1
-
- '@algolia/client-analytics@4.22.1':
- dependencies:
- '@algolia/client-common': 4.22.1
- '@algolia/client-search': 4.22.1
- '@algolia/requester-common': 4.22.1
- '@algolia/transporter': 4.22.1
-
- '@algolia/client-common@4.22.1':
- dependencies:
- '@algolia/requester-common': 4.22.1
- '@algolia/transporter': 4.22.1
-
- '@algolia/client-personalization@4.22.1':
- dependencies:
- '@algolia/client-common': 4.22.1
- '@algolia/requester-common': 4.22.1
- '@algolia/transporter': 4.22.1
-
- '@algolia/client-search@4.22.1':
- dependencies:
- '@algolia/client-common': 4.22.1
- '@algolia/requester-common': 4.22.1
- '@algolia/transporter': 4.22.1
-
- '@algolia/logger-common@4.22.1': {}
-
- '@algolia/logger-console@4.22.1':
- dependencies:
- '@algolia/logger-common': 4.22.1
-
- '@algolia/requester-browser-xhr@4.22.1':
- dependencies:
- '@algolia/requester-common': 4.22.1
-
- '@algolia/requester-common@4.22.1': {}
-
- '@algolia/requester-node-http@4.22.1':
- dependencies:
- '@algolia/requester-common': 4.22.1
-
- '@algolia/transporter@4.22.1':
- dependencies:
- '@algolia/cache-common': 4.22.1
- '@algolia/logger-common': 4.22.1
- '@algolia/requester-common': 4.22.1
-
- '@babel/helper-string-parser@7.23.4': {}
-
- '@babel/helper-validator-identifier@7.22.20': {}
-
- '@babel/parser@7.23.6':
- dependencies:
- '@babel/types': 7.23.6
-
- '@babel/types@7.23.6':
- dependencies:
- '@babel/helper-string-parser': 7.23.4
- '@babel/helper-validator-identifier': 7.22.20
- to-fast-properties: 2.0.0
-
- '@docsearch/css@3.5.2': {}
-
- '@docsearch/js@3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)':
- dependencies:
- '@docsearch/react': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)
- preact: 10.19.3
- transitivePeerDependencies:
- - '@algolia/client-search'
- - '@types/react'
- - react
- - react-dom
- - search-insights
-
- '@docsearch/react@3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)':
- dependencies:
- '@algolia/autocomplete-core': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)(search-insights@2.13.0)
- '@algolia/autocomplete-preset-algolia': 1.9.3(@algolia/client-search@4.22.1)(algoliasearch@4.22.1)
- '@docsearch/css': 3.5.2
- algoliasearch: 4.22.1
- search-insights: 2.13.0
- transitivePeerDependencies:
- - '@algolia/client-search'
-
- '@esbuild/aix-ppc64@0.19.11':
- optional: true
-
- '@esbuild/android-arm64@0.19.11':
- optional: true
-
- '@esbuild/android-arm@0.19.11':
- optional: true
-
- '@esbuild/android-x64@0.19.11':
- optional: true
-
- '@esbuild/darwin-arm64@0.19.11':
- optional: true
-
- '@esbuild/darwin-x64@0.19.11':
- optional: true
-
- '@esbuild/freebsd-arm64@0.19.11':
- optional: true
-
- '@esbuild/freebsd-x64@0.19.11':
- optional: true
-
- '@esbuild/linux-arm64@0.19.11':
- optional: true
-
- '@esbuild/linux-arm@0.19.11':
- optional: true
-
- '@esbuild/linux-ia32@0.19.11':
- optional: true
-
- '@esbuild/linux-loong64@0.19.11':
- optional: true
-
- '@esbuild/linux-mips64el@0.19.11':
- optional: true
-
- '@esbuild/linux-ppc64@0.19.11':
- optional: true
-
- '@esbuild/linux-riscv64@0.19.11':
- optional: true
-
- '@esbuild/linux-s390x@0.19.11':
- optional: true
-
- '@esbuild/linux-x64@0.19.11':
- optional: true
-
- '@esbuild/netbsd-x64@0.19.11':
- optional: true
-
- '@esbuild/openbsd-x64@0.19.11':
- optional: true
-
- '@esbuild/sunos-x64@0.19.11':
- optional: true
-
- '@esbuild/win32-arm64@0.19.11':
- optional: true
-
- '@esbuild/win32-ia32@0.19.11':
- optional: true
-
- '@esbuild/win32-x64@0.19.11':
- optional: true
-
- '@jridgewell/sourcemap-codec@1.4.15': {}
-
- '@lit-labs/ssr-dom-shim@1.1.2': {}
-
- '@lit/reactive-element@2.0.3':
- dependencies:
- '@lit-labs/ssr-dom-shim': 1.1.2
-
- '@mdit-vue/plugin-component@1.0.0':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit-vue/plugin-frontmatter@1.0.0':
- dependencies:
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- gray-matter: 4.0.3
- markdown-it: 13.0.2
-
- '@mdit-vue/plugin-headers@1.0.0':
- dependencies:
- '@mdit-vue/shared': 1.0.0
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit-vue/plugin-sfc@1.0.0':
- dependencies:
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit-vue/plugin-title@1.0.0':
- dependencies:
- '@mdit-vue/shared': 1.0.0
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit-vue/plugin-toc@1.0.0':
- dependencies:
- '@mdit-vue/shared': 1.0.0
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit-vue/shared@1.0.0':
- dependencies:
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit-vue/types@1.0.0': {}
-
- '@mdit/plugin-alert@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-align@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@mdit/plugin-container': 0.7.6(markdown-it@13.0.2)
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-attrs@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-container@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-demo@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-figure@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-footnote@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-img-lazyload@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-img-mark@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-img-size@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-include@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
- upath: 2.0.1
-
- '@mdit/plugin-katex@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@mdit/plugin-tex': 0.7.6(markdown-it@13.0.2)
- '@types/katex': 0.16.7
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-mark@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-mathjax@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@mdit/plugin-tex': 0.7.6(markdown-it@13.0.2)
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
- upath: 2.0.1
-
- '@mdit/plugin-stylize@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-sub@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-sup@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-tab@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-tasklist@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-tex@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@mdit/plugin-uml@0.7.6(markdown-it@13.0.2)':
- dependencies:
- '@types/markdown-it': 13.0.7
- markdown-it: 13.0.2
-
- '@nodelib/fs.scandir@2.1.5':
- dependencies:
- '@nodelib/fs.stat': 2.0.5
- run-parallel: 1.2.0
-
- '@nodelib/fs.stat@2.0.5': {}
-
- '@nodelib/fs.walk@1.2.8':
- dependencies:
- '@nodelib/fs.scandir': 2.1.5
- fastq: 1.16.0
-
- '@rollup/rollup-android-arm-eabi@4.9.6':
- optional: true
-
- '@rollup/rollup-android-arm64@4.9.6':
- optional: true
-
- '@rollup/rollup-darwin-arm64@4.9.6':
- optional: true
-
- '@rollup/rollup-darwin-x64@4.9.6':
- optional: true
-
- '@rollup/rollup-linux-arm-gnueabihf@4.9.6':
- optional: true
-
- '@rollup/rollup-linux-arm64-gnu@4.9.6':
- optional: true
-
- '@rollup/rollup-linux-arm64-musl@4.9.6':
- optional: true
-
- '@rollup/rollup-linux-riscv64-gnu@4.9.6':
- optional: true
-
- '@rollup/rollup-linux-x64-gnu@4.9.6':
- optional: true
-
- '@rollup/rollup-linux-x64-musl@4.9.6':
- optional: true
-
- '@rollup/rollup-win32-arm64-msvc@4.9.6':
- optional: true
-
- '@rollup/rollup-win32-ia32-msvc@4.9.6':
- optional: true
-
- '@rollup/rollup-win32-x64-msvc@4.9.6':
- optional: true
-
- '@sindresorhus/merge-streams@1.0.0': {}
-
- '@stackblitz/sdk@1.9.0': {}
-
- '@types/debug@4.1.12':
- dependencies:
- '@types/ms': 0.7.34
-
- '@types/estree@1.0.5': {}
-
- '@types/fs-extra@11.0.4':
- dependencies:
- '@types/jsonfile': 6.1.4
- '@types/node': 20.11.5
-
- '@types/hash-sum@1.0.2': {}
-
- '@types/jsonfile@6.1.4':
- dependencies:
- '@types/node': 20.11.5
-
- '@types/katex@0.16.7': {}
-
- '@types/linkify-it@3.0.5': {}
-
- '@types/markdown-it-emoji@2.0.4':
- dependencies:
- '@types/markdown-it': 13.0.7
-
- '@types/markdown-it@13.0.7':
- dependencies:
- '@types/linkify-it': 3.0.5
- '@types/mdurl': 1.0.5
-
- '@types/mdurl@1.0.5': {}
-
- '@types/ms@0.7.34': {}
-
- '@types/node@17.0.45': {}
-
- '@types/node@20.11.5':
- dependencies:
- undici-types: 5.26.5
-
- '@types/sax@1.2.7':
- dependencies:
- '@types/node': 17.0.45
-
- '@types/trusted-types@2.0.7': {}
-
- '@types/web-bluetooth@0.0.20': {}
-
- '@vitejs/plugin-vue@4.6.2(vite@5.0.12)(vue@3.4.15)':
- dependencies:
- vite: 5.0.12
- vue: 3.4.15
-
- '@vue/compiler-core@3.4.15':
- dependencies:
- '@babel/parser': 7.23.6
- '@vue/shared': 3.4.15
- entities: 4.5.0
- estree-walker: 2.0.2
- source-map-js: 1.0.2
-
- '@vue/compiler-dom@3.4.15':
- dependencies:
- '@vue/compiler-core': 3.4.15
- '@vue/shared': 3.4.15
-
- '@vue/compiler-sfc@3.4.15':
- dependencies:
- '@babel/parser': 7.23.6
- '@vue/compiler-core': 3.4.15
- '@vue/compiler-dom': 3.4.15
- '@vue/compiler-ssr': 3.4.15
- '@vue/shared': 3.4.15
- estree-walker: 2.0.2
- magic-string: 0.30.5
- postcss: 8.4.33
- source-map-js: 1.0.2
-
- '@vue/compiler-ssr@3.4.15':
- dependencies:
- '@vue/compiler-dom': 3.4.15
- '@vue/shared': 3.4.15
-
- '@vue/devtools-api@6.5.1': {}
-
- '@vue/reactivity@3.4.15':
- dependencies:
- '@vue/shared': 3.4.15
-
- '@vue/runtime-core@3.4.15':
- dependencies:
- '@vue/reactivity': 3.4.15
- '@vue/shared': 3.4.15
-
- '@vue/runtime-dom@3.4.15':
- dependencies:
- '@vue/runtime-core': 3.4.15
- '@vue/shared': 3.4.15
- csstype: 3.1.3
-
- '@vue/server-renderer@3.4.15(vue@3.4.15)':
- dependencies:
- '@vue/compiler-ssr': 3.4.15
- '@vue/shared': 3.4.15
- vue: 3.4.15
-
- '@vue/shared@3.4.15': {}
-
- '@vuepress/bundler-vite@2.0.0-rc.0':
- dependencies:
- '@vitejs/plugin-vue': 4.6.2(vite@5.0.12)(vue@3.4.15)
- '@vuepress/client': 2.0.0-rc.0
- '@vuepress/core': 2.0.0-rc.0
- '@vuepress/shared': 2.0.0-rc.0
- '@vuepress/utils': 2.0.0-rc.0
- autoprefixer: 10.4.17(postcss@8.4.33)
- connect-history-api-fallback: 2.0.0
- postcss: 8.4.33
- postcss-load-config: 4.0.2(postcss@8.4.33)
- rollup: 4.9.6
- vite: 5.0.12
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- transitivePeerDependencies:
- - '@types/node'
- - '@vue/composition-api'
- - less
- - lightningcss
- - sass
- - stylus
- - sugarss
- - supports-color
- - terser
- - ts-node
- - typescript
-
- '@vuepress/cli@2.0.0-rc.0':
- dependencies:
- '@vuepress/core': 2.0.0-rc.0
- '@vuepress/shared': 2.0.0-rc.0
- '@vuepress/utils': 2.0.0-rc.0
- cac: 6.7.14
- chokidar: 3.5.3
- envinfo: 7.11.0
- esbuild: 0.19.11
- transitivePeerDependencies:
- - '@vue/composition-api'
- - supports-color
- - typescript
-
- '@vuepress/client@2.0.0-rc.0':
- dependencies:
- '@vue/devtools-api': 6.5.1
- '@vuepress/shared': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- transitivePeerDependencies:
- - '@vue/composition-api'
- - typescript
-
- '@vuepress/core@2.0.0-rc.0':
- dependencies:
- '@vuepress/client': 2.0.0-rc.0
- '@vuepress/markdown': 2.0.0-rc.0
- '@vuepress/shared': 2.0.0-rc.0
- '@vuepress/utils': 2.0.0-rc.0
- vue: 3.4.15
- transitivePeerDependencies:
- - '@vue/composition-api'
- - supports-color
- - typescript
-
- '@vuepress/markdown@2.0.0-rc.0':
- dependencies:
- '@mdit-vue/plugin-component': 1.0.0
- '@mdit-vue/plugin-frontmatter': 1.0.0
- '@mdit-vue/plugin-headers': 1.0.0
- '@mdit-vue/plugin-sfc': 1.0.0
- '@mdit-vue/plugin-title': 1.0.0
- '@mdit-vue/plugin-toc': 1.0.0
- '@mdit-vue/shared': 1.0.0
- '@mdit-vue/types': 1.0.0
- '@types/markdown-it': 13.0.7
- '@types/markdown-it-emoji': 2.0.4
- '@vuepress/shared': 2.0.0-rc.0
- '@vuepress/utils': 2.0.0-rc.0
- markdown-it: 13.0.2
- markdown-it-anchor: 8.6.7(@types/markdown-it@13.0.7)(markdown-it@13.0.2)
- markdown-it-emoji: 2.0.2
- mdurl: 1.0.1
- transitivePeerDependencies:
- - supports-color
-
- '@vuepress/plugin-active-header-links@2.0.0-rc.0':
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
ts-debounce: 4.0.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-back-to-top@2.0.0-rc.0':
+ /@vuepress/plugin-back-to-top@2.0.0-rc.0:
+ resolution: {integrity: sha512-6GPfuzV5lkAnR00BxRUhqMXwMWt741alkq2R6bln4N8BneSOwEpX/7vi19MGf232aKdS/Va4pF5p0/nJ8Sed/g==}
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
ts-debounce: 4.0.0
- vue: 3.4.15
+ vue: 3.4.30
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-container@2.0.0-rc.0':
+ /@vuepress/plugin-container@2.0.0-rc.0:
+ resolution: {integrity: sha512-b7vrLN11YE7qiUDPfA3N9P7Z8fupe9Wbcr9KAE/bmfZ9VT4d6kzpVyoU7XHi99XngitsmnkaXP4aBvBF1c2AnA==}
dependencies:
- '@types/markdown-it': 13.0.7
+ '@types/markdown-it': 13.0.8
'@vuepress/core': 2.0.0-rc.0
'@vuepress/markdown': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
@@ -2661,20 +1296,22 @@ snapshots:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-docsearch@2.0.0-rc.0(@algolia/client-search@4.22.1)(search-insights@2.13.0)':
+ /@vuepress/plugin-docsearch@2.0.0-rc.0(@algolia/client-search@4.23.3)(search-insights@2.14.0):
+ resolution: {integrity: sha512-bFbb+RxNyoLVbojv3Fh3UNfMmx9tszdae5ni9nG2xa05giCRwGKT0wFG3Q6n0a9kIQ6V7z3PjCj9x1k4SALPEA==}
dependencies:
- '@docsearch/css': 3.5.2
- '@docsearch/js': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)
- '@docsearch/react': 3.5.2(@algolia/client-search@4.22.1)(search-insights@2.13.0)
+ '@docsearch/css': 3.6.0
+ '@docsearch/js': 3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
+ '@docsearch/react': 3.6.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
ts-debounce: 4.0.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
transitivePeerDependencies:
- '@algolia/client-search'
- '@types/react'
@@ -2684,21 +1321,25 @@ snapshots:
- search-insights
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-external-link-icon@2.0.0-rc.0':
+ /@vuepress/plugin-external-link-icon@2.0.0-rc.0:
+ resolution: {integrity: sha512-o8bk0oIlj/BkKc02mq91XLDloq1VOz/8iNcRwKAeqBE6svXzdYiyoTGet0J/4iPuAetsCn75S57W6RioDJHMnQ==}
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/markdown': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- vue: 3.4.15
+ vue: 3.4.30
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-git@2.0.0-rc.0':
+ /@vuepress/plugin-git@2.0.0-rc.0:
+ resolution: {integrity: sha512-r7UF77vZxaYeJQLygzodKv+15z3/dTLuGp4VcYO21W6BlJZvd4u9zqgiV7A//bZQvK4+3Hprylr0G3KgXqMewA==}
dependencies:
'@vuepress/core': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
@@ -2707,42 +1348,50 @@ snapshots:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-medium-zoom@2.0.0-rc.0':
+ /@vuepress/plugin-medium-zoom@2.0.0-rc.0:
+ resolution: {integrity: sha512-peU1lYKsmKikIe/0pkJuHzD/k6xW2TuqdvKVhV4I//aOE1WxsREKJ4ACcldmoIsnysoDydAUqKT6xDPGyDsH2g==}
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
medium-zoom: 1.1.0
- vue: 3.4.15
+ vue: 3.4.30
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-nprogress@2.0.0-rc.0':
+ /@vuepress/plugin-nprogress@2.0.0-rc.0:
+ resolution: {integrity: sha512-rI+eK0Pg1KiZE+7hGmDUeSbgdWCid8Vnw0hFKNmjinDzGVmx4m03M6qfvclsI0SryH+lR7itZGLaR4gbTlrz/w==}
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-palette@2.0.0-rc.0':
+ /@vuepress/plugin-palette@2.0.0-rc.0:
+ resolution: {integrity: sha512-wW70SCp3/K7s1lln5YQsBGTog2WXaQv5piva5zhXcQ47YGf4aAJpThDa5C/ot4HhkPOKn8Iz5s0ckxXZzW8DIg==}
dependencies:
'@vuepress/core': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- chokidar: 3.5.3
+ chokidar: 3.6.0
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-prismjs@2.0.0-rc.0':
+ /@vuepress/plugin-prismjs@2.0.0-rc.0:
+ resolution: {integrity: sha512-c5WRI7+FhVjdbymOKQ8F2KY/Bnv7aQtWScVk8vCMUimNi7v7Wff/A/i3KSFNz/tge3LxiAeH/Dc2WS/OnQXwCg==}
dependencies:
'@vuepress/core': 2.0.0-rc.0
prismjs: 1.29.0
@@ -2750,26 +1399,37 @@ snapshots:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/plugin-theme-data@2.0.0-rc.0':
+ /@vuepress/plugin-theme-data@2.0.0-rc.0:
+ resolution: {integrity: sha512-FXY3/Ml+rM6gNKvwdBF6vKAcwnSvtXCzKgQwJAw3ppQTKUkLcbOxqM+h4d8bzHWAAvdnEvQFug5uEZgWllBQbA==}
dependencies:
- '@vue/devtools-api': 6.5.1
+ '@vue/devtools-api': 6.6.3
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- vue: 3.4.15
+ vue: 3.4.30
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/shared@2.0.0-rc.0':
+ /@vuepress/shared@2.0.0-rc.0:
+ resolution: {integrity: sha512-ikdSfjRv5LGM1iv4HHwF9P6gqTjaFCXKPK+hzlkHFHNZO1GLqk7/BPc4F51tAG1s8TcLhUZc+54LrfgS7PkXXA==}
dependencies:
'@mdit-vue/types': 1.0.0
- '@vue/shared': 3.4.15
+ '@vue/shared': 3.4.30
+ dev: true
- '@vuepress/theme-default@2.0.0-rc.0':
+ /@vuepress/theme-default@2.0.0-rc.0:
+ resolution: {integrity: sha512-I8Y08evDmMuD1jh3NftPpFFSlCWOizQDJLjN7EQwcg7jiAP4A7c2REo6nBN2EmP24Mi7UrRM+RnytHR5V+pElA==}
+ peerDependencies:
+ sass-loader: ^13.3.2
+ peerDependenciesMeta:
+ sass-loader:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
@@ -2785,154 +1445,237 @@ snapshots:
'@vuepress/plugin-theme-data': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
- sass: 1.70.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
+ sass: 1.77.6
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- '@vuepress/utils@2.0.0-rc.0':
+ /@vuepress/utils@2.0.0-rc.0:
+ resolution: {integrity: sha512-Q1ay/woClDHcW0Qe91KsnHoupdNN0tp/vhjvVLuAYxlv/1Obii7hz9WFcajyyGEhmsYxdvG2sGmcxFA02tuKkw==}
dependencies:
'@types/debug': 4.1.12
'@types/fs-extra': 11.0.4
'@types/hash-sum': 1.0.2
'@vuepress/shared': 2.0.0-rc.0
- debug: 4.3.4
+ debug: 4.3.5
fs-extra: 11.2.0
- globby: 14.0.0
+ globby: 14.0.1
hash-sum: 2.0.0
ora: 7.0.1
- picocolors: 1.0.0
+ picocolors: 1.0.1
upath: 2.0.1
transitivePeerDependencies:
- supports-color
+ dev: true
- '@vueuse/core@10.7.2(vue@3.4.15)':
+ /@vueuse/core@10.11.0(vue@3.4.30):
+ resolution: {integrity: sha512-x3sD4Mkm7PJ+pcq3HX8PLPBadXCAlSDR/waK87dz0gQE+qJnaaFhc/dZVfJz+IUYzTMVGum2QlR7ImiJQN4s6g==}
dependencies:
'@types/web-bluetooth': 0.0.20
- '@vueuse/metadata': 10.7.2
- '@vueuse/shared': 10.7.2(vue@3.4.15)
- vue-demi: 0.14.6(vue@3.4.15)
+ '@vueuse/metadata': 10.11.0
+ '@vueuse/shared': 10.11.0(vue@3.4.30)
+ vue-demi: 0.14.8(vue@3.4.30)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
+ dev: true
- '@vueuse/metadata@10.7.2': {}
+ /@vueuse/metadata@10.11.0:
+ resolution: {integrity: sha512-kQX7l6l8dVWNqlqyN3ePW3KmjCQO3ZMgXuBMddIu83CmucrsBfXlH+JoviYyRBws/yLTQO8g3Pbw+bdIoVm4oQ==}
+ dev: true
- '@vueuse/shared@10.7.2(vue@3.4.15)':
+ /@vueuse/shared@10.11.0(vue@3.4.30):
+ resolution: {integrity: sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==}
dependencies:
- vue-demi: 0.14.6(vue@3.4.15)
+ vue-demi: 0.14.8(vue@3.4.30)
transitivePeerDependencies:
- '@vue/composition-api'
- vue
+ dev: true
+
+ /algoliasearch@4.23.3:
+ resolution: {integrity: sha512-Le/3YgNvjW9zxIQMRhUHuhiUjAlKY/zsdZpfq4dlLqg6mEm0nL6yk+7f2hDOtLpxsgE4jSzDmvHL7nXdBp5feg==}
+ dependencies:
+ '@algolia/cache-browser-local-storage': 4.23.3
+ '@algolia/cache-common': 4.23.3
+ '@algolia/cache-in-memory': 4.23.3
+ '@algolia/client-account': 4.23.3
+ '@algolia/client-analytics': 4.23.3
+ '@algolia/client-common': 4.23.3
+ '@algolia/client-personalization': 4.23.3
+ '@algolia/client-search': 4.23.3
+ '@algolia/logger-common': 4.23.3
+ '@algolia/logger-console': 4.23.3
+ '@algolia/recommend': 4.23.3
+ '@algolia/requester-browser-xhr': 4.23.3
+ '@algolia/requester-common': 4.23.3
+ '@algolia/requester-node-http': 4.23.3
+ '@algolia/transporter': 4.23.3
+ dev: true
+
+ /ansi-regex@5.0.1:
+ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+ engines: {node: '>=8'}
+ dev: true
- algoliasearch@4.22.1:
- dependencies:
- '@algolia/cache-browser-local-storage': 4.22.1
- '@algolia/cache-common': 4.22.1
- '@algolia/cache-in-memory': 4.22.1
- '@algolia/client-account': 4.22.1
- '@algolia/client-analytics': 4.22.1
- '@algolia/client-common': 4.22.1
- '@algolia/client-personalization': 4.22.1
- '@algolia/client-search': 4.22.1
- '@algolia/logger-common': 4.22.1
- '@algolia/logger-console': 4.22.1
- '@algolia/requester-browser-xhr': 4.22.1
- '@algolia/requester-common': 4.22.1
- '@algolia/requester-node-http': 4.22.1
- '@algolia/transporter': 4.22.1
-
- ansi-regex@5.0.1: {}
-
- ansi-regex@6.0.1: {}
+ /ansi-regex@6.0.1:
+ resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==}
+ engines: {node: '>=12'}
+ dev: true
- ansi-styles@4.3.0:
+ /ansi-styles@4.3.0:
+ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+ engines: {node: '>=8'}
dependencies:
color-convert: 2.0.1
+ dev: true
- anymatch@3.1.3:
+ /anymatch@3.1.3:
+ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
+ engines: {node: '>= 8'}
dependencies:
normalize-path: 3.0.0
picomatch: 2.3.1
+ dev: true
- arg@5.0.2: {}
+ /arg@5.0.2:
+ resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
+ dev: true
- argparse@1.0.10:
+ /argparse@1.0.10:
+ resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==}
dependencies:
sprintf-js: 1.0.3
+ dev: true
- argparse@2.0.1: {}
+ /argparse@2.0.1:
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+ dev: true
- array-union@1.0.2:
+ /array-union@1.0.2:
+ resolution: {integrity: sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==}
+ engines: {node: '>=0.10.0'}
dependencies:
array-uniq: 1.0.3
+ dev: true
- array-uniq@1.0.3: {}
+ /array-uniq@1.0.3:
+ resolution: {integrity: sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- async@3.2.5: {}
+ /async@3.2.5:
+ resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==}
+ dev: true
- autoprefixer@10.4.17(postcss@8.4.33):
+ /autoprefixer@10.4.19(postcss@8.4.38):
+ resolution: {integrity: sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==}
+ engines: {node: ^10 || ^12 || >=14}
+ hasBin: true
+ peerDependencies:
+ postcss: ^8.1.0
dependencies:
- browserslist: 4.22.2
- caniuse-lite: 1.0.30001579
+ browserslist: 4.23.1
+ caniuse-lite: 1.0.30001636
fraction.js: 4.3.7
normalize-range: 0.1.2
- picocolors: 1.0.0
- postcss: 8.4.33
+ picocolors: 1.0.1
+ postcss: 8.4.38
postcss-value-parser: 4.2.0
+ dev: true
- balanced-match@1.0.2: {}
+ /balanced-match@1.0.2:
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+ dev: true
- balloon-css@1.2.0: {}
+ /balloon-css@1.2.0:
+ resolution: {integrity: sha512-urXwkHgwp6GsXVF+it01485Z2Cj4pnW02ICnM0TemOlkKmCNnDLmyy+ZZiRXBpwldUXO+aRNr7Hdia4CBvXJ5A==}
+ dev: true
- base64-js@1.5.1: {}
+ /base64-js@1.5.1:
+ resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
+ dev: true
- bcrypt-ts@5.0.1: {}
+ /bcrypt-ts@5.0.2:
+ resolution: {integrity: sha512-gDwQ5784AkkfhHACh3jGcg1hUubyZyeq9AtVd5gXkcyHGVOC+mORjRIHSj+fHfqwY5vxwyBLXQpcfk8MpK0ROg==}
+ engines: {node: '>=18'}
+ dev: true
- binary-extensions@2.2.0: {}
+ /binary-extensions@2.3.0:
+ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
+ engines: {node: '>=8'}
+ dev: true
- bl@5.1.0:
+ /bl@5.1.0:
+ resolution: {integrity: sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==}
dependencies:
buffer: 6.0.3
inherits: 2.0.4
readable-stream: 3.6.2
+ dev: true
- boolbase@1.0.0: {}
+ /boolbase@1.0.0:
+ resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+ dev: true
- brace-expansion@1.1.11:
+ /brace-expansion@1.1.11:
+ resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
dependencies:
balanced-match: 1.0.2
concat-map: 0.0.1
+ dev: true
- braces@3.0.2:
+ /braces@3.0.3:
+ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
+ engines: {node: '>=8'}
dependencies:
- fill-range: 7.0.1
+ fill-range: 7.1.1
+ dev: true
- browserslist@4.22.2:
+ /browserslist@4.23.1:
+ resolution: {integrity: sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
dependencies:
- caniuse-lite: 1.0.30001579
- electron-to-chromium: 1.4.640
+ caniuse-lite: 1.0.30001636
+ electron-to-chromium: 1.4.811
node-releases: 2.0.14
- update-browserslist-db: 1.0.13(browserslist@4.22.2)
+ update-browserslist-db: 1.0.16(browserslist@4.23.1)
+ dev: true
- buffer@6.0.3:
+ /buffer@6.0.3:
+ resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==}
dependencies:
base64-js: 1.5.1
ieee754: 1.2.1
+ dev: true
- cac@6.7.14: {}
+ /cac@6.7.14:
+ resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
+ engines: {node: '>=8'}
+ dev: true
- camelcase@5.3.1: {}
+ /camelcase@5.3.1:
+ resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}
+ engines: {node: '>=6'}
+ dev: true
- caniuse-lite@1.0.30001579: {}
+ /caniuse-lite@1.0.30001636:
+ resolution: {integrity: sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==}
+ dev: true
- chalk@5.3.0: {}
+ /chalk@5.3.0:
+ resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+ dev: true
- cheerio-select@2.1.0:
+ /cheerio-select@2.1.0:
+ resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}
dependencies:
boolbase: 1.0.0
css-select: 5.1.0
@@ -2940,8 +1683,11 @@ snapshots:
domelementtype: 2.3.0
domhandler: 5.0.3
domutils: 3.1.0
+ dev: true
- cheerio@1.0.0-rc.12:
+ /cheerio@1.0.0-rc.12:
+ resolution: {integrity: sha512-VqR8m68vM46BNnuZ5NtnGBKIE/DfN0cRIzg9n40EIq9NOv90ayxLBXA8fXC5gquFRGJSTRqBq25Jt2ECLR431Q==}
+ engines: {node: '>= 6'}
dependencies:
cheerio-select: 2.1.0
dom-serializer: 2.0.0
@@ -2950,11 +1696,14 @@ snapshots:
htmlparser2: 8.0.2
parse5: 7.1.2
parse5-htmlparser2-tree-adapter: 7.0.0
+ dev: true
- chokidar@3.5.3:
+ /chokidar@3.6.0:
+ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
+ engines: {node: '>= 8.10.0'}
dependencies:
anymatch: 3.1.3
- braces: 3.0.2
+ braces: 3.0.3
glob-parent: 5.1.2
is-binary-path: 2.1.0
is-glob: 4.0.3
@@ -2962,204 +1711,352 @@ snapshots:
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
+ dev: true
- cli-cursor@4.0.0:
+ /cli-cursor@4.0.0:
+ resolution: {integrity: sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
restore-cursor: 4.0.0
+ dev: true
- cli-spinners@2.9.2: {}
+ /cli-spinners@2.9.2:
+ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
+ engines: {node: '>=6'}
+ dev: true
- cliui@6.0.0:
+ /cliui@6.0.0:
+ resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==}
dependencies:
string-width: 4.2.3
strip-ansi: 6.0.1
wrap-ansi: 6.2.0
+ dev: true
- color-convert@2.0.1:
+ /color-convert@2.0.1:
+ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+ engines: {node: '>=7.0.0'}
dependencies:
color-name: 1.1.4
+ dev: true
- color-name@1.1.4: {}
+ /color-name@1.1.4:
+ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+ dev: true
- commander@11.1.0: {}
+ /commander@11.1.0:
+ resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
+ engines: {node: '>=16'}
+ dev: true
- commondir@1.0.1: {}
+ /commondir@1.0.1:
+ resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}
+ dev: true
- concat-map@0.0.1: {}
+ /concat-map@0.0.1:
+ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ dev: true
- connect-history-api-fallback@2.0.0: {}
+ /connect-history-api-fallback@2.0.0:
+ resolution: {integrity: sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==}
+ engines: {node: '>=0.8'}
+ dev: true
- create-codepen@1.0.1: {}
+ /create-codepen@1.0.1:
+ resolution: {integrity: sha512-XzSWwGCFNeOnNGp3KdCDGaKq4Cp1SvjzpPGQqO0tj1HT3BhksLdl/xQ2ZEY4+0MQ3m1I/K1Fvpm4GGMthtamyA==}
+ dev: true
- cross-spawn@7.0.3:
+ /cross-spawn@7.0.3:
+ resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
+ engines: {node: '>= 8'}
dependencies:
path-key: 3.1.1
shebang-command: 2.0.0
which: 2.0.2
+ dev: true
- css-select@5.1.0:
+ /css-select@5.1.0:
+ resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==}
dependencies:
boolbase: 1.0.0
css-what: 6.1.0
domhandler: 5.0.3
domutils: 3.1.0
nth-check: 2.1.1
+ dev: true
- css-what@6.1.0: {}
+ /css-what@6.1.0:
+ resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==}
+ engines: {node: '>= 6'}
+ dev: true
- csstype@3.1.3: {}
+ /csstype@3.1.3:
+ resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
+ dev: true
- dayjs@1.11.10: {}
+ /dayjs@1.11.11:
+ resolution: {integrity: sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==}
+ dev: true
- debug@4.3.4:
+ /debug@4.3.5:
+ resolution: {integrity: sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
dependencies:
ms: 2.1.2
+ dev: true
- decamelize@1.2.0: {}
+ /decamelize@1.2.0:
+ resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- dijkstrajs@1.0.3: {}
+ /dijkstrajs@1.0.3:
+ resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==}
+ dev: true
- dom-serializer@2.0.0:
+ /dom-serializer@2.0.0:
+ resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
dependencies:
domelementtype: 2.3.0
domhandler: 5.0.3
entities: 4.5.0
+ dev: true
- domelementtype@2.3.0: {}
+ /domelementtype@2.3.0:
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+ dev: true
- domhandler@5.0.3:
+ /domhandler@5.0.3:
+ resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
+ engines: {node: '>= 4'}
dependencies:
domelementtype: 2.3.0
+ dev: true
- domutils@3.1.0:
+ /domutils@3.1.0:
+ resolution: {integrity: sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA==}
dependencies:
dom-serializer: 2.0.0
domelementtype: 2.3.0
domhandler: 5.0.3
+ dev: true
- eastasianwidth@0.2.0: {}
+ /eastasianwidth@0.2.0:
+ resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
+ dev: true
- electron-to-chromium@1.4.640: {}
+ /electron-to-chromium@1.4.811:
+ resolution: {integrity: sha512-CDyzcJ5XW78SHzsIOdn27z8J4ist8eaFLhdto2hSMSJQgsiwvbv2fbizcKUICryw1Wii1TI/FEkvzvJsR3awrA==}
+ dev: true
- email-addresses@5.0.0: {}
+ /email-addresses@5.0.0:
+ resolution: {integrity: sha512-4OIPYlA6JXqtVn8zpHpGiI7vE6EQOAg16aGnDMIAlZVinnoZ8208tW1hAbjWydgN/4PLTT9q+O1K6AH/vALJGw==}
+ dev: true
- emoji-regex@10.3.0: {}
+ /emoji-regex@10.3.0:
+ resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==}
+ dev: true
- emoji-regex@8.0.0: {}
+ /emoji-regex@8.0.0:
+ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+ dev: true
- encode-utf8@1.0.3: {}
+ /encode-utf8@1.0.3:
+ resolution: {integrity: sha512-ucAnuBEhUK4boH2HjVYG5Q2mQyPorvv0u/ocS+zhdw0S8AlHYY+GOFhP1Gio5z4icpP2ivFSvhtFjQi8+T9ppw==}
+ dev: true
- entities@3.0.1: {}
+ /entities@3.0.1:
+ resolution: {integrity: sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==}
+ engines: {node: '>=0.12'}
+ dev: true
- entities@4.5.0: {}
+ /entities@4.5.0:
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+ dev: true
- envinfo@7.11.0: {}
+ /envinfo@7.13.0:
+ resolution: {integrity: sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==}
+ engines: {node: '>=4'}
+ hasBin: true
+ dev: true
- esbuild@0.19.11:
+ /esbuild@0.19.12:
+ resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==}
+ engines: {node: '>=12'}
+ hasBin: true
+ requiresBuild: true
optionalDependencies:
- '@esbuild/aix-ppc64': 0.19.11
- '@esbuild/android-arm': 0.19.11
- '@esbuild/android-arm64': 0.19.11
- '@esbuild/android-x64': 0.19.11
- '@esbuild/darwin-arm64': 0.19.11
- '@esbuild/darwin-x64': 0.19.11
- '@esbuild/freebsd-arm64': 0.19.11
- '@esbuild/freebsd-x64': 0.19.11
- '@esbuild/linux-arm': 0.19.11
- '@esbuild/linux-arm64': 0.19.11
- '@esbuild/linux-ia32': 0.19.11
- '@esbuild/linux-loong64': 0.19.11
- '@esbuild/linux-mips64el': 0.19.11
- '@esbuild/linux-ppc64': 0.19.11
- '@esbuild/linux-riscv64': 0.19.11
- '@esbuild/linux-s390x': 0.19.11
- '@esbuild/linux-x64': 0.19.11
- '@esbuild/netbsd-x64': 0.19.11
- '@esbuild/openbsd-x64': 0.19.11
- '@esbuild/sunos-x64': 0.19.11
- '@esbuild/win32-arm64': 0.19.11
- '@esbuild/win32-ia32': 0.19.11
- '@esbuild/win32-x64': 0.19.11
-
- escalade@3.1.1: {}
-
- escape-string-regexp@1.0.5: {}
-
- esprima@4.0.1: {}
-
- estree-walker@2.0.2: {}
-
- execa@8.0.1:
+ '@esbuild/aix-ppc64': 0.19.12
+ '@esbuild/android-arm': 0.19.12
+ '@esbuild/android-arm64': 0.19.12
+ '@esbuild/android-x64': 0.19.12
+ '@esbuild/darwin-arm64': 0.19.12
+ '@esbuild/darwin-x64': 0.19.12
+ '@esbuild/freebsd-arm64': 0.19.12
+ '@esbuild/freebsd-x64': 0.19.12
+ '@esbuild/linux-arm': 0.19.12
+ '@esbuild/linux-arm64': 0.19.12
+ '@esbuild/linux-ia32': 0.19.12
+ '@esbuild/linux-loong64': 0.19.12
+ '@esbuild/linux-mips64el': 0.19.12
+ '@esbuild/linux-ppc64': 0.19.12
+ '@esbuild/linux-riscv64': 0.19.12
+ '@esbuild/linux-s390x': 0.19.12
+ '@esbuild/linux-x64': 0.19.12
+ '@esbuild/netbsd-x64': 0.19.12
+ '@esbuild/openbsd-x64': 0.19.12
+ '@esbuild/sunos-x64': 0.19.12
+ '@esbuild/win32-arm64': 0.19.12
+ '@esbuild/win32-ia32': 0.19.12
+ '@esbuild/win32-x64': 0.19.12
+ dev: true
+
+ /escalade@3.1.2:
+ resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}
+ engines: {node: '>=6'}
+ dev: true
+
+ /escape-string-regexp@1.0.5:
+ resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
+ engines: {node: '>=0.8.0'}
+ dev: true
+
+ /esprima@4.0.1:
+ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
+ engines: {node: '>=4'}
+ hasBin: true
+ dev: true
+
+ /estree-walker@2.0.2:
+ resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
+ dev: true
+
+ /execa@8.0.1:
+ resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==}
+ engines: {node: '>=16.17'}
dependencies:
cross-spawn: 7.0.3
get-stream: 8.0.1
human-signals: 5.0.0
is-stream: 3.0.0
merge-stream: 2.0.0
- npm-run-path: 5.2.0
+ npm-run-path: 5.3.0
onetime: 6.0.0
signal-exit: 4.1.0
strip-final-newline: 3.0.0
+ dev: true
- extend-shallow@2.0.1:
+ /extend-shallow@2.0.1:
+ resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}
+ engines: {node: '>=0.10.0'}
dependencies:
is-extendable: 0.1.1
+ dev: true
- fast-glob@3.3.2:
+ /fast-glob@3.3.2:
+ resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==}
+ engines: {node: '>=8.6.0'}
dependencies:
'@nodelib/fs.stat': 2.0.5
'@nodelib/fs.walk': 1.2.8
glob-parent: 5.1.2
merge2: 1.4.1
- micromatch: 4.0.5
+ micromatch: 4.0.7
+ dev: true
- fastq@1.16.0:
+ /fastq@1.17.1:
+ resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==}
dependencies:
reusify: 1.0.4
+ dev: true
- fflate@0.8.1: {}
+ /fflate@0.8.2:
+ resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==}
+ dev: true
- filename-reserved-regex@2.0.0: {}
+ /filename-reserved-regex@2.0.0:
+ resolution: {integrity: sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==}
+ engines: {node: '>=4'}
+ dev: true
- filenamify@4.3.0:
+ /filenamify@4.3.0:
+ resolution: {integrity: sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==}
+ engines: {node: '>=8'}
dependencies:
filename-reserved-regex: 2.0.0
strip-outer: 1.0.1
trim-repeated: 1.0.0
+ dev: true
- fill-range@7.0.1:
+ /fill-range@7.1.1:
+ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
+ engines: {node: '>=8'}
dependencies:
to-regex-range: 5.0.1
+ dev: true
- find-cache-dir@3.3.2:
+ /find-cache-dir@3.3.2:
+ resolution: {integrity: sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==}
+ engines: {node: '>=8'}
dependencies:
commondir: 1.0.1
make-dir: 3.1.0
pkg-dir: 4.2.0
+ dev: true
- find-up@4.1.0:
+ /find-up@4.1.0:
+ resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}
+ engines: {node: '>=8'}
dependencies:
locate-path: 5.0.0
path-exists: 4.0.0
+ dev: true
- fraction.js@4.3.7: {}
+ /fraction.js@4.3.7:
+ resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
+ dev: true
- fs-extra@11.2.0:
+ /fs-extra@11.2.0:
+ resolution: {integrity: sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==}
+ engines: {node: '>=14.14'}
dependencies:
graceful-fs: 4.2.11
jsonfile: 6.1.0
universalify: 2.0.1
+ dev: true
- fs.realpath@1.0.0: {}
+ /fs.realpath@1.0.0:
+ resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==}
+ dev: true
- fsevents@2.3.3:
+ /fsevents@2.3.3:
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+ requiresBuild: true
+ dev: true
optional: true
- get-caller-file@2.0.5: {}
+ /get-caller-file@2.0.5:
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+ dev: true
- get-stream@8.0.1: {}
+ /get-stream@8.0.1:
+ resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==}
+ engines: {node: '>=16'}
+ dev: true
- gh-pages@6.1.1:
+ /gh-pages@6.1.1:
+ resolution: {integrity: sha512-upnohfjBwN5hBP9w2dPE7HO5JJTHzSGMV1JrLrHvNuqmjoYHg6TBrCcnEoorjG/e0ejbuvnwyKMdTyM40PEByw==}
+ engines: {node: '>=10'}
+ hasBin: true
dependencies:
async: 3.2.5
commander: 11.1.0
@@ -3168,16 +2065,24 @@ snapshots:
find-cache-dir: 3.3.2
fs-extra: 11.2.0
globby: 6.1.0
+ dev: true
- giscus@1.4.0:
+ /giscus@1.5.0:
+ resolution: {integrity: sha512-t3LL0qbSO3JXq3uyQeKpF5CegstGfKX/0gI6eDe1cmnI7D56R7j52yLdzw4pdKrg3VnufwCgCM3FDz7G1Qr6lg==}
dependencies:
- lit: 3.1.1
+ lit: 3.1.4
+ dev: true
- glob-parent@5.1.2:
+ /glob-parent@5.1.2:
+ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
+ engines: {node: '>= 6'}
dependencies:
is-glob: 4.0.3
+ dev: true
- glob@7.2.3:
+ /glob@7.2.3:
+ resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
+ deprecated: Glob versions prior to v9 are no longer supported
dependencies:
fs.realpath: 1.0.0
inflight: 1.0.6
@@ -3185,212 +2090,365 @@ snapshots:
minimatch: 3.1.2
once: 1.4.0
path-is-absolute: 1.0.1
+ dev: true
- globby@14.0.0:
+ /globby@14.0.1:
+ resolution: {integrity: sha512-jOMLD2Z7MAhyG8aJpNOpmziMOP4rPLcc95oQPKXBazW82z+CEgPFBQvEpRUa1KeIMUJo4Wsm+q6uzO/Q/4BksQ==}
+ engines: {node: '>=18'}
dependencies:
- '@sindresorhus/merge-streams': 1.0.0
+ '@sindresorhus/merge-streams': 2.3.0
fast-glob: 3.3.2
- ignore: 5.3.0
+ ignore: 5.3.1
path-type: 5.0.0
slash: 5.1.0
unicorn-magic: 0.1.0
+ dev: true
- globby@6.1.0:
+ /globby@6.1.0:
+ resolution: {integrity: sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw==}
+ engines: {node: '>=0.10.0'}
dependencies:
array-union: 1.0.2
glob: 7.2.3
object-assign: 4.1.1
pify: 2.3.0
pinkie-promise: 2.0.1
+ dev: true
- graceful-fs@4.2.11: {}
+ /graceful-fs@4.2.11:
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+ dev: true
- gray-matter@4.0.3:
+ /gray-matter@4.0.3:
+ resolution: {integrity: sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==}
+ engines: {node: '>=6.0'}
dependencies:
js-yaml: 3.14.1
kind-of: 6.0.3
section-matter: 1.0.0
strip-bom-string: 1.0.0
+ dev: true
- hash-sum@2.0.0: {}
+ /hash-sum@2.0.0:
+ resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==}
+ dev: true
- htmlparser2@8.0.2:
+ /htmlparser2@8.0.2:
+ resolution: {integrity: sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA==}
dependencies:
domelementtype: 2.3.0
domhandler: 5.0.3
domutils: 3.1.0
entities: 4.5.0
+ dev: true
- human-signals@5.0.0: {}
+ /human-signals@5.0.0:
+ resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
+ engines: {node: '>=16.17.0'}
+ dev: true
- ieee754@1.2.1: {}
+ /ieee754@1.2.1:
+ resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
+ dev: true
- ignore@5.3.0: {}
+ /ignore@5.3.1:
+ resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==}
+ engines: {node: '>= 4'}
+ dev: true
- immutable@4.3.4: {}
+ /immutable@4.3.6:
+ resolution: {integrity: sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==}
+ dev: true
- inflight@1.0.6:
+ /inflight@1.0.6:
+ resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==}
+ deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
dependencies:
once: 1.4.0
wrappy: 1.0.2
+ dev: true
- inherits@2.0.4: {}
+ /inherits@2.0.4:
+ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+ dev: true
- is-binary-path@2.1.0:
+ /is-binary-path@2.1.0:
+ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
+ engines: {node: '>=8'}
dependencies:
- binary-extensions: 2.2.0
+ binary-extensions: 2.3.0
+ dev: true
- is-extendable@0.1.1: {}
+ /is-extendable@0.1.1:
+ resolution: {integrity: sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- is-extglob@2.1.1: {}
+ /is-extglob@2.1.1:
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- is-fullwidth-code-point@3.0.0: {}
+ /is-fullwidth-code-point@3.0.0:
+ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+ engines: {node: '>=8'}
+ dev: true
- is-glob@4.0.3:
+ /is-glob@4.0.3:
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
dependencies:
is-extglob: 2.1.1
+ dev: true
- is-interactive@2.0.0: {}
+ /is-interactive@2.0.0:
+ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
+ engines: {node: '>=12'}
+ dev: true
- is-number@7.0.0: {}
+ /is-number@7.0.0:
+ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
+ engines: {node: '>=0.12.0'}
+ dev: true
- is-stream@3.0.0: {}
+ /is-stream@3.0.0:
+ resolution: {integrity: sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ dev: true
- is-unicode-supported@1.3.0: {}
+ /is-unicode-supported@1.3.0:
+ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}
+ engines: {node: '>=12'}
+ dev: true
- isexe@2.0.0: {}
+ /isexe@2.0.0:
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+ dev: true
- js-yaml@3.14.1:
+ /js-yaml@3.14.1:
+ resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==}
+ hasBin: true
dependencies:
argparse: 1.0.10
esprima: 4.0.1
+ dev: true
- js-yaml@4.1.0:
+ /js-yaml@4.1.0:
+ resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==}
+ hasBin: true
dependencies:
argparse: 2.0.1
+ dev: true
- jsonfile@6.1.0:
+ /jsonfile@6.1.0:
+ resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==}
dependencies:
universalify: 2.0.1
optionalDependencies:
graceful-fs: 4.2.11
+ dev: true
- kind-of@6.0.3: {}
+ /kind-of@6.0.3:
+ resolution: {integrity: sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- lilconfig@3.0.0: {}
+ /lilconfig@3.1.2:
+ resolution: {integrity: sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==}
+ engines: {node: '>=14'}
+ dev: true
- linkify-it@4.0.1:
+ /linkify-it@4.0.1:
+ resolution: {integrity: sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==}
dependencies:
uc.micro: 1.0.6
+ dev: true
- lit-element@4.0.3:
+ /lit-element@4.0.6:
+ resolution: {integrity: sha512-U4sdJ3CSQip7sLGZ/uJskO5hGiqtlpxndsLr6mt3IQIjheg93UKYeGQjWMRql1s/cXNOaRrCzC2FQwjIwSUqkg==}
dependencies:
- '@lit-labs/ssr-dom-shim': 1.1.2
- '@lit/reactive-element': 2.0.3
- lit-html: 3.1.1
+ '@lit-labs/ssr-dom-shim': 1.2.0
+ '@lit/reactive-element': 2.0.4
+ lit-html: 3.1.4
+ dev: true
- lit-html@3.1.1:
+ /lit-html@3.1.4:
+ resolution: {integrity: sha512-yKKO2uVv7zYFHlWMfZmqc+4hkmSbFp8jgjdZY9vvR9jr4J8fH6FUMXhr+ljfELgmjpvlF7Z1SJ5n5/Jeqtc9YA==}
dependencies:
'@types/trusted-types': 2.0.7
+ dev: true
- lit@3.1.1:
+ /lit@3.1.4:
+ resolution: {integrity: sha512-q6qKnKXHy2g1kjBaNfcoLlgbI3+aSOZ9Q4tiGa9bGYXq5RBXxkVTqTIVmP2VWMp29L4GyvCFm8ZQ2o56eUAMyA==}
dependencies:
- '@lit/reactive-element': 2.0.3
- lit-element: 4.0.3
- lit-html: 3.1.1
+ '@lit/reactive-element': 2.0.4
+ lit-element: 4.0.6
+ lit-html: 3.1.4
+ dev: true
- locate-path@5.0.0:
+ /locate-path@5.0.0:
+ resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
+ engines: {node: '>=8'}
dependencies:
p-locate: 4.1.0
+ dev: true
- log-symbols@5.1.0:
+ /log-symbols@5.1.0:
+ resolution: {integrity: sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==}
+ engines: {node: '>=12'}
dependencies:
chalk: 5.3.0
is-unicode-supported: 1.3.0
+ dev: true
- lru-cache@6.0.0:
- dependencies:
- yallist: 4.0.0
-
- magic-string@0.30.5:
+ /magic-string@0.30.10:
+ resolution: {integrity: sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==}
dependencies:
'@jridgewell/sourcemap-codec': 1.4.15
+ dev: true
- make-dir@3.1.0:
+ /make-dir@3.1.0:
+ resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==}
+ engines: {node: '>=8'}
dependencies:
semver: 6.3.1
+ dev: true
- markdown-it-anchor@8.6.7(@types/markdown-it@13.0.7)(markdown-it@13.0.2):
+ /markdown-it-anchor@8.6.7(@types/markdown-it@13.0.8)(markdown-it@13.0.2):
+ resolution: {integrity: sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==}
+ peerDependencies:
+ '@types/markdown-it': '*'
+ markdown-it: '*'
dependencies:
- '@types/markdown-it': 13.0.7
+ '@types/markdown-it': 13.0.8
markdown-it: 13.0.2
+ dev: true
- markdown-it-container@3.0.0: {}
+ /markdown-it-container@3.0.0:
+ resolution: {integrity: sha512-y6oKTq4BB9OQuY/KLfk/O3ysFhB3IMYoIWhGJEidXt1NQFocFK2sA2t0NYZAMyMShAGL6x5OPIbrmXPIqaN9rw==}
+ dev: true
- markdown-it-emoji@2.0.2: {}
+ /markdown-it-emoji@2.0.2:
+ resolution: {integrity: sha512-zLftSaNrKuYl0kR5zm4gxXjHaOI3FAOEaloKmRA5hijmJZvSjmxcokOLlzycb/HXlUFWzXqpIEoyEMCE4i9MvQ==}
+ dev: true
- markdown-it@13.0.2:
+ /markdown-it@13.0.2:
+ resolution: {integrity: sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==}
+ hasBin: true
dependencies:
argparse: 2.0.1
entities: 3.0.1
linkify-it: 4.0.1
mdurl: 1.0.1
uc.micro: 1.0.6
+ dev: true
- mdurl@1.0.1: {}
+ /mdurl@1.0.1:
+ resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==}
+ dev: true
- medium-zoom@1.1.0: {}
+ /medium-zoom@1.1.0:
+ resolution: {integrity: sha512-ewyDsp7k4InCUp3jRmwHBRFGyjBimKps/AJLjRSox+2q/2H4p/PNpQf+pwONWlJiOudkBXtbdmVbFjqyybfTmQ==}
+ dev: true
- merge-stream@2.0.0: {}
+ /merge-stream@2.0.0:
+ resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
+ dev: true
- merge2@1.4.1: {}
+ /merge2@1.4.1:
+ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
+ engines: {node: '>= 8'}
+ dev: true
- micromatch@4.0.5:
+ /micromatch@4.0.7:
+ resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==}
+ engines: {node: '>=8.6'}
dependencies:
- braces: 3.0.2
+ braces: 3.0.3
picomatch: 2.3.1
+ dev: true
- mimic-fn@2.1.0: {}
+ /mimic-fn@2.1.0:
+ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
+ engines: {node: '>=6'}
+ dev: true
- mimic-fn@4.0.0: {}
+ /mimic-fn@4.0.0:
+ resolution: {integrity: sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==}
+ engines: {node: '>=12'}
+ dev: true
- minimatch@3.1.2:
+ /minimatch@3.1.2:
+ resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
dependencies:
brace-expansion: 1.1.11
+ dev: true
- ms@2.1.2: {}
+ /ms@2.1.2:
+ resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
+ dev: true
- nanoid@3.3.7: {}
+ /nanoid@3.3.7:
+ resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+ dev: true
- node-releases@2.0.14: {}
+ /node-releases@2.0.14:
+ resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==}
+ dev: true
- normalize-path@3.0.0: {}
+ /normalize-path@3.0.0:
+ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- normalize-range@0.1.2: {}
+ /normalize-range@0.1.2:
+ resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- npm-run-path@5.2.0:
+ /npm-run-path@5.3.0:
+ resolution: {integrity: sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
path-key: 4.0.0
+ dev: true
- nth-check@2.1.1:
+ /nth-check@2.1.1:
+ resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
dependencies:
boolbase: 1.0.0
+ dev: true
- object-assign@4.1.1: {}
+ /object-assign@4.1.1:
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- once@1.4.0:
+ /once@1.4.0:
+ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
dependencies:
wrappy: 1.0.2
+ dev: true
- onetime@5.1.2:
+ /onetime@5.1.2:
+ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
+ engines: {node: '>=6'}
dependencies:
mimic-fn: 2.1.0
+ dev: true
- onetime@6.0.0:
+ /onetime@6.0.0:
+ resolution: {integrity: sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==}
+ engines: {node: '>=12'}
dependencies:
mimic-fn: 4.0.0
+ dev: true
- ora@7.0.1:
+ /ora@7.0.1:
+ resolution: {integrity: sha512-0TUxTiFJWv+JnjWm4o9yvuskpEJLXTcng8MJuKd+SzAzp2o+OP3HWqNhB4OdJRt1Vsd9/mR0oyaEYlOnL7XIRw==}
+ engines: {node: '>=16'}
dependencies:
chalk: 5.3.0
cli-cursor: 4.0.0
@@ -3401,277 +2459,550 @@ snapshots:
stdin-discarder: 0.1.0
string-width: 6.1.0
strip-ansi: 7.1.0
+ dev: true
- p-limit@2.3.0:
+ /p-limit@2.3.0:
+ resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==}
+ engines: {node: '>=6'}
dependencies:
p-try: 2.2.0
+ dev: true
- p-locate@4.1.0:
+ /p-locate@4.1.0:
+ resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}
+ engines: {node: '>=8'}
dependencies:
p-limit: 2.3.0
+ dev: true
- p-try@2.2.0: {}
+ /p-try@2.2.0:
+ resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==}
+ engines: {node: '>=6'}
+ dev: true
- parse5-htmlparser2-tree-adapter@7.0.0:
+ /parse5-htmlparser2-tree-adapter@7.0.0:
+ resolution: {integrity: sha512-B77tOZrqqfUfnVcOrUvfdLbz4pu4RopLD/4vmu3HUPswwTA8OH0EMW9BlWR2B0RCoiZRAHEUu7IxeP1Pd1UU+g==}
dependencies:
domhandler: 5.0.3
parse5: 7.1.2
+ dev: true
- parse5@7.1.2:
+ /parse5@7.1.2:
+ resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}
dependencies:
entities: 4.5.0
+ dev: true
- path-exists@4.0.0: {}
+ /path-exists@4.0.0:
+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
+ engines: {node: '>=8'}
+ dev: true
- path-is-absolute@1.0.1: {}
+ /path-is-absolute@1.0.1:
+ resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- path-key@3.1.1: {}
+ /path-key@3.1.1:
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+ dev: true
- path-key@4.0.0: {}
+ /path-key@4.0.0:
+ resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
+ engines: {node: '>=12'}
+ dev: true
- path-type@5.0.0: {}
+ /path-type@5.0.0:
+ resolution: {integrity: sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==}
+ engines: {node: '>=12'}
+ dev: true
- photoswipe@5.4.3: {}
+ /photoswipe@5.4.4:
+ resolution: {integrity: sha512-WNFHoKrkZNnvFFhbHL93WDkW3ifwVOXSW3w1UuZZelSmgXpIGiZSNlZJq37rR8YejqME2rHs9EhH9ZvlvFH2NA==}
+ engines: {node: '>= 0.12.0'}
+ dev: true
- picocolors@1.0.0: {}
+ /picocolors@1.0.1:
+ resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}
+ dev: true
- picomatch@2.3.1: {}
+ /picomatch@2.3.1:
+ resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
+ engines: {node: '>=8.6'}
+ dev: true
- pify@2.3.0: {}
+ /pify@2.3.0:
+ resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- pinkie-promise@2.0.1:
+ /pinkie-promise@2.0.1:
+ resolution: {integrity: sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==}
+ engines: {node: '>=0.10.0'}
dependencies:
pinkie: 2.0.4
+ dev: true
- pinkie@2.0.4: {}
+ /pinkie@2.0.4:
+ resolution: {integrity: sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- pkg-dir@4.2.0:
+ /pkg-dir@4.2.0:
+ resolution: {integrity: sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==}
+ engines: {node: '>=8'}
dependencies:
find-up: 4.1.0
+ dev: true
- pngjs@5.0.0: {}
+ /pngjs@5.0.0:
+ resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==}
+ engines: {node: '>=10.13.0'}
+ dev: true
- postcss-load-config@4.0.2(postcss@8.4.33):
+ /postcss-load-config@4.0.2(postcss@8.4.38):
+ resolution: {integrity: sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==}
+ engines: {node: '>= 14'}
+ peerDependencies:
+ postcss: '>=8.0.9'
+ ts-node: '>=9.0.0'
+ peerDependenciesMeta:
+ postcss:
+ optional: true
+ ts-node:
+ optional: true
dependencies:
- lilconfig: 3.0.0
- postcss: 8.4.33
- yaml: 2.3.4
+ lilconfig: 3.1.2
+ postcss: 8.4.38
+ yaml: 2.4.5
+ dev: true
- postcss-value-parser@4.2.0: {}
+ /postcss-value-parser@4.2.0:
+ resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==}
+ dev: true
- postcss@8.4.33:
+ /postcss@8.4.38:
+ resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==}
+ engines: {node: ^10 || ^12 || >=14}
dependencies:
nanoid: 3.3.7
- picocolors: 1.0.0
- source-map-js: 1.0.2
+ picocolors: 1.0.1
+ source-map-js: 1.2.0
+ dev: true
- preact@10.19.3: {}
+ /preact@10.22.0:
+ resolution: {integrity: sha512-RRurnSjJPj4rp5K6XoP45Ui33ncb7e4H7WiOHVpjbkvqvA3U+N8Z6Qbo0AE6leGYBV66n8EhEaFixvIu3SkxFw==}
+ dev: true
- prismjs@1.29.0: {}
+ /prismjs@1.29.0:
+ resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==}
+ engines: {node: '>=6'}
+ dev: true
- qrcode@1.5.3:
+ /qrcode@1.5.3:
+ resolution: {integrity: sha512-puyri6ApkEHYiVl4CFzo1tDkAZ+ATcnbJrJ6RiBM1Fhctdn/ix9MTE3hRph33omisEbC/2fcfemsseiKgBPKZg==}
+ engines: {node: '>=10.13.0'}
+ hasBin: true
dependencies:
dijkstrajs: 1.0.3
encode-utf8: 1.0.3
pngjs: 5.0.0
yargs: 15.4.1
+ dev: true
- queue-microtask@1.2.3: {}
+ /queue-microtask@1.2.3:
+ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+ dev: true
- readable-stream@3.6.2:
+ /readable-stream@3.6.2:
+ resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
+ engines: {node: '>= 6'}
dependencies:
inherits: 2.0.4
string_decoder: 1.3.0
util-deprecate: 1.0.2
+ dev: true
- readdirp@3.6.0:
+ /readdirp@3.6.0:
+ resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
+ engines: {node: '>=8.10.0'}
dependencies:
picomatch: 2.3.1
+ dev: true
- require-directory@2.1.1: {}
+ /require-directory@2.1.1:
+ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- require-main-filename@2.0.0: {}
+ /require-main-filename@2.0.0:
+ resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==}
+ dev: true
- restore-cursor@4.0.0:
+ /restore-cursor@4.0.0:
+ resolution: {integrity: sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
onetime: 5.1.2
signal-exit: 3.0.7
+ dev: true
- reusify@1.0.4: {}
+ /reusify@1.0.4:
+ resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
+ dev: true
- rollup@4.9.6:
+ /rollup@4.18.0:
+ resolution: {integrity: sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==}
+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}
+ hasBin: true
dependencies:
'@types/estree': 1.0.5
optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.9.6
- '@rollup/rollup-android-arm64': 4.9.6
- '@rollup/rollup-darwin-arm64': 4.9.6
- '@rollup/rollup-darwin-x64': 4.9.6
- '@rollup/rollup-linux-arm-gnueabihf': 4.9.6
- '@rollup/rollup-linux-arm64-gnu': 4.9.6
- '@rollup/rollup-linux-arm64-musl': 4.9.6
- '@rollup/rollup-linux-riscv64-gnu': 4.9.6
- '@rollup/rollup-linux-x64-gnu': 4.9.6
- '@rollup/rollup-linux-x64-musl': 4.9.6
- '@rollup/rollup-win32-arm64-msvc': 4.9.6
- '@rollup/rollup-win32-ia32-msvc': 4.9.6
- '@rollup/rollup-win32-x64-msvc': 4.9.6
+ '@rollup/rollup-android-arm-eabi': 4.18.0
+ '@rollup/rollup-android-arm64': 4.18.0
+ '@rollup/rollup-darwin-arm64': 4.18.0
+ '@rollup/rollup-darwin-x64': 4.18.0
+ '@rollup/rollup-linux-arm-gnueabihf': 4.18.0
+ '@rollup/rollup-linux-arm-musleabihf': 4.18.0
+ '@rollup/rollup-linux-arm64-gnu': 4.18.0
+ '@rollup/rollup-linux-arm64-musl': 4.18.0
+ '@rollup/rollup-linux-powerpc64le-gnu': 4.18.0
+ '@rollup/rollup-linux-riscv64-gnu': 4.18.0
+ '@rollup/rollup-linux-s390x-gnu': 4.18.0
+ '@rollup/rollup-linux-x64-gnu': 4.18.0
+ '@rollup/rollup-linux-x64-musl': 4.18.0
+ '@rollup/rollup-win32-arm64-msvc': 4.18.0
+ '@rollup/rollup-win32-ia32-msvc': 4.18.0
+ '@rollup/rollup-win32-x64-msvc': 4.18.0
fsevents: 2.3.3
+ dev: true
- run-parallel@1.2.0:
+ /run-parallel@1.2.0:
+ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies:
queue-microtask: 1.2.3
+ dev: true
- safe-buffer@5.2.1: {}
+ /safe-buffer@5.2.1:
+ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
+ dev: true
- sass@1.70.0:
+ /sass@1.77.6:
+ resolution: {integrity: sha512-ByXE1oLD79GVq9Ht1PeHWCPMPB8XHpBuz1r85oByKHjZY6qV6rWnQovQzXJXuQ/XyE1Oj3iPk3lo28uzaRA2/Q==}
+ engines: {node: '>=14.0.0'}
+ hasBin: true
dependencies:
- chokidar: 3.5.3
- immutable: 4.3.4
- source-map-js: 1.0.2
+ chokidar: 3.6.0
+ immutable: 4.3.6
+ source-map-js: 1.2.0
+ dev: true
- sax@1.3.0: {}
+ /sax@1.4.1:
+ resolution: {integrity: sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg==}
+ dev: true
- search-insights@2.13.0: {}
+ /search-insights@2.14.0:
+ resolution: {integrity: sha512-OLN6MsPMCghDOqlCtsIsYgtsC0pnwVTyT9Mu6A3ewOj1DxvzZF6COrn2g86E/c05xbktB0XN04m/t1Z+n+fTGw==}
+ dev: true
- section-matter@1.0.0:
+ /section-matter@1.0.0:
+ resolution: {integrity: sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==}
+ engines: {node: '>=4'}
dependencies:
extend-shallow: 2.0.1
kind-of: 6.0.3
+ dev: true
- semver@6.3.1: {}
+ /semver@6.3.1:
+ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
+ hasBin: true
+ dev: true
- semver@7.5.4:
- dependencies:
- lru-cache: 6.0.0
+ /semver@7.6.2:
+ resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==}
+ engines: {node: '>=10'}
+ hasBin: true
+ dev: true
- set-blocking@2.0.0: {}
+ /set-blocking@2.0.0:
+ resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==}
+ dev: true
- shebang-command@2.0.0:
+ /shebang-command@2.0.0:
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
dependencies:
shebang-regex: 3.0.0
+ dev: true
- shebang-regex@3.0.0: {}
+ /shebang-regex@3.0.0:
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+ dev: true
- signal-exit@3.0.7: {}
+ /signal-exit@3.0.7:
+ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+ dev: true
- signal-exit@4.1.0: {}
+ /signal-exit@4.1.0:
+ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
+ engines: {node: '>=14'}
+ dev: true
- sitemap@7.1.1:
+ /sitemap@7.1.2:
+ resolution: {integrity: sha512-ARCqzHJ0p4gWt+j7NlU5eDlIO9+Rkr/JhPFZKKQ1l5GCus7rJH4UdrlVAh0xC/gDS/Qir2UMxqYNHtsKr2rpCw==}
+ engines: {node: '>=12.0.0', npm: '>=5.6.0'}
+ hasBin: true
dependencies:
'@types/node': 17.0.45
'@types/sax': 1.2.7
arg: 5.0.2
- sax: 1.3.0
+ sax: 1.4.1
+ dev: true
- slash@5.1.0: {}
+ /slash@5.1.0:
+ resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}
+ engines: {node: '>=14.16'}
+ dev: true
- source-map-js@1.0.2: {}
+ /source-map-js@1.2.0:
+ resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- sprintf-js@1.0.3: {}
+ /sprintf-js@1.0.3:
+ resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==}
+ dev: true
- stdin-discarder@0.1.0:
+ /stdin-discarder@0.1.0:
+ resolution: {integrity: sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
dependencies:
bl: 5.1.0
+ dev: true
- string-width@4.2.3:
+ /string-width@4.2.3:
+ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+ engines: {node: '>=8'}
dependencies:
emoji-regex: 8.0.0
is-fullwidth-code-point: 3.0.0
strip-ansi: 6.0.1
+ dev: true
- string-width@6.1.0:
+ /string-width@6.1.0:
+ resolution: {integrity: sha512-k01swCJAgQmuADB0YIc+7TuatfNvTBVOoaUWJjTB9R4VJzR5vNWzf5t42ESVZFPS8xTySF7CAdV4t/aaIm3UnQ==}
+ engines: {node: '>=16'}
dependencies:
eastasianwidth: 0.2.0
emoji-regex: 10.3.0
strip-ansi: 7.1.0
+ dev: true
- string_decoder@1.3.0:
+ /string_decoder@1.3.0:
+ resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
dependencies:
safe-buffer: 5.2.1
+ dev: true
- strip-ansi@6.0.1:
+ /strip-ansi@6.0.1:
+ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+ engines: {node: '>=8'}
dependencies:
ansi-regex: 5.0.1
+ dev: true
- strip-ansi@7.1.0:
+ /strip-ansi@7.1.0:
+ resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==}
+ engines: {node: '>=12'}
dependencies:
ansi-regex: 6.0.1
+ dev: true
- strip-bom-string@1.0.0: {}
+ /strip-bom-string@1.0.0:
+ resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==}
+ engines: {node: '>=0.10.0'}
+ dev: true
- strip-final-newline@3.0.0: {}
+ /strip-final-newline@3.0.0:
+ resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==}
+ engines: {node: '>=12'}
+ dev: true
- strip-outer@1.0.1:
+ /strip-outer@1.0.1:
+ resolution: {integrity: sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==}
+ engines: {node: '>=0.10.0'}
dependencies:
escape-string-regexp: 1.0.5
+ dev: true
- striptags@3.2.0: {}
+ /striptags@3.2.0:
+ resolution: {integrity: sha512-g45ZOGzHDMe2bdYMdIvdAfCQkCTDMGBazSw1ypMowwGIee7ZQ5dU0rBJ8Jqgl+jAKIv4dbeE1jscZq9wid1Tkw==}
+ dev: true
- to-fast-properties@2.0.0: {}
+ /to-fast-properties@2.0.0:
+ resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==}
+ engines: {node: '>=4'}
+ dev: true
- to-regex-range@5.0.1:
+ /to-regex-range@5.0.1:
+ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
+ engines: {node: '>=8.0'}
dependencies:
is-number: 7.0.0
+ dev: true
- trim-repeated@1.0.0:
+ /trim-repeated@1.0.0:
+ resolution: {integrity: sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==}
+ engines: {node: '>=0.10.0'}
dependencies:
escape-string-regexp: 1.0.5
+ dev: true
- ts-debounce@4.0.0: {}
+ /ts-debounce@4.0.0:
+ resolution: {integrity: sha512-+1iDGY6NmOGidq7i7xZGA4cm8DAa6fqdYcvO5Z6yBevH++Bdo9Qt/mN0TzHUgcCcKv1gmh9+W5dHqz8pMWbCbg==}
+ dev: true
- uc.micro@1.0.6: {}
+ /uc.micro@1.0.6:
+ resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==}
+ dev: true
- undici-types@5.26.5: {}
+ /undici-types@5.26.5:
+ resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}
+ dev: true
- unicorn-magic@0.1.0: {}
+ /unicorn-magic@0.1.0:
+ resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==}
+ engines: {node: '>=18'}
+ dev: true
- universalify@2.0.1: {}
+ /universalify@2.0.1:
+ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
+ engines: {node: '>= 10.0.0'}
+ dev: true
- upath@2.0.1: {}
+ /upath@2.0.1:
+ resolution: {integrity: sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==}
+ engines: {node: '>=4'}
+ dev: true
- update-browserslist-db@1.0.13(browserslist@4.22.2):
+ /update-browserslist-db@1.0.16(browserslist@4.23.1):
+ resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
dependencies:
- browserslist: 4.22.2
- escalade: 3.1.1
- picocolors: 1.0.0
+ browserslist: 4.23.1
+ escalade: 3.1.2
+ picocolors: 1.0.1
+ dev: true
- util-deprecate@1.0.2: {}
+ /util-deprecate@1.0.2:
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+ dev: true
- vite@5.0.12:
+ /vite@5.0.13:
+ resolution: {integrity: sha512-/9ovhv2M2dGTuA+dY93B9trfyWMDRQw2jdVBhHNP6wr0oF34wG2i/N55801iZIpgUpnHDm4F/FabGQLyc+eOgg==}
+ engines: {node: ^18.0.0 || >=20.0.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^18.0.0 || >=20.0.0
+ less: '*'
+ lightningcss: ^1.21.0
+ sass: '*'
+ stylus: '*'
+ sugarss: '*'
+ terser: ^5.4.0
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
dependencies:
- esbuild: 0.19.11
- postcss: 8.4.33
- rollup: 4.9.6
+ esbuild: 0.19.12
+ postcss: 8.4.38
+ rollup: 4.18.0
optionalDependencies:
fsevents: 2.3.3
+ dev: true
- vue-demi@0.14.6(vue@3.4.15):
+ /vue-demi@0.14.8(vue@3.4.30):
+ resolution: {integrity: sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==}
+ engines: {node: '>=12'}
+ hasBin: true
+ requiresBuild: true
+ peerDependencies:
+ '@vue/composition-api': ^1.0.0-rc.1
+ vue: ^3.0.0-0 || ^2.6.0
+ peerDependenciesMeta:
+ '@vue/composition-api':
+ optional: true
dependencies:
- vue: 3.4.15
+ vue: 3.4.30
+ dev: true
- vue-router@4.2.5(vue@3.4.15):
+ /vue-router@4.4.0(vue@3.4.30):
+ resolution: {integrity: sha512-HB+t2p611aIZraV2aPSRNXf0Z/oLZFrlygJm+sZbdJaW6lcFqEDQwnzUBXn+DApw+/QzDU/I9TeWx9izEjTmsA==}
+ peerDependencies:
+ vue: ^3.2.0
dependencies:
- '@vue/devtools-api': 6.5.1
- vue: 3.4.15
+ '@vue/devtools-api': 6.6.3
+ vue: 3.4.30
+ dev: true
- vue@3.4.15:
+ /vue@3.4.30:
+ resolution: {integrity: sha512-NcxtKCwkdf1zPsr7Y8+QlDBCGqxvjLXF2EX+yi76rV5rrz90Y6gK1cq0olIhdWGgrlhs9ElHuhi9t3+W5sG5Xw==}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
dependencies:
- '@vue/compiler-dom': 3.4.15
- '@vue/compiler-sfc': 3.4.15
- '@vue/runtime-dom': 3.4.15
- '@vue/server-renderer': 3.4.15(vue@3.4.15)
- '@vue/shared': 3.4.15
+ '@vue/compiler-dom': 3.4.30
+ '@vue/compiler-sfc': 3.4.30
+ '@vue/runtime-dom': 3.4.30
+ '@vue/server-renderer': 3.4.30(vue@3.4.30)
+ '@vue/shared': 3.4.30
+ dev: true
- vuepress-plugin-auto-catalog@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-auto-catalog@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-QA0TN42VSmhrfrl2LKG4ioMBpcQnhB1M799oj6pXQ0MbRdc8Z7rQCVY4DSCGG4I3E7PYUX5sg4bYf1om9BXBsQ==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Please use @vuepress/plugin-catalog@next intead
+ peerDependencies:
+ sass-loader: ^13.3.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ sass-loader:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-components: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-plugin-sass-palette: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
@@ -3685,52 +3016,129 @@ snapshots:
- supports-color
- typescript
- vidstack
+ dev: true
- vuepress-plugin-blog2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-blog2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-EDzsWMB4U7d6en6Zup/ztUoTrdCesdLdjEpRgXYONRZqlpsyPjzzbO6LW0BCNkBcS4ydyjKUXD+MhH1vgp6q1A==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Use @vuepress/plugin-blog@next instead
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- chokidar: 3.5.3
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ chokidar: 3.6.0
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-comment2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-comment2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-Wcj2E/Oi0EWyJI/tR/GJNnvEbKkwvzWNTR+IspmHiH4fc9TPaIwKfKMUAMRUewxnGDaXU5H3+lrHTgkbZsU17g==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Use @vuepress/plugin-comment@next instead
+ peerDependencies:
+ '@waline/client': ^2.15.8 || ^3.0.0-alpha.8
+ artalk: ^2.7.3
+ sass-loader: ^13.3.0
+ twikoo: ^1.5.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ '@waline/client':
+ optional: true
+ artalk:
+ optional: true
+ sass-loader:
+ optional: true
+ twikoo:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- giscus: 1.4.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ giscus: 1.5.0
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-sass-palette: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-components@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-components@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-5h3vIFrl2qBYkbCToH/qni2YIOlIeL1RGzuvA7vDJLfohCIIvi/u/V55HLGc67EbVnlD21g/naVblhgE3r2qkg==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ peerDependencies:
+ artplayer: ^5.0.0
+ dashjs-pure: ^1.0.0
+ hls.js: ^1.4.12
+ mpegts.js: ^1.7.3
+ plyr: ^3.7.8
+ sass-loader: ^13.3.0
+ vidstack: ^1.9.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ artplayer:
+ optional: true
+ dashjs-pure:
+ optional: true
+ hls.js:
+ optional: true
+ mpegts.js:
+ optional: true
+ plyr:
+ optional: true
+ sass-loader:
+ optional: true
+ vidstack:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
- '@stackblitz/sdk': 1.9.0
+ '@stackblitz/sdk': 1.10.0
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
balloon-css: 1.2.0
create-codepen: 1.0.1
qrcode: 1.5.3
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-reading-time2: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-plugin-sass-palette: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
@@ -3738,40 +3146,132 @@ snapshots:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-copy-code2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-copy-code2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-69wX9qjJHGbTSnT5badtr6Z7Ao+/qRNNakTfUh8VIpTcFLtYfC7WhykvC9A8uy8Gti/lh+6Y5SK1EmZiThOqOA==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Please use @vuepress/plugin-copy-code@v2 instead
+ peerDependencies:
+ sass-loader: ^13.3.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ sass-loader:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
balloon-css: 1.2.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-sass-palette: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-copyright2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-copyright2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-Squ5YasdSwJy6WejXGbQzWSNgO7jWDgwNDst2fpB1xGI7f7HX9ytK9ZIrrIXkaZCeNz0JCb0xIN8GKEr1qhppQ==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Please use @vuepress/plugin-copyright@v2 instead
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-md-enhance@2.0.0-rc.11(markdown-it@13.0.2)(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-md-enhance@2.0.0-rc.11(markdown-it@13.0.2)(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-zkQRkuo2oVGaSqW5srKnLSIU1IW/OKMTmjozsqRhJ/pmLJRvoTpqa25Y4DdQYsWYsRXj09qsthobWzOsRSpgjw==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ peerDependencies:
+ '@types/reveal.js': ^4.4.5
+ '@vue/repl': ^3.0.0
+ chart.js: ^4.0.0
+ echarts: ^5.0.0
+ flowchart.ts: ^2.0.0 || ^3.0.0
+ katex: ^0.16.0
+ kotlin-playground: ^1.23.0
+ markmap-lib: ^0.15.5
+ markmap-toolbar: ^0.15.5
+ markmap-view: ^0.15.5
+ mathjax-full: ^3.2.2
+ mermaid: ^10.6.0
+ reveal.js: ^5.0.0
+ sandpack-vue3: ^3.0.0
+ sass-loader: ^13.3.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ '@types/reveal.js':
+ optional: true
+ '@vue/repl':
+ optional: true
+ chart.js:
+ optional: true
+ echarts:
+ optional: true
+ flowchart.ts:
+ optional: true
+ katex:
+ optional: true
+ kotlin-playground:
+ optional: true
+ markmap-lib:
+ optional: true
+ markmap-toolbar:
+ optional: true
+ markmap-view:
+ optional: true
+ mathjax-full:
+ optional: true
+ mermaid:
+ optional: true
+ reveal.js:
+ optional: true
+ sandpack-vue3:
+ optional: true
+ sass-loader:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@mdit/plugin-alert': 0.7.6(markdown-it@13.0.2)
'@mdit/plugin-align': 0.7.6(markdown-it@13.0.2)
@@ -3794,16 +3294,16 @@ snapshots:
'@mdit/plugin-tasklist': 0.7.6(markdown-it@13.0.2)
'@mdit/plugin-tex': 0.7.6(markdown-it@13.0.2)
'@mdit/plugin-uml': 0.7.6(markdown-it@13.0.2)
- '@types/markdown-it': 13.0.7
+ '@types/markdown-it': 13.0.8
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
balloon-css: 1.2.0
js-yaml: 4.1.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-sass-palette: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
@@ -3811,112 +3311,259 @@ snapshots:
- markdown-it
- supports-color
- typescript
+ dev: true
- vuepress-plugin-photo-swipe@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-photo-swipe@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-uSJkuoJTJJjf5PyShm2C7uW6HzCNH3GEcsK0X70pzSytL/lpDF0wUAJqUbZGgt69FPX0mBfl1dOeaMxAduYtJw==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Use @vuepress/plugin-photo-swipe instead
+ peerDependencies:
+ sass-loader: ^13.3.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ sass-loader:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
- photoswipe: 5.4.3
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
+ photoswipe: 5.4.4
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-sass-palette: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-reading-time2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-reading-time2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-u0xHTa/s2755mdihqXRdIT+lixWAyxv81LCgPYgiyX432wEVwphxu4AD5r7kV4RUZH37EMehnQz4uXXHf21l8w==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Please use @vuepress/plugin-reading-time@v2 instead
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
- vue: 3.4.15
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-rtl@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-rtl@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-7cD7+vwRV4qIXxrKx66VWW+2AmXz2jGnJEk6XVWcdjiWoTYR9OMUk/oDsolQJQXEIu949kzxSjl/FnyKuVMSmw==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Use @vuepress/plugin-rtl@next instead
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- vue: 3.4.15
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-sass-palette@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-sass-palette@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-9uHknDmyGg6BN90kZkQcO96uU1Sfq7e27otQ99zozq32wL2nx84MuVc1d6q95lgpyySwiMZ/l4adSsSIgWAxpQ==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ peerDependencies:
+ sass-loader: ^13.3.0
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ sass-loader:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- chokidar: 3.5.3
- sass: 1.70.0
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ chokidar: 3.6.0
+ sass: 1.77.6
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-seo2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-seo2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-Cf5wabvruMYzytwrj+UcXYjsyq/HliZUJ4BwkoyYiz4Jt48pLEQOi1iqxwLnUR0653EPqA9yrmt1uX4kSuBdrQ==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Please use @vuepress/plugin-seo@v2 instead
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-plugin-sitemap2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-plugin-sitemap2@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-JxDXr13xeq2sXtUYJ/bsl9G2w3KUmuAd4cFCWdfkVCZL5Yt6FbOUIvqy1qp3DrN35OFr97ir22BtOJDwAyrGcA==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ deprecated: Please use @vuepress/plugin-sitemap@v2 instead
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- sitemap: 7.1.1
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ sitemap: 7.1.2
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-shared: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-shared@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ /vuepress-shared@2.0.0-rc.11(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-ueyr8gJ40VwDmUILKlSwYwspMHCUdPVE4q5yh7Dm5khrHnARfOmKasV7/FpDQtNL6SPAatG+sGBO/ib4Pb7Htw==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ peerDependencies:
+ vuepress: 2.0.0-rc.0
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ vuepress:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/client': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
cheerio: 1.0.0-rc.12
- dayjs: 1.11.10
+ dayjs: 1.11.11
execa: 8.0.1
- fflate: 0.8.1
+ fflate: 0.8.2
gray-matter: 4.0.3
- semver: 7.5.4
+ semver: 7.6.2
striptags: 3.2.0
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
transitivePeerDependencies:
- '@vue/composition-api'
- supports-color
- typescript
+ dev: true
- vuepress-theme-hope@2.0.0-rc.11(@vuepress/plugin-docsearch@2.0.0-rc.0)(markdown-it@13.0.2)(vuepress@2.0.0-rc.0):
+ /vuepress-theme-hope@2.0.0-rc.11(@vuepress/plugin-docsearch@2.0.0-rc.0)(markdown-it@13.0.2)(vuepress@2.0.0-rc.0):
+ resolution: {integrity: sha512-BQCobcJ5wM8BDjd53Y24acxrk0Z0nkbNIdYrf1GDsDgMCEB3pD20zwHKOA8NtovZkya7AA6DHhK3XY6bvd2Rlg==}
+ engines: {node: '>=18.16.0', npm: '>=8', pnpm: '>=7', yarn: '>=2'}
+ peerDependencies:
+ '@vuepress/plugin-docsearch': 2.0.0-rc.0
+ '@vuepress/plugin-search': 2.0.0-rc.0
+ nodejs-jieba: ^0.1.2
+ sass-loader: ^13.3.0
+ vuepress: 2.0.0-rc.0
+ vuepress-plugin-feed2: 2.0.0-rc.11
+ vuepress-plugin-pwa2: 2.0.0-rc.11
+ vuepress-plugin-redirect: 2.0.0-rc.11
+ vuepress-plugin-search-pro: 2.0.0-rc.11
+ vuepress-vite: 2.0.0-rc.0
+ vuepress-webpack: 2.0.0-rc.0
+ peerDependenciesMeta:
+ '@vuepress/plugin-docsearch':
+ optional: true
+ '@vuepress/plugin-search':
+ optional: true
+ nodejs-jieba:
+ optional: true
+ sass-loader:
+ optional: true
+ vuepress:
+ optional: true
+ vuepress-plugin-feed2:
+ optional: true
+ vuepress-plugin-pwa2:
+ optional: true
+ vuepress-plugin-redirect:
+ optional: true
+ vuepress-plugin-search-pro:
+ optional: true
+ vuepress-vite:
+ optional: true
+ vuepress-webpack:
+ optional: true
dependencies:
'@vuepress/cli': 2.0.0-rc.0
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/plugin-active-header-links': 2.0.0-rc.0
- '@vuepress/plugin-docsearch': 2.0.0-rc.0(@algolia/client-search@4.22.1)(search-insights@2.13.0)
+ '@vuepress/plugin-docsearch': 2.0.0-rc.0(@algolia/client-search@4.23.3)(search-insights@2.14.0)
'@vuepress/plugin-external-link-icon': 2.0.0-rc.0
'@vuepress/plugin-git': 2.0.0-rc.0
'@vuepress/plugin-nprogress': 2.0.0-rc.0
@@ -3924,15 +3571,15 @@ snapshots:
'@vuepress/plugin-theme-data': 2.0.0-rc.0
'@vuepress/shared': 2.0.0-rc.0
'@vuepress/utils': 2.0.0-rc.0
- '@vueuse/core': 10.7.2(vue@3.4.15)
+ '@vueuse/core': 10.11.0(vue@3.4.30)
balloon-css: 1.2.0
- bcrypt-ts: 5.0.1
+ bcrypt-ts: 5.0.2
cheerio: 1.0.0-rc.12
- chokidar: 3.5.3
+ chokidar: 3.6.0
gray-matter: 4.0.3
- vue: 3.4.15
- vue-router: 4.2.5(vue@3.4.15)
- vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vue: 3.4.30
+ vue-router: 4.4.0(vue@3.4.30)
+ vuepress: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
vuepress-plugin-auto-catalog: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-plugin-blog2: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
vuepress-plugin-comment2: 2.0.0-rc.11(vuepress@2.0.0-rc.0)
@@ -3975,15 +3622,22 @@ snapshots:
- twikoo
- typescript
- vidstack
+ dev: true
- vuepress-vite@2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15):
+ /vuepress-vite@2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30):
+ resolution: {integrity: sha512-+2XBejeiskPyr2raBeA2o4uDFDsjtadpUVmtio3qqFtQpOhidz/ORuiTLr2UfLtFn1ASIHP6Vy2YjQ0e/TeUVw==}
+ engines: {node: '>=18.16.0'}
+ hasBin: true
+ peerDependencies:
+ '@vuepress/client': 2.0.0-rc.0
+ vue: ^3.3.4
dependencies:
'@vuepress/bundler-vite': 2.0.0-rc.0
'@vuepress/cli': 2.0.0-rc.0
'@vuepress/client': 2.0.0-rc.0
'@vuepress/core': 2.0.0-rc.0
'@vuepress/theme-default': 2.0.0-rc.0
- vue: 3.4.15
+ vue: 3.4.30
transitivePeerDependencies:
- '@types/node'
- '@vue/composition-api'
@@ -3997,10 +3651,14 @@ snapshots:
- terser
- ts-node
- typescript
+ dev: true
- vuepress@2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15):
+ /vuepress@2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30):
+ resolution: {integrity: sha512-sydt/B7+pIw926G5PntYmptLkC5o2buXKh+WR1+P2KnsvkXU+UGnQrJJ0FBvu/4RNuY99tkUZd59nyPhEmRrCg==}
+ engines: {node: '>=18.16.0'}
+ hasBin: true
dependencies:
- vuepress-vite: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.15)
+ vuepress-vite: 2.0.0-rc.0(@vuepress/client@2.0.0-rc.0)(vue@3.4.30)
transitivePeerDependencies:
- '@types/node'
- '@vue/composition-api'
@@ -4016,33 +3674,54 @@ snapshots:
- ts-node
- typescript
- vue
+ dev: true
- which-module@2.0.1: {}
+ /which-module@2.0.1:
+ resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==}
+ dev: true
- which@2.0.2:
+ /which@2.0.2:
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
dependencies:
isexe: 2.0.0
+ dev: true
- wrap-ansi@6.2.0:
+ /wrap-ansi@6.2.0:
+ resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
+ engines: {node: '>=8'}
dependencies:
ansi-styles: 4.3.0
string-width: 4.2.3
strip-ansi: 6.0.1
+ dev: true
- wrappy@1.0.2: {}
-
- y18n@4.0.3: {}
+ /wrappy@1.0.2:
+ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
+ dev: true
- yallist@4.0.0: {}
+ /y18n@4.0.3:
+ resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==}
+ dev: true
- yaml@2.3.4: {}
+ /yaml@2.4.5:
+ resolution: {integrity: sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==}
+ engines: {node: '>= 14'}
+ hasBin: true
+ dev: true
- yargs-parser@18.1.3:
+ /yargs-parser@18.1.3:
+ resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==}
+ engines: {node: '>=6'}
dependencies:
camelcase: 5.3.1
decamelize: 1.2.0
+ dev: true
- yargs@15.4.1:
+ /yargs@15.4.1:
+ resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==}
+ engines: {node: '>=8'}
dependencies:
cliui: 6.0.0
decamelize: 1.2.0
@@ -4055,3 +3734,4 @@ snapshots:
which-module: 2.0.1
y18n: 4.0.3
yargs-parser: 18.1.3
+ dev: true
diff --git a/docs/src/.vuepress/sidebar/V1.0.x/en.ts b/docs/src/.vuepress/sidebar/V1.0.x/en.ts
index 8655841d..cc91e941 100644
--- a/docs/src/.vuepress/sidebar/V1.0.x/en.ts
+++ b/docs/src/.vuepress/sidebar/V1.0.x/en.ts
@@ -23,6 +23,11 @@ export const enSidebar = {
text: 'TsFile User Guide (V1.0.x)',
children: [],
},
+ {
+ text: 'Navigating Time Series Data',
+ collapsible: true,
+ link: 'QuickStart/Navigating_Time_Series_Data',
+ },
{
text: 'Quick Start',
collapsible: true,
@@ -33,5 +38,6 @@ export const enSidebar = {
// { text: 'Quick Start', link: 'QuickStart' },
// ],
},
+
]
};
diff --git a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
index 867d2620..b62b7ba3 100644
--- a/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
+++ b/docs/src/.vuepress/sidebar/V1.0.x/zh.ts
@@ -23,6 +23,11 @@ export const zhSidebar = {
text: 'TsFile 用户手册 (V1.0.x)',
children: [],
},
+ {
+ text: '走进时序数据',
+ collapsible: true,
+ link: 'QuickStart/Navigating_Time_Series_Data',
+ },
{
text: '快速上手',
collapsible: true,
diff --git a/docs/src/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md b/docs/src/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md
new file mode 100644
index 00000000..20aaef32
--- /dev/null
+++ b/docs/src/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md
@@ -0,0 +1,64 @@
+<!--
+
+ 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.
+
+-->
+# Entering Time Series Data
+
+## What Is Time Series Data?
+
+In today's era of the Internet of Things, various scenarios such as the Internet of Things and industrial scenarios are undergoing digital transformation. People collect various states of devices by installing sensors on them. If the motor collects voltage and current, the blade speed, angular velocity, and power generation of the fan; Vehicle collection of latitude and longitude, speed, and fuel consumption; The vibration frequency, deflection, displacement, etc. of the bridge. The data [...]
+
+
+
+Generally speaking, we refer to each collection point as a measurement point (also known as a physical quantity, time series, timeline, signal quantity, indicator, measurement value, etc.). Each measurement point continuously collects new data information over time, forming a time series. In the form of a table, each time series is a table formed by two columns: time and value; In a graphical way, each time series is a trend chart formed over time, which can also be vividly referred to a [...]
+
+
+
+The massive time series data generated by sensors is the foundation of digital transformation in various industries, so our modeling of time series data mainly focuses on equipment and sensors.
+
+## Key Concepts of Time Series Data
+The main concepts involved in time-series data can be divided from bottom to top: data points, measurement points, and equipment.
+
+
+
+### Data Point
+
+- Definition: Consists of a timestamp and a value, where the timestamp is of type long and the value can be of various types such as BOOLEAN, FLOAT, INT32, etc.
+- Example: A row of a time series in the form of a table in the above figure, or a point of a time series in the form of a graph, is a data point.
+
+
+
+### Measurement Points
+
+- Definition: It is a time series formed by multiple data points arranged in increments according to timestamps. Usually, a measuring point represents a collection point and can regularly collect physical quantities of the environment it is located in.
+- Also known as: physical quantity, time series, timeline, semaphore, indicator, measurement value, etc
+- Example:
+ - Electricity scenario: current, voltage
+ - Energy scenario: wind speed, rotational speed
+ - Vehicle networking scenarios: fuel consumption, vehicle speed, longitude, dimensions
+ - Factory scenario: temperature, humidity
+
+### Device
+
+- Definition: Corresponding to a physical device in an actual scene, usually a collection of measurement points, identified by one to multiple labels
+- Example:
+ - Vehicle networking scenario: Vehicles identified by vehicle identification code (VIN)
+ - Factory scenario: robotic arm, unique ID identification generated by IoT platform
+ - Energy scenario: Wind turbines, identified by region, station, line, model, instance, etc
+ - Monitoring scenario: CPU, identified by machine room, rack, Hostname, device type, etc
\ No newline at end of file
diff --git a/docs/src/zh/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md b/docs/src/zh/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md
new file mode 100644
index 00000000..96e9fdf9
--- /dev/null
+++ b/docs/src/zh/UserGuide/latest/QuickStart/Navigating_Time_Series_Data.md
@@ -0,0 +1,67 @@
+<!--
+
+ 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.
+
+-->
+# 走进时序数据
+
+## 什么叫时序数据?
+
+万物互联的今天,物联网场景、工业场景等各类场景都在进行数字化转型,人们通过在各类设备上安装传感器对设备的各类状态进行采集。如电机采集电压、电流,风机的叶片转速、角速度、发电功率;车辆采集经纬度、速度、油耗;桥梁的振动频率、挠度、位移量等。传感器的数据采集,已经渗透在各个行业中。
+
+
+
+
+
+通常来说,我们把每个采集点位叫做一个**测点( 也叫物理量、时间序列、时间线、信号量、指标、测量值等)**,每个测点都在随时间的推移不断收集到新的数据信息,从而构成了一条**时间序列**。用表格的方式,每个时间序列就是一个由时间、值两列形成的表格;用图形化的方式,每个时间序列就是一个随时间推移形成的走势图,也可以形象的称之为设备的“心电图”。
+
+
+
+传感器产生的海量时序数据是各行各业数字化转型的基础,因此我们对时序数据的模型梳理主要围绕设备、传感器展开。
+
+## 时序数据中的关键概念有哪些?
+
+时序数据中主要涉及的概念由下至上可分为:数据点、测点、设备。
+
+
+
+### 数据点
+
+- 定义:由一个时间戳和一个数值组成,其中时间戳为 long 类型,数值可以为 BOOLEAN、FLOAT、INT32 等各种类型。
+- 示例:如上图中表格形式的时间序列的一行,或图形形式的时间序列的一个点,就是一个数据点。
+
+
+
+### 测点
+
+- 定义:是多个数据点按时间戳递增排列形成的一个时间序列。通常一个测点代表一个采集点位,能够定期采集所在环境的物理量。
+- 又名:物理量、时间序列、时间线、信号量、指标、测量值等
+- 示例:
+ - 电力场景:电流、电压
+ - 能源场景:风速、转速
+ - 车联网场景:油量、车速、经度、维度
+ - 工厂场景:温度、湿度
+
+### 设备
+
+- 定义:对应一个实际场景中的物理设备,通常是一组测点的集合,由一到多个标签定位标识
+- 示例
+ - 车联网场景:车辆,由车辆识别代码 VIN 标识
+ - 工厂场景:机械臂,由物联网平台生成的唯一 ID 标识
+ - 能源场景:风机,由区域、场站、线路、机型、实例等标识
+ - 监控场景:CPU,由机房、机架、Hostname、设备类型等标识
\ No newline at end of file
(tsfile) 21/33: Bump au.com.acegi:xml-format-maven-plugin from 3.2.2 to 3.3.1 (#15)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit e5cbef9656d3db1394f8bffa5f19b06907bf3ce2
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Thu Jul 4 20:58:27 2024 +0800
Bump au.com.acegi:xml-format-maven-plugin from 3.2.2 to 3.3.1 (#15)
Bumps au.com.acegi:xml-format-maven-plugin from 3.2.2 to 3.3.1.
---
updated-dependencies:
- dependency-name: au.com.acegi:xml-format-maven-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 9689d0d0..b59aaf1d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -180,7 +180,7 @@
<plugin>
<groupId>au.com.acegi</groupId>
<artifactId>xml-format-maven-plugin</artifactId>
- <version>3.2.2</version>
+ <version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
(tsfile) 13/33: apply spotless
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit f98273cfc444202b09b69731eaa651aedc784063
Author: jt2594838 <jt...@163.com>
AuthorDate: Tue Jul 2 11:30:50 2024 +0800
apply spotless
---
.../src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java | 2 +-
.../src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java b/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java
index 5682e5ec..6b019930 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encoding/decoder/FloatDecoder.java
@@ -80,7 +80,7 @@ public class FloatDecoder extends Decoder {
logger.debug("tsfile-encoding FloatDecoder: init decoder using long-rlbe and double");
} else {
throw new TsFileDecodingException(
- String.format("data type %s is not supported by FloatDecoder", dataType));
+ String.format("data type %s is not supported by FloatDecoder", dataType));
}
} else {
throw new TsFileDecodingException(
diff --git a/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java b/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java
index 4a79e3e6..adf328e1 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/encoding/encoder/FloatEncoder.java
@@ -79,7 +79,7 @@ public class FloatEncoder extends Encoder {
encoder = new LongRLBE();
} else {
throw new TsFileEncodingException(
- String.format("data type %s is not supported by FloatEncoder", dataType));
+ String.format("data type %s is not supported by FloatEncoder", dataType));
}
} else {
throw new TsFileEncodingException(
(tsfile) 20/33: Bump org.xerial.snappy:snappy-java from 1.1.10.4 to 1.1.10.5 (#106)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 45ae3075b2f9d6fbdf3b87a75d46bc095ea4d960
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Thu Jul 4 20:54:34 2024 +0800
Bump org.xerial.snappy:snappy-java from 1.1.10.4 to 1.1.10.5 (#106)
Bumps [org.xerial.snappy:snappy-java](https://github.com/xerial/snappy-java) from 1.1.10.4 to 1.1.10.5.
- [Release notes](https://github.com/xerial/snappy-java/releases)
- [Commits](https://github.com/xerial/snappy-java/compare/v1.1.10.4...v1.1.10.5)
---
updated-dependencies:
- dependency-name: org.xerial.snappy:snappy-java
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <su...@github.com>
Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
---
java/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/pom.xml b/java/pom.xml
index a761fd2c..5ee4c4ba 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -45,7 +45,7 @@
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
- <version>1.1.10.4</version>
+ <version>1.1.10.5</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
(tsfile) 14/33: feature: finish multiple flush for c++_tsfile (#110)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 425fb467091bca150d3b36c585a15069bc67aa08
Author: RkGrit <89...@users.noreply.github.com>
AuthorDate: Tue Jul 2 17:01:44 2024 +0800
feature: finish multiple flush for c++_tsfile (#110)
* feature: finish multiple flush for c++_tsfile
* rewrite some code and add some comments
* add multi-flush for write_tablet()
---
cpp/src/common/config/config.h | 2 +
cpp/src/common/global.cc | 2 +
cpp/src/common/tsfile_common.h | 9 +++
cpp/src/encoding/bitpack_encoder.h | 43 ++++++++------
cpp/src/encoding/dictionary_encoder.h | 6 ++
cpp/src/encoding/encoder.h | 8 +++
cpp/src/encoding/gorilla_encoder.h | 6 +-
cpp/src/encoding/plain_encoder.h | 8 +--
cpp/src/encoding/ts2diff_encoder.h | 5 ++
cpp/src/file/tsfile_io_writer.cc | 2 -
cpp/src/file/tsfile_io_writer.h | 4 +-
cpp/src/writer/chunk_writer.cc | 9 +++
cpp/src/writer/chunk_writer.h | 2 +
cpp/src/writer/page_writer.h | 12 ++++
cpp/src/writer/tsfile_writer.cc | 104 ++++++++++++++++++++++++++++------
cpp/src/writer/tsfile_writer.h | 8 ++-
16 files changed, 183 insertions(+), 47 deletions(-)
diff --git a/cpp/src/common/config/config.h b/cpp/src/common/config/config.h
index 679a69b0..d2589229 100644
--- a/cpp/src/common/config/config.h
+++ b/cpp/src/common/config/config.h
@@ -49,6 +49,8 @@ typedef struct ConfigValue {
const char *tsfile_prefix_path_;
TSEncoding time_encoding_type_;
uint32_t memtable_flusher_poll_interval_seconds_;
+ int32_t chunk_group_size_threshold_;
+ int32_t record_count_for_next_mem_check_;
} ConfigValue;
extern void init_config_value();
diff --git a/cpp/src/common/global.cc b/cpp/src/common/global.cc
index b54d4499..dfbbfc81 100644
--- a/cpp/src/common/global.cc
+++ b/cpp/src/common/global.cc
@@ -52,6 +52,8 @@ void init_config_value() {
g_config_value_.page_writer_max_memory_bytes_ = 128 * 1024; // 128 k
g_config_value_.max_degree_of_index_node_ = 256;
g_config_value_.tsfile_index_bloom_filter_error_percent_ = 0.05;
+ g_config_value_.record_count_for_next_mem_check_ = 100;
+ g_config_value_.chunk_group_size_threshold_ = 128 * 1024 * 1024;
// g_config_value_.tsfile_prefix_path_ = "./data";
g_config_value_.tsfile_prefix_path_ = "";
// g_config_value_.time_encoding_type_ = TS_2DIFF;
diff --git a/cpp/src/common/tsfile_common.h b/cpp/src/common/tsfile_common.h
index a1920e25..601d5886 100644
--- a/cpp/src/common/tsfile_common.h
+++ b/cpp/src/common/tsfile_common.h
@@ -86,6 +86,15 @@ struct PageHeader {
}
return ret;
}
+
+ /** max page header size without statistics. */
+ static int estimat_max_page_header_size_without_statistics() {
+ // uncompressedSize, compressedSize
+ // because we use unsigned varInt to encode these two integer, each
+ // unsigned varInt will cost at most 5 bytes
+ return 2 * (4 + 1);
+ }
+
#ifndef NDEBUG
friend std::ostream &operator<<(std::ostream &os, const PageHeader &h) {
os << "{uncompressed_size_=" << h.uncompressed_size_
diff --git a/cpp/src/encoding/bitpack_encoder.h b/cpp/src/encoding/bitpack_encoder.h
index 85a385bf..708e00a7 100644
--- a/cpp/src/encoding/bitpack_encoder.h
+++ b/cpp/src/encoding/bitpack_encoder.h
@@ -58,13 +58,12 @@ class BitPackEncoder {
packer_ = nullptr;
}
- void destroy() { /* do nothing for BitPackEncoder */
- delete (packer_);
- }
+ void destroy() { delete (packer_); }
void reset() {
num_buffered_values_ = 0;
bitpacked_group_count_ = 0;
+ bit_width_ = 0;
bytes_buffer_.clear();
byte_cache_.reset();
values_.clear();
@@ -74,11 +73,13 @@ class BitPackEncoder {
FORCE_INLINE void encode(int64_t value, common::ByteStream &out) {
values_.push_back(value);
+ int current_bit_width = 32 - number_of_leading_zeros(value);
+ if (current_bit_width > bit_width_) {
+ bit_width_ = current_bit_width;
+ }
}
void encode_flush(common::ByteStream &out) {
- // we get bit width after receiving all data
- bit_width_ = get_int_max_bit_width(values_);
ASSERT(packer_ == nullptr);
packer_ = new IntPacker(bit_width_);
common::SerializationUtil::write_i8(bit_width_, byte_cache_);
@@ -121,19 +122,6 @@ class BitPackEncoder {
common::mem_free(bytes);
}
- int get_int_max_bit_width(std::vector<int64_t> values) {
- // TODO: Optimization - find the maximum value first, and then calcuate
- // the bit width
- int max = 1;
- for (size_t i = 0; i < values.size(); i++) {
- int bitWidth = 64 - number_of_leading_zeros(values[i]);
- if (bitWidth > max) {
- max = bitWidth;
- }
- }
- return max;
- }
-
void flush(common::ByteStream &out) {
int last_bitpacked_num = num_buffered_values_;
if (num_buffered_values_ > 0) {
@@ -167,6 +155,25 @@ class BitPackEncoder {
bytes_buffer_.clear();
bitpacked_group_count_ = 0;
}
+
+ int get_max_byte_size() {
+ if (values_.empty()) {
+ return 0;
+ }
+ int totalValues = values_.size();
+ int fullGroups = totalValues / 8;
+ int remainingValues = totalValues % 8;
+ int bytesPerGroup = (bit_width_ * 8 + 7) / 8;
+ int maxSize = 0;
+ maxSize += fullGroups * bytesPerGroup;
+ if (remainingValues > 0) {
+ maxSize += bytesPerGroup;
+ }
+
+ // Add additional bytes, because each bitpack group has a header of 1 byte and a tail of 1 byte.
+ maxSize += fullGroups * (1 + 1) + (remainingValues > 0 ? (1 + 1) : 0);
+ return maxSize;
+ }
};
} // end namespace storage
diff --git a/cpp/src/encoding/dictionary_encoder.h b/cpp/src/encoding/dictionary_encoder.h
index 73c6a6f5..9ea3f6f0 100644
--- a/cpp/src/encoding/dictionary_encoder.h
+++ b/cpp/src/encoding/dictionary_encoder.h
@@ -95,6 +95,12 @@ class DictionaryEncoder {
void write_encoded_data(common::ByteStream &out) {
values_encoder_.encode_flush(out);
}
+
+ int get_max_byte_size()
+ {
+ // 4 bytes for storing dictionary size
+ return 4 + map_size_ + values_encoder_.get_max_byte_size();
+ }
};
} // end namespace storage
diff --git a/cpp/src/encoding/encoder.h b/cpp/src/encoding/encoder.h
index 99e5146a..9b52cfd4 100644
--- a/cpp/src/encoding/encoder.h
+++ b/cpp/src/encoding/encoder.h
@@ -38,6 +38,14 @@ class Encoder {
virtual int encode(float value, common::ByteStream &out_stream) = 0;
virtual int encode(double value, common::ByteStream &out_stream) = 0;
virtual int flush(common::ByteStream &out_stream) = 0;
+
+ /**
+ * The maximal possible memory size occupied by current Encoder. This
+ * statistic value doesn't involve OutputStream.
+ *
+ * @return the maximal size of possible memory occupied by current encoder
+ */
+ virtual int get_max_byte_size() = 0;
};
} // end namespace storage
diff --git a/cpp/src/encoding/gorilla_encoder.h b/cpp/src/encoding/gorilla_encoder.h
index 2ae580cd..47cedf18 100644
--- a/cpp/src/encoding/gorilla_encoder.h
+++ b/cpp/src/encoding/gorilla_encoder.h
@@ -119,7 +119,7 @@ class GorillaEncoder : public Encoder {
}
}
- int get_one_item_max_size();
+ int get_max_byte_size();
void write_first(T value, common::ByteStream &out);
void write_existing_leading(T xor_value, common::ByteStream &out);
void write_new_leading(T xor_value, int leading_zeros, int trailing_zeros,
@@ -145,11 +145,11 @@ class GorillaEncoder : public Encoder {
};
template <>
-FORCE_INLINE int GorillaEncoder<int32_t>::get_one_item_max_size() {
+FORCE_INLINE int GorillaEncoder<int32_t>::get_max_byte_size() {
return INT32_ONE_ITEM_MAX_SIZE;
}
template <>
-FORCE_INLINE int GorillaEncoder<int64_t>::get_one_item_max_size() {
+FORCE_INLINE int GorillaEncoder<int64_t>::get_max_byte_size() {
return INT64_ONE_ITEM_MAX_SIZE;
}
diff --git a/cpp/src/encoding/plain_encoder.h b/cpp/src/encoding/plain_encoder.h
index 556aea97..ab1e06f6 100644
--- a/cpp/src/encoding/plain_encoder.h
+++ b/cpp/src/encoding/plain_encoder.h
@@ -28,10 +28,8 @@ class PlainEncoder : public Encoder {
public:
PlainEncoder() {}
~PlainEncoder() { destroy(); }
- void destroy() { /* do nothing for PlainEncoder */
- }
- void reset() { /* do thing for PlainEncoder */
- }
+ void destroy() { /* do nothing for PlainEncoder */ }
+ void reset() { /* do thing for PlainEncoder */ }
FORCE_INLINE int encode(bool value, common::ByteStream &out_stream) {
return common::SerializationUtil::write_i8(value ? 1 : 0, out_stream);
@@ -57,6 +55,8 @@ class PlainEncoder : public Encoder {
// do nothing for PlainEncoder
return common::E_OK;
}
+
+ int get_max_byte_size() { return 0; }
};
} // end namespace storage
diff --git a/cpp/src/encoding/ts2diff_encoder.h b/cpp/src/encoding/ts2diff_encoder.h
index 081c7fa7..67d2c83d 100644
--- a/cpp/src/encoding/ts2diff_encoder.h
+++ b/cpp/src/encoding/ts2diff_encoder.h
@@ -112,6 +112,11 @@ class TS2DIFFEncoder : public Encoder {
int flush(common::ByteStream &out_stream);
+ int get_max_byte_size() {
+ // The meaning of 24 is: index(4)+width(4)+minDeltaBase(8)+firstValue(8)
+ return 24 + write_index_ * 8;
+ }
+
public:
int block_size_;
T *delta_arr_;
diff --git a/cpp/src/file/tsfile_io_writer.cc b/cpp/src/file/tsfile_io_writer.cc
index ac1e1aa1..3880116e 100644
--- a/cpp/src/file/tsfile_io_writer.cc
+++ b/cpp/src/file/tsfile_io_writer.cc
@@ -168,8 +168,6 @@ int TsFileIOWriter::flush_chunk(ByteStream &chunk_data) {
} else if (RET_FAIL(flush_stream_to_file())) {
// log_err("flush stream error, ret=%d", ret);
}
-
- chunk_data.destroy();
return ret;
}
diff --git a/cpp/src/file/tsfile_io_writer.h b/cpp/src/file/tsfile_io_writer.h
index db594a12..092c543f 100644
--- a/cpp/src/file/tsfile_io_writer.h
+++ b/cpp/src/file/tsfile_io_writer.h
@@ -97,8 +97,8 @@ class TsFileIOWriter {
int end_flush_chunk_group();
int end_file();
- FORCE_INLINE std::vector<TimeseriesTimeIndexEntry>
- &get_ts_time_index_vector() {
+ FORCE_INLINE std::vector<TimeseriesTimeIndexEntry> &
+ get_ts_time_index_vector() {
return ts_time_index_vector_;
}
FORCE_INLINE std::string get_file_path() { return file_->get_file_path(); }
diff --git a/cpp/src/writer/chunk_writer.cc b/cpp/src/writer/chunk_writer.cc
index 51c78af5..a283fb96 100644
--- a/cpp/src/writer/chunk_writer.cc
+++ b/cpp/src/writer/chunk_writer.cc
@@ -63,6 +63,7 @@ void ChunkWriter::destroy() {
}
chunk_data_.destroy();
chunk_header_.reset();
+ num_of_pages_ = 0;
}
int ChunkWriter::seal_cur_page(bool end_chunk) {
@@ -151,4 +152,12 @@ int ChunkWriter::end_encode_chunk() {
return ret;
}
+
+int64_t ChunkWriter::estimate_max_series_mem_size(){
+ return chunk_data_.total_size()
+ + page_writer_.estimate_max_mem_size()
+ + PageHeader::estimat_max_page_header_size_without_statistics()
+ + get_typed_statistic_sizeof(page_writer_.get_statistic()->get_type());
+}
+
} // end namespace storage
diff --git a/cpp/src/writer/chunk_writer.h b/cpp/src/writer/chunk_writer.h
index c181ce98..54d51f54 100644
--- a/cpp/src/writer/chunk_writer.h
+++ b/cpp/src/writer/chunk_writer.h
@@ -93,6 +93,8 @@ class ChunkWriter {
return false;
}
+ int64_t estimate_max_series_mem_size();
+
private:
FORCE_INLINE bool is_cur_page_full() const {
// FIXME
diff --git a/cpp/src/writer/page_writer.h b/cpp/src/writer/page_writer.h
index 98b25179..6800c7ea 100644
--- a/cpp/src/writer/page_writer.h
+++ b/cpp/src/writer/page_writer.h
@@ -134,6 +134,18 @@ class PageWriter {
FORCE_INLINE uint32_t get_page_memory_size() const {
return time_out_stream_.total_size() + value_out_stream_.total_size();
}
+ /**
+ * calculate max possible memory size it occupies, including time
+ * outputStream and value outputStream, because size outputStream is never
+ * used until flushing.
+ *
+ * @return allocated size in time, value and outputStream
+ */
+ FORCE_INLINE uint32_t estimate_max_mem_size() const {
+ return time_out_stream_.total_size() + value_out_stream_.total_size() +
+ time_encoder_->get_max_byte_size() +
+ value_encoder_->get_max_byte_size();
+ }
int write_to_chunk(common::ByteStream &pages_data, bool write_header,
bool write_statistic, bool write_data_to_chunk_data);
FORCE_INLINE common::ByteStream &get_time_data() {
diff --git a/cpp/src/writer/tsfile_writer.cc b/cpp/src/writer/tsfile_writer.cc
index 37fe6098..7d5db9f0 100644
--- a/cpp/src/writer/tsfile_writer.cc
+++ b/cpp/src/writer/tsfile_writer.cc
@@ -60,10 +60,10 @@ TsFileWriter::TsFileWriter()
: write_file_(nullptr),
io_writer_(nullptr),
schemas_(),
- start_file_done_(false),
- write_file_created_(false) {
- // do nothing.
-}
+ record_count_since_last_flush_(0),
+ record_count_for_next_mem_check_(
+ g_config_value_.record_count_for_next_mem_check_),
+ write_file_created_(false) {}
TsFileWriter::~TsFileWriter() { destroy(); }
@@ -94,6 +94,7 @@ void TsFileWriter::destroy() {
delete dev_iter->second;
}
schemas_.clear();
+ record_count_since_last_flush_ = 0;
}
int TsFileWriter::init(WriteFile *write_file) {
@@ -124,6 +125,12 @@ int TsFileWriter::open(const std::string &file_path, int flags, mode_t mode) {
if (RET_FAIL(write_file_->create(file_path, flags, mode))) {
} else {
io_writer_->init(write_file_);
+ if (RET_FAIL(io_writer_->start_file())) {
+ return ret;
+ }
+#if DEBUG_SE
+ std::cout << "finish writing magic code" << std::endl;
+#endif
}
return ret;
}
@@ -202,9 +209,7 @@ struct MeasurementNamesFromTablet {
template <typename MeasurementNamesGetter>
int TsFileWriter::do_check_schema(const std::string &device_name,
MeasurementNamesGetter &measurement_names,
- SimpleVector<ChunkWriter *> &chunk_writers)
-// std::vector<ChunkWriter*> &chunk_writers)
-{
+ SimpleVector<ChunkWriter *> &chunk_writers) {
int ret = E_OK;
DeviceSchemaIter dev_it = schemas_.find(device_name);
MeasurementSchemaGroup *device_schema = NULL;
@@ -220,8 +225,8 @@ int TsFileWriter::do_check_schema(const std::string &device_name,
if (UNLIKELY(ms_iter == msm.end())) {
chunk_writers.push_back(NULL);
} else {
- // Here we may check data_type against ms_iter. But in Java
- // libtsfile, no check here.
+ // In Java we will check data_type. But in C++, no check here.
+ // Because checks are performed at the chunk layer and page layer
MeasurementSchema *ms = ms_iter->second;
if (IS_NULL(ms->chunk_writer_)) {
ms->chunk_writer_ = new ChunkWriter;
@@ -242,6 +247,43 @@ int TsFileWriter::do_check_schema(const std::string &device_name,
return ret;
}
+int64_t TsFileWriter::calculate_mem_size_for_all_group() {
+ int64_t mem_total_size = 0;
+ DeviceSchemaIter device_iter;
+ for (device_iter = schemas_.begin(); device_iter != schemas_.end();
+ device_iter++) {
+ MeasurementSchemaGroup *chunk_group = device_iter->second;
+ MeasurementSchemaMap &map = chunk_group->measurement_schema_map_;
+ for (MeasurementSchemaMapIter ms_iter = map.begin();
+ ms_iter != map.end(); ms_iter++) {
+ MeasurementSchema *m_schema = ms_iter->second;
+ ChunkWriter *&chunk_writer = m_schema->chunk_writer_;
+ if (chunk_writer != NULL) {
+ mem_total_size += chunk_writer->estimate_max_series_mem_size();
+ }
+ }
+ }
+ return mem_total_size;
+}
+
+/**
+ * check occupied memory size, if it exceeds the chunkGroupSize threshold, flush
+ * them to given OutputStream.
+ */
+int TsFileWriter::check_memory_size_and_may_flush_chunks() {
+ int ret = E_OK;
+ if (record_count_since_last_flush_ >= record_count_for_next_mem_check_) {
+ int64_t mem_size = calculate_mem_size_for_all_group();
+ record_count_for_next_mem_check_ =
+ record_count_since_last_flush_ *
+ common::g_config_value_.chunk_group_size_threshold_ / mem_size;
+ if (mem_size > common::g_config_value_.chunk_group_size_threshold_) {
+ ret = flush();
+ }
+ }
+ return ret;
+}
+
int TsFileWriter::write_record(const TsRecord &record) {
int ret = E_OK;
// std::vector<ChunkWriter*> chunk_writers;
@@ -261,6 +303,9 @@ int TsFileWriter::write_record(const TsRecord &record) {
// ignore point writer failure
write_point(chunk_writer, record.timestamp_, record.points_[c]);
}
+
+ record_count_since_last_flush_++;
+ ret = check_memory_size_and_may_flush_chunks();
return ret;
}
@@ -303,6 +348,9 @@ int TsFileWriter::write_tablet(const Tablet &tablet) {
// ignore writer failure
write_column(chunk_writer, tablet, c);
}
+
+ record_count_since_last_flush_ += tablet.max_rows_;
+ ret = check_memory_size_and_may_flush_chunks();
return ret;
}
@@ -381,27 +429,44 @@ int TsFileWriter::write_typed_column(ChunkWriter *chunk_writer,
// TODO make sure ret is meaningful to SDK user
int TsFileWriter::flush() {
int ret = E_OK;
- if (!start_file_done_) {
- if (RET_FAIL(io_writer_->start_file())) {
- return ret;
- }
- start_file_done_ = true;
- }
- std::cout << "finish writing magic code" << std::endl;
/* since @schemas_ used std::map which is rbtree underlying,
so map itself is ordered by device name. */
std::map<std::string, MeasurementSchemaGroup *>::iterator device_iter;
for (device_iter = schemas_.begin(); device_iter != schemas_.end();
- device_iter++) { // cppcheck-suppress postfixOperator
+ device_iter++) {
+ if (check_chunk_group_empty(device_iter->second)) {
+ continue;
+ }
+
if (RET_FAIL(io_writer_->start_flush_chunk_group(device_iter->first))) {
+ return ret;
} else if (RET_FAIL(flush_chunk_group(device_iter->second))) {
+ return ret;
} else if (RET_FAIL(io_writer_->end_flush_chunk_group())) {
+ return ret;
}
}
+ record_count_since_last_flush_ = 0;
return ret;
}
+bool TsFileWriter::check_chunk_group_empty(
+ MeasurementSchemaGroup *chunk_group) {
+ MeasurementSchemaMap &map = chunk_group->measurement_schema_map_;
+ for (MeasurementSchemaMapIter ms_iter = map.begin(); ms_iter != map.end();
+ ms_iter++) {
+ MeasurementSchema *m_schema = ms_iter->second;
+ if (m_schema->chunk_writer_ != NULL &&
+ m_schema->chunk_writer_->num_of_pages() > 0) {
+ // first condition is to avoid first flush empty chunk group
+ // second condition is to avoid repeated flush
+ return false;
+ }
+ }
+ return true;
+}
+
int TsFileWriter::flush_chunk_group(MeasurementSchemaGroup *chunk_group) {
int ret = E_OK;
MeasurementSchemaMap &map = chunk_group->measurement_schema_map_;
@@ -415,10 +480,15 @@ int TsFileWriter::flush_chunk_group(MeasurementSchemaGroup *chunk_group) {
m_schema->measurement_name_, m_schema->data_type_,
m_schema->encoding_, m_schema->compression_type_,
chunk_writer->num_of_pages()))) {
+ return ret;
} else if (RET_FAIL(io_writer_->flush_chunk(
chunk_writer->get_chunk_data()))) {
+ return ret;
} else if (RET_FAIL(io_writer_->end_flush_chunk(
chunk_writer->get_chunk_statistic()))) {
+ return ret;
+ } else {
+ chunk_writer->destroy();
}
}
return ret;
diff --git a/cpp/src/writer/tsfile_writer.h b/cpp/src/writer/tsfile_writer.h
index f7d304b2..099c6467 100644
--- a/cpp/src/writer/tsfile_writer.h
+++ b/cpp/src/writer/tsfile_writer.h
@@ -59,6 +59,8 @@ class TsFileWriter {
common::CompressionType compression_type);
int write_record(const TsRecord &record);
int write_tablet(const Tablet &tablet);
+ int64_t calculate_mem_size_for_all_group();
+ int check_memory_size_and_may_flush_chunks();
/*
* Flush buffer to disk file, but do not writer file index part.
@@ -75,6 +77,7 @@ class TsFileWriter {
private:
int write_point(storage::ChunkWriter *chunk_writer, int64_t timestamp,
const DataPoint &point);
+ bool check_chunk_group_empty(MeasurementSchemaGroup *chunk_group);
int flush_chunk_group(MeasurementSchemaGroup *chunk_group);
int write_typed_column(storage::ChunkWriter *chunk_writer,
@@ -112,7 +115,10 @@ class TsFileWriter {
storage::TsFileIOWriter *io_writer_;
// device_name -> MeasurementSchemaGroup
std::map<std::string, MeasurementSchemaGroup *> schemas_;
- bool start_file_done_;
+ // record count since last flush
+ int64_t record_count_since_last_flush_;
+ // record count for next memory check
+ int64_t record_count_for_next_mem_check_;
bool write_file_created_;
};
(tsfile) 33/33: upgrade version to 9c68a35
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit e625bbbdf121ae10d58734e68fb2e93555daa7b7
Author: HTHou <hh...@outlook.com>
AuthorDate: Sun Jul 7 21:28:02 2024 +0800
upgrade version to 9c68a35
---
cpp/pom.xml | 2 +-
java/common/pom.xml | 2 +-
java/examples/pom.xml | 4 ++--
java/pom.xml | 4 ++--
java/tsfile/pom.xml | 4 ++--
pom.xml | 12 ++++++------
python/pom.xml | 2 +-
7 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/cpp/pom.xml b/cpp/pom.xml
index 677c4a7d..6eee4a80 100644
--- a/cpp/pom.xml
+++ b/cpp/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-parent</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</parent>
<artifactId>tsfile-cpp</artifactId>
<packaging>pom</packaging>
diff --git a/java/common/pom.xml b/java/common/pom.xml
index 298cdb61..2a757e55 100644
--- a/java/common/pom.xml
+++ b/java/common/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-java</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</parent>
<artifactId>common</artifactId>
<name>TsFile: Java: Common</name>
diff --git a/java/examples/pom.xml b/java/examples/pom.xml
index 16816681..713b8cdb 100644
--- a/java/examples/pom.xml
+++ b/java/examples/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-java</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</parent>
<artifactId>examples</artifactId>
<packaging>pom</packaging>
@@ -38,7 +38,7 @@
<dependency>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
diff --git a/java/pom.xml b/java/pom.xml
index ab3ec31e..bdfd55c2 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -24,10 +24,10 @@
<parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-parent</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</parent>
<artifactId>tsfile-java</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
<packaging>pom</packaging>
<name>TsFile: Java</name>
<modules>
diff --git a/java/tsfile/pom.xml b/java/tsfile/pom.xml
index 507a3086..c78c6791 100644
--- a/java/tsfile/pom.xml
+++ b/java/tsfile/pom.xml
@@ -24,7 +24,7 @@
<parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-java</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</parent>
<artifactId>tsfile</artifactId>
<name>TsFile: Java: TsFile</name>
@@ -38,7 +38,7 @@
<dependency>
<groupId>org.apache.tsfile</groupId>
<artifactId>common</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.github.luben</groupId>
diff --git a/pom.xml b/pom.xml
index 9f4749e2..7cfd21ff 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
</parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-parent</artifactId>
- <version>1.0.1-bf6a2f3-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Apache TsFile Project Parent POM</name>
<properties>
@@ -668,7 +668,7 @@
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
- <python.compiler.argument> </python.compiler.argument>
+ <python.compiler.argument></python.compiler.argument>
</properties>
</profile>
<!-- Profile for linux amd64 (mainly AMD Processors) (Self-Enabling) -->
@@ -687,7 +687,7 @@
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
- <python.compiler.argument> </python.compiler.argument>
+ <python.compiler.argument></python.compiler.argument>
</properties>
</profile>
<!-- Profile for linux aarch64 (mainly newer Mac or Raspberry PI Processors) (Self-Enabling) -->
@@ -706,7 +706,7 @@
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
- <python.compiler.argument> </python.compiler.argument>
+ <python.compiler.argument></python.compiler.argument>
</properties>
</profile>
<!-- Profile for mac x86_64 (mainly Intel Processors) (Self-Enabling) -->
@@ -724,7 +724,7 @@
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
- <python.compiler.argument> </python.compiler.argument>
+ <python.compiler.argument></python.compiler.argument>
</properties>
</profile>
<!-- Profile for mac aarch64 (mainly AMD Processors) (Self-Enabling) -->
@@ -742,7 +742,7 @@
<cmake.generator>Unix Makefiles</cmake.generator>
<python.venv.bin>venv/bin/</python.venv.bin>
<python.exe.bin>python3</python.exe.bin>
- <python.compiler.argument> </python.compiler.argument>
+ <python.compiler.argument></python.compiler.argument>
</properties>
</profile>
<!-- profile for windows x86_64 (mainly Intel Processors) (Self-Enabling) -->
diff --git a/python/pom.xml b/python/pom.xml
index 94856f7e..ae0c897c 100644
--- a/python/pom.xml
+++ b/python/pom.xml
@@ -22,7 +22,7 @@
<parent>
<groupId>org.apache.tsfile</groupId>
<artifactId>tsfile-parent</artifactId>
- <version>1.0.1-SNAPSHOT</version>
+ <version>1.0.1-9c68a35-SNAPSHOT</version>
</parent>
<artifactId>tsfile-python</artifactId>
<packaging>pom</packaging>
(tsfile) 05/33: change readme content order (#142)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 0b3b72f5f53f35ef6c25f942a6478e4eee9d46d4
Author: CritasWang <cr...@outlook.com>
AuthorDate: Wed Jun 26 12:46:31 2024 +0800
change readme content order (#142)
* change readme content order
* update maven version
---
cpp/README-zh.md | 4 ++--
java/tsfile/README-zh.md | 45 +++++++++++++++++++++++----------------------
java/tsfile/README.md | 45 +++++++++++++++++++++++----------------------
3 files changed, 48 insertions(+), 46 deletions(-)
diff --git a/cpp/README-zh.md b/cpp/README-zh.md
index 0878f43a..4eb92ff2 100644
--- a/cpp/README-zh.md
+++ b/cpp/README-zh.md
@@ -29,6 +29,6 @@ ___________ ___________.__.__
\/ \/ \/
</pre>
-## 开发
+## 使用
-## 使用
\ No newline at end of file
+## 开发
\ No newline at end of file
diff --git a/java/tsfile/README-zh.md b/java/tsfile/README-zh.md
index 6934a045..68fbac6e 100644
--- a/java/tsfile/README-zh.md
+++ b/java/tsfile/README-zh.md
@@ -30,28 +30,6 @@ ___________ ___________.__.__
\/ \/ \/
</pre>
-## 开发
-
-### 前置条件
-
-构建 Java 版的 TsFile,必须要安装以下依赖:
-
-1. Java >= 1.8 (1.8, 11 到 17 都经过验证. 请确保设置了环境变量).
-2. Maven >= 3.6 (如果要从源代码编译TsFile).
-
-
-### 使用 maven 构建
-
-```
-mvn clean package -P with-java -DskipTests
-```
-
-### 安装到本地机器
-
-```
-mvn install -P with-java -DskipTests
-```
-
## 使用
### 在 Maven 中添加 TsFile 依赖
@@ -164,3 +142,26 @@ mvn install -P with-java -DskipTests
[查询数据](../examples/src/main/java/org/apache/tsfile/TsFileRead.java)
[全文件读取](../examples/src/main/java/org/apache/tsfile/TsFileSequenceRead.java)
+
+
+## 开发
+
+### 前置条件
+
+构建 Java 版的 TsFile,必须要安装以下依赖:
+
+1. Java >= 1.8 (1.8, 11 到 17 都经过验证. 请确保设置了环境变量).
+2. Maven >= 3.6.3 (如果要从源代码编译TsFile).
+
+
+### 使用 maven 构建
+
+```
+mvn clean package -P with-java -DskipTests
+```
+
+### 安装到本地机器
+
+```
+mvn install -P with-java -DskipTests
+```
diff --git a/java/tsfile/README.md b/java/tsfile/README.md
index a285d1a5..aaed142c 100644
--- a/java/tsfile/README.md
+++ b/java/tsfile/README.md
@@ -30,28 +30,6 @@ ___________ ___________.__.__
\/ \/ \/
</pre>
-## Building With Java
-
-### Prerequisites
-
-To build TsFile wirh Java, you need to have:
-
-1. Java >= 1.8 (1.8, 11 to 17 are verified. Please make sure the environment path has been set accordingly).
-2. Maven >= 3.6 (If you want to compile TsFile from source code).
-
-
-### Build TsFile with Maven
-
-```
-mvn clean package -P with-java -DskipTests
-```
-
-### Install to local machine
-
-```
-mvn install -P with-java -DskipTests
-```
-
## Use TsFile
### Add TsFile as a dependency in Maven
@@ -166,3 +144,26 @@ Read TsFile Example
[Query Data](../examples/src/main/java/org/apache/tsfile/TsFileRead.java)
[Scan whole TsFile](../examples/src/main/java/org/apache/tsfile/TsFileSequenceRead.java)
+
+
+## Building With Java
+
+### Prerequisites
+
+To build TsFile wirh Java, you need to have:
+
+1. Java >= 1.8 (1.8, 11 to 17 are verified. Please make sure the environment path has been set accordingly).
+2. Maven >= 3.6.3 (If you want to compile TsFile from source code).
+
+
+### Build TsFile with Maven
+
+```
+mvn clean package -P with-java -DskipTests
+```
+
+### Install to local machine
+
+```
+mvn install -P with-java -DskipTests
+```
(tsfile) 17/33: Fix Invalid GitHub label (#149)
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git
commit 71bf1a14cfd104e2f32edc2c6596b41ad499217b
Author: Haonan <hh...@outlook.com>
AuthorDate: Wed Jul 3 23:09:39 2024 +0800
Fix Invalid GitHub label (#149)
---
.asf.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.asf.yaml b/.asf.yaml
index f8ea8e76..dbaa7d99 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -26,7 +26,7 @@ github:
- iot
- big-data
- java
- - c++
+ - cpp
- python
- tsfile
features: