imay commented on a change in pull request #562: Add ColocateMetaService
URL: https://github.com/apache/incubator-doris/pull/562#discussion_r250110250
 
 
 ##########
 File path: fe/src/main/java/org/apache/doris/http/meta/ColocateMetaService.java
 ##########
 @@ -0,0 +1,281 @@
+// 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.http.meta;
+
+import com.google.common.base.Preconditions;
+import com.google.common.base.Strings;
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+import io.netty.handler.codec.http.HttpMethod;
+import io.netty.handler.codec.http.HttpResponseStatus;
+import org.apache.doris.catalog.Catalog;
+import org.apache.doris.catalog.ColocateTableIndex;
+import org.apache.doris.catalog.Database;
+import org.apache.doris.common.DdlException;
+import org.apache.doris.http.ActionController;
+import org.apache.doris.http.BaseRequest;
+import org.apache.doris.http.BaseResponse;
+import org.apache.doris.http.IllegalArgException;
+import org.apache.doris.http.rest.RestBaseAction;
+import org.apache.doris.http.rest.RestBaseResult;
+import org.apache.doris.http.rest.RestResult;
+import org.apache.doris.mysql.privilege.PrivPredicate;
+import org.apache.doris.persist.ColocatePersistInfo;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.lang.reflect.Type;
+
+/*
+ * the colocate meta define in {@link ColocateTableIndex}
+ */
+public class ColocateMetaService {
+    private static final Logger LOG = 
LogManager.getLogger(ColocateMetaService.class);
+    private static final String GROUP_ID = "group_id";
+    private static final String TABLE_ID = "table_id";
+    private static final String DB_ID = "db_id";
+
+    private static ColocateTableIndex colocateIndex = 
Catalog.getCurrentColocateIndex();
+
+    private static long checkAndGetGroupId(BaseRequest request) throws 
DdlException {
+        long groupId = 
Long.valueOf(request.getSingleParameter(GROUP_ID).trim());
+        LOG.info("groupId is {}", groupId);
 
 Review comment:
   remove this debug log?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to