You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ji...@apache.org on 2024/09/11 02:11:14 UTC

(tsfile) branch snapshot/1.1.0-240911 updated: update method

This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch snapshot/1.1.0-240911
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/snapshot/1.1.0-240911 by this push:
     new e67d3b90 update method
e67d3b90 is described below

commit e67d3b9019e93dfd27ad0362b7f594f2faff0f18
Author: Tian Jiang <jt...@163.com>
AuthorDate: Wed Sep 11 10:10:38 2024 +0800

    update method
    
    (cherry picked from commit c9389e930eaf50b27bbfe5f79a8018f689b1592b)
---
 .../main/java/org/apache/tsfile/file/metadata/enums/TSEncoding.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/enums/TSEncoding.java b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/enums/TSEncoding.java
index 77482c6e..20374376 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/enums/TSEncoding.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/file/metadata/enums/TSEncoding.java
@@ -140,10 +140,14 @@ public enum TSEncoding {
     }
   }
 
-  public boolean isSupported(TSDataType type, TSEncoding encoding) {
+  public static boolean isSupported(TSDataType type, TSEncoding encoding) {
     return TYPE_SUPPORTED_ENCODINGS.get(type).contains(encoding);
   }
 
+  public boolean isSupported(TSDataType type) {
+    return TYPE_SUPPORTED_ENCODINGS.get(type).contains(this);
+  }
+
   public static int getSerializedSize() {
     return Byte.BYTES;
   }