From f9a1ab8a3df166b59f728a5fb0435f333066fcf5 Mon Sep 17 00:00:00 2001 From: qiaojialin <646274302@qq.com> Date: Thu, 22 Aug 2019 18:45:46 +0800 Subject: [PATCH] add license and change private to public --- .../iotdb/cli/client/AbstractClient.java | 4 ++-- .../apache/iotdb/session/IoTDBRowBatch.java | 18 ++++++++++++++++++ .../iotdb/session/IoTDBSessionException.java | 18 ++++++++++++++++++ .../org/apache/iotdb/session/Session.java | 19 ++++++++++++++++++- 4 files changed, 56 insertions(+), 3 deletions(-) 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 a5f9af23d3..9b9903607e 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 66ba286263..457179c75a 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 0cbdf8b505..62239b2867 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 51526d5828..ef14dd135c 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; -- GitLab