jackwener commented on code in PR #11222:
URL: https://github.com/apache/doris/pull/11222#discussion_r933757285


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/properties/DistributionSpecHash.java:
##########
@@ -0,0 +1,102 @@
+// 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.doris.nereids.properties;
+
+import org.apache.doris.nereids.trees.expressions.SlotReference;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.Lists;
+
+import java.util.List;
+
+/**
+ * Describe hash distribution.
+ */
+public class DistributionSpecHash extends DistributionSpec {
+
+    private final List<SlotReference> shuffledColumns;
+    private final ShuffleType shuffleType;
+    private PropertyInfo propertyInfo;
+
+    public DistributionSpecHash(List<SlotReference> shuffledColumns, 
ShuffleType shuffleType) {
+        Preconditions.checkState(!shuffledColumns.isEmpty());
+        this.shuffledColumns = shuffledColumns;
+        this.shuffleType = shuffleType;
+    }
+
+    public DistributionSpecHash(List<SlotReference> shuffledColumns, 
ShuffleType shuffleType,
+            PropertyInfo propertyInfo) {
+        Preconditions.checkState(!shuffledColumns.isEmpty());
+        this.shuffledColumns = shuffledColumns;
+        this.shuffleType = shuffleType;
+        this.propertyInfo = propertyInfo;
+    }
+
+    public List<SlotReference> getShuffledColumns() {
+        return shuffledColumns;
+    }
+
+    public ShuffleType getShuffleType() {
+        return shuffleType;
+    }
+
+    public PropertyInfo getPropertyInfo() {
+        return propertyInfo;
+    }
+
+    @Override
+    public boolean meet(DistributionSpec other) {
+        if (other instanceof DistributionSpecAny) {
+            return true;
+        }
+
+        if (!(other instanceof DistributionSpecHash)) {
+            return false;
+        }
+
+        // DistributionSpecHash spec = (DistributionSpecHash) other;
+        return false;
+    }
+
+    /**
+     * information of hash distribution.
+     * tableId relate with {@link org.apache.doris.catalog.Table}
+     */
+    public static class PropertyInfo {

Review Comment:
   delete 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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to