This is an automated email from the ASF dual-hosted git repository.
spricoder pushed a commit to branch object_type
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/object_type by this push:
new a0444071714 to public (#15881)
a0444071714 is described below
commit a0444071714d8f8725f6438d73ad87b6c7a97a8d
Author: ppppoooo <[email protected]>
AuthorDate: Mon Jul 7 18:59:44 2025 +0800
to public (#15881)
Co-authored-by: xz m <[email protected]>
---
.../apache/iotdb/rpc/model/CompressedTsFileModelProcessor.java | 6 +++---
.../src/main/java/org/apache/iotdb/rpc/model/ModelProcessor.java | 8 ++++----
.../apache/iotdb/rpc/model/UnCompressedTiffModelProcessor.java | 6 +++---
iotdb-core/datanode/pom.xml | 5 -----
4 files changed, 10 insertions(+), 15 deletions(-)
diff --git
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTsFileModelProcessor.java
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTsFileModelProcessor.java
index 1b3aabf8a88..678d86cd07a 100644
---
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTsFileModelProcessor.java
+++
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/CompressedTsFileModelProcessor.java
@@ -65,7 +65,7 @@ public class CompressedTsFileModelProcessor extends
ModelProcessor {
private static final int DEFAULT_CHUNK_NUMBER = 128 * 128;
@Override
- byte[] write(float[] values, int width, int height) {
+ public byte[] write(float[] values, int width, int height) {
try {
TSFileDescriptor.getInstance().getConfig().setGroupSizeInByte(1);
@@ -112,7 +112,7 @@ public class CompressedTsFileModelProcessor extends
ModelProcessor {
}
@Override
- float[] readAll(byte[] fileBytes) {
+ public float[] readAll(byte[] fileBytes) {
try {
float[] values = null;
int i = 0;
@@ -192,7 +192,7 @@ public class CompressedTsFileModelProcessor extends
ModelProcessor {
}
@Override
- float[] readAll(String filePath) {
+ public float[] readAll(String filePath) {
try {
byte[] fileBytes = Files.readAllBytes(new File(filePath).toPath());
return readAll(fileBytes);
diff --git
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/ModelProcessor.java
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/ModelProcessor.java
index 0d5cfc59966..45af293a699 100644
---
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/ModelProcessor.java
+++
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/ModelProcessor.java
@@ -28,7 +28,7 @@ public abstract class ModelProcessor {
* @param height the height of image
* @return the byte array of the file
*/
- abstract byte[] write(float[] values, int width, int height);
+ public abstract byte[] write(float[] values, int width, int height);
/**
* Read all float values from a file, eg. tsfile, tiff
@@ -36,7 +36,7 @@ public abstract class ModelProcessor {
* @param fileBytes the byte array of the file to read
* @return the float array of the image
*/
- abstract float[] readAll(byte[] fileBytes);
+ public abstract float[] readAll(byte[] fileBytes);
/**
* Read all float values from a file, eg. tsfile, tiff
@@ -44,9 +44,9 @@ public abstract class ModelProcessor {
* @param filePath the path of the file to read
* @return the float array of the image
*/
- abstract float[] readAll(String filePath);
+ public abstract float[] readAll(String filePath);
- public ModelProcessor getInstance(ModelProcessorType modelFileType) {
+ public static ModelProcessor getInstance(ModelProcessorType modelFileType) {
switch (modelFileType) {
case UNCOMPRESSED_TIFF:
return new UnCompressedTiffModelProcessor();
diff --git
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/UnCompressedTiffModelProcessor.java
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/UnCompressedTiffModelProcessor.java
index 19fd065e838..17a286da4d7 100644
---
a/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/UnCompressedTiffModelProcessor.java
+++
b/iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/model/UnCompressedTiffModelProcessor.java
@@ -27,7 +27,7 @@ import ij.process.ImageProcessor;
public class UnCompressedTiffModelProcessor extends ModelProcessor {
@Override
- byte[] write(float[] values, int width, int height) {
+ public byte[] write(float[] values, int width, int height) {
FloatProcessor floatProcessor = new FloatProcessor(width, height, values);
ImagePlus imp = new ImagePlus("first level", floatProcessor);
FileSaver fs = new FileSaver(imp);
@@ -35,7 +35,7 @@ public class UnCompressedTiffModelProcessor extends
ModelProcessor {
}
@Override
- float[] readAll(String filePath) {
+ public float[] readAll(String filePath) {
Opener opener = new Opener();
ImagePlus imagePlus = opener.openImage(filePath);
ImageProcessor processor = imagePlus.getProcessor();
@@ -47,7 +47,7 @@ public class UnCompressedTiffModelProcessor extends
ModelProcessor {
}
@Override
- float[] readAll(byte[] fileBytes) {
+ public float[] readAll(byte[] fileBytes) {
Opener opener = new Opener();
ImagePlus imagePlus = opener.deserialize(fileBytes);
ImageProcessor processor = imagePlus.getProcessor();
diff --git a/iotdb-core/datanode/pom.xml b/iotdb-core/datanode/pom.xml
index da541688f82..f1cd4a4fe46 100644
--- a/iotdb-core/datanode/pom.xml
+++ b/iotdb-core/datanode/pom.xml
@@ -392,11 +392,6 @@
<version>1.3.0</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>net.imagej</groupId>
- <artifactId>ij</artifactId>
- <version>1.54g</version>
- </dependency>
</dependencies>
<build>
<plugins>