ZhanGHanG9991 commented on code in PR #7277: URL: https://github.com/apache/iotdb/pull/7277#discussion_r967036685
########## server/src/main/java/org/apache/iotdb/db/mpp/execution/operator/window/TimeWindow.java: ########## @@ -0,0 +1,77 @@ +/* + * 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.db.mpp.execution.operator.window; + +import org.apache.iotdb.tsfile.read.common.TimeRange; +import org.apache.iotdb.tsfile.read.common.block.column.Column; + +public class TimeWindow implements IWindow { + + private TimeRange curTimeRange; + + private long curMinTime; + private long curMaxTime; + + public TimeWindow() {} + + public TimeWindow(TimeRange curTimeRange) { + this.curTimeRange = curTimeRange; + this.curMinTime = curTimeRange.getMin(); + this.curMaxTime = curTimeRange.getMax(); + } + + public TimeRange getCurTimeRange() { + return curTimeRange; + } + + public long getCurMinTime() { + return curMinTime; + } + + public long getCurMaxTime() { + return curMaxTime; + } + + @Override + public int getControlColumnIndex() { + return 0; + } Review Comment: I've changed it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
