You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/05/15 16:46:15 UTC

[GitHub] [carbondata] manishgupta88 commented on a change in pull request #3215: [CARBONDATA-3381] Large response size Exception fix for index server

manishgupta88 commented on a change in pull request #3215: [CARBONDATA-3381] Large response size Exception fix for index server
URL: https://github.com/apache/carbondata/pull/3215#discussion_r284350794
 
 

 ##########
 File path: core/src/main/java/org/apache/carbondata/core/indexstore/ExtendedBlockletWrapper.java
 ##########
 @@ -0,0 +1,63 @@
+/*
+ * 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.carbondata.core.indexstore;
+
+import java.io.DataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+import org.apache.hadoop.io.Writable;
+
+/**
+ * Wrapper to write and read the list of extended blocklets over RPC communication.
+ */
+public class ExtendedBlockletWrapper implements Writable {
 
 Review comment:
   `ExtendedBlocklet` and `FineGrainBlocklet` both extends from `Blocklet`. So writing a wrapper class for child class will make it too specific. If you can write a wrapper for `Blocklet` class it can be used for super as well as child classes. Even current implementation is fine but if you get time give a try and check the feasibility of writing a wrapper for super class and use it for child classes

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services