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

jiangtian pushed a commit to branch iotdb
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/iotdb by this push:
     new 5cd29def update method
5cd29def is described below

commit 5cd29def092fd40a469c9d8c63078fdafeb16d41
Author: Tian Jiang <[email protected]>
AuthorDate: Wed Sep 11 10:10:38 2024 +0800

    update method
    
    (cherry picked from commit c9389e930eaf50b27bbfe5f79a8018f689b1592b)
    (cherry picked from commit 95d565b11760b02a74b9aabfdb5b1ed7014bd115)
---
 .../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;
   }

Reply via email to