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

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


The following commit(s) were added to refs/heads/develop by this push:
     new c57ba733 Add common method for TSDataType: isBinary()
c57ba733 is described below

commit c57ba733eced6e6c69899e8adb64527814cf13f6
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