diff --git a/client/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java b/client/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java index a5f9af23d383be02fb76554ba5319b54efe5fe0e..9b9903607e4121ab5e0ff21940a7de3bc0e4bb66 100644 --- a/client/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java +++ b/client/src/main/java/org/apache/iotdb/cli/client/AbstractClient.java @@ -48,7 +48,7 @@ import org.apache.iotdb.jdbc.IoTDBSQLException; import org.apache.iotdb.service.rpc.thrift.ServerProperties; import org.apache.thrift.TException; -abstract class AbstractClient { +public abstract class AbstractClient { static final String HOST_ARGS = "h"; static final String HOST_NAME = "host"; @@ -360,7 +360,7 @@ abstract class AbstractClient { return options; } - private static String parseLongToDateWithPrecision(DateTimeFormatter formatter, + public static String parseLongToDateWithPrecision(DateTimeFormatter formatter, long timestamp, ZoneId zoneid, String timestampPrecision) { if (timestampPrecision.equals("ms")) { long integerofDate = timestamp / 1000; diff --git a/client/src/main/java/org/apache/iotdb/session/IoTDBRowBatch.java b/client/src/main/java/org/apache/iotdb/session/IoTDBRowBatch.java index 66ba2862633c39d3ec7edd4c1992d569829962c2..457179c75a8597dd846a58e8df2aeb2c4be5c03d 100644 --- a/client/src/main/java/org/apache/iotdb/session/IoTDBRowBatch.java +++ b/client/src/main/java/org/apache/iotdb/session/IoTDBRowBatch.java @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.apache.iotdb.session; import java.nio.ByteBuffer; diff --git a/client/src/main/java/org/apache/iotdb/session/IoTDBSessionException.java b/client/src/main/java/org/apache/iotdb/session/IoTDBSessionException.java index 0cbdf8b5050468a0def8c0b33e26a79692f769cd..62239b28672f42b2792cd6cef81279d69673dfad 100644 --- a/client/src/main/java/org/apache/iotdb/session/IoTDBSessionException.java +++ b/client/src/main/java/org/apache/iotdb/session/IoTDBSessionException.java @@ -1,3 +1,21 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.apache.iotdb.session; public class IoTDBSessionException extends RuntimeException { diff --git a/client/src/main/java/org/apache/iotdb/session/Session.java b/client/src/main/java/org/apache/iotdb/session/Session.java index 51526d5828619f36a1ecc630a593749f71d105ad..ef14dd135c7f3f8e876fab2bf8fb99439f3c4ad5 100644 --- a/client/src/main/java/org/apache/iotdb/session/Session.java +++ b/client/src/main/java/org/apache/iotdb/session/Session.java @@ -1,6 +1,23 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ package org.apache.iotdb.session; - import java.time.ZoneId; import java.util.ArrayList; import java.util.LinkedList;