This is an automated email from the ASF dual-hosted git repository. ericpai pushed a commit to branch new_mpp in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 4a85d31fc1f704a3fe3b28efcd65a26dfec0dbfd Author: Zhong Wang <[email protected]> AuthorDate: Tue Mar 15 16:14:08 2022 +0800 [To_new_mpp] add common classes & thrift files (#5239) --- .../java/org/apache/iotdb/mpp/common/ITSBlock.java | 45 ++++++++++++++++++++++ .../apache/iotdb/mpp/common/TsBlockMetadata.java | 22 +++++++++++ thrift/src/main/thrift/common.thrift | 27 +++++++++++++ 3 files changed, 94 insertions(+) diff --git a/server/src/main/java/org/apache/iotdb/mpp/common/ITSBlock.java b/server/src/main/java/org/apache/iotdb/mpp/common/ITSBlock.java new file mode 100644 index 0000000..449e0fc --- /dev/null +++ b/server/src/main/java/org/apache/iotdb/mpp/common/ITSBlock.java @@ -0,0 +1,45 @@ +/* + * 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.mpp.common; + +import org.apache.iotdb.tsfile.read.common.RowRecord; + +/** + * Intermediate result for most of ExecOperators. The TsBlock contains data from one or more columns + * and constructs them as a row based view The columns can be series, aggregation result for one + * series or scalar value (such as deviceName). The TsBlock also contains the metadata to describe + * the columns. + */ +public class ITSBlock { + + private TsBlockMetadata metadata; + + public boolean hasNext() { + return false; + } + + public RowRecord getNext() { + return null; + } + + public TsBlockMetadata getMetadata() { + return metadata; + } +} diff --git a/server/src/main/java/org/apache/iotdb/mpp/common/TsBlockMetadata.java b/server/src/main/java/org/apache/iotdb/mpp/common/TsBlockMetadata.java new file mode 100644 index 0000000..ed7680f --- /dev/null +++ b/server/src/main/java/org/apache/iotdb/mpp/common/TsBlockMetadata.java @@ -0,0 +1,22 @@ +/* + * 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.mpp.common; + +public class TsBlockMetadata {} diff --git a/thrift/src/main/thrift/common.thrift b/thrift/src/main/thrift/common.thrift new file mode 100644 index 0000000..967deed --- /dev/null +++ b/thrift/src/main/thrift/common.thrift @@ -0,0 +1,27 @@ +/* + * 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. + */ + +namespace java org.apache.iotdb.mpp.common.rpc.thrift + + +struct FragmentInstanceID { + 1: required string queryID + 2: required string fragmentID + 3: required string instanceID +}
