carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kumarvishal09 <>
Subject [GitHub] carbondata pull request #932: [CARBONDATA-1074] Add TablePage and ConvertedR...
Date Tue, 23 May 2017 14:43:30 GMT
Github user kumarvishal09 commented on a diff in the pull request:
    --- Diff: processing/src/main/java/org/apache/carbondata/processing/store/
    @@ -0,0 +1,203 @@
    + * 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
    + *
    + *
    + *
    + * 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.
    + */
    +import java.math.BigDecimal;
    +import java.nio.ByteBuffer;
    +import java.util.ArrayList;
    +import java.util.List;
    +import org.apache.carbondata.core.keygenerator.KeyGenException;
    +import org.apache.carbondata.core.metadata.datatype.DataType;
    +import org.apache.carbondata.core.util.DataTypeUtil;
    +import org.apache.carbondata.processing.datatypes.GenericDataType;
    +import org.apache.carbondata.processing.newflow.row.ConvertedRow;
    +import org.apache.spark.sql.types.Decimal;
    + * Represent a page data for all columns, we store its data in columnar layout, so that
    + * all processing apply to TablePage can be done in vectorized fashion.
    + */
    +class TablePage {
    +  // For all dimension and measure columns, we store the column data directly in the
    +  // the length of the page is the number of rows.
    +  // TODO: we should have separate class for key columns so that keys are stored together
    +  // one vector to make it efficient for sorting
    +  private KeyColumnPage keyColumnPage;
    --- End diff --
    @jackylk I have one query related to this changes please correct me.
    Can we use the ColumnVector interface for this?? the way we are storing the data while
processing the vector batch during query, we can use the same interface while loading. There
we will have flexibility for storing data in offheap/onheap both.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message