From dbc31164053bc9d0c1049012fe818fc45e9255ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=B2=9B=E8=BE=B0?= <45144903+choubenson@users.noreply.github.com> Date: Wed, 31 Jan 2024 19:56:55 +0800 Subject: [PATCH] Add comments --- .../apache/tsfile/file/metadata/AlignedTimeSeriesMetadata.java | 1 + .../main/java/org/apache/tsfile/read/TsFileSequenceReader.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tsfile/src/main/java/org/apache/tsfile/file/metadata/AlignedTimeSeriesMetadata.java b/tsfile/src/main/java/org/apache/tsfile/file/metadata/AlignedTimeSeriesMetadata.java index 14f1d4a67..583f08eac 100644 --- a/tsfile/src/main/java/org/apache/tsfile/file/metadata/AlignedTimeSeriesMetadata.java +++ b/tsfile/src/main/java/org/apache/tsfile/file/metadata/AlignedTimeSeriesMetadata.java @@ -155,6 +155,7 @@ public List getChunkMetadataList() { return getAlignedChunkMetadata(timeChunkMetadata, valueChunkMetadataList); } + /** Notice: if all the value chunks is empty chunk, then return empty list. */ private List getAlignedChunkMetadata( List timeChunkMetadata, List> valueChunkMetadataList) { List res = new ArrayList<>(); diff --git a/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java b/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java index 6479e2fc0..5a934a609 100644 --- a/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java +++ b/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java @@ -2078,7 +2078,8 @@ public List getChunkMetadataList(Path path) throws IOException { } /** - * Get AlignedChunkMetadata of sensors under one device + * Get AlignedChunkMetadata of sensors under one device. Notice: if all the value chunks is empty + * chunk, then return empty list. * * @param device device name */