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

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

commit e1207ba47fdc8fd1994b00c7f4ca8e673451d5bb
Author: Chen YZ <[email protected]>
AuthorDate: Mon May 27 08:19:00 2024 +0800

    Add common method for TSDataType: isBinary()
---
 java/common/src/main/java/org/apache/tsfile/enums/TSDataType.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/java/common/src/main/java/org/apache/tsfile/enums/TSDataType.java 
b/java/common/src/main/java/org/apache/tsfile/enums/TSDataType.java
index 226c2e09..e4ffc6b1 100644
--- a/java/common/src/main/java/org/apache/tsfile/enums/TSDataType.java
+++ b/java/common/src/main/java/org/apache/tsfile/enums/TSDataType.java
@@ -223,4 +223,8 @@ public enum TSDataType {
         throw new UnSupportedDataTypeException(this.toString());
     }
   }
+
+  public boolean isBinary() {
+    return this == TEXT || this == STRING || this == BLOB;
+  }
 }

Reply via email to