carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kumarvishal09 <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #609: [CARBONDATA-726] Added code for V3 f...
Date Fri, 24 Feb 2017 17:01:10 GMT
Github user kumarvishal09 commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/609#discussion_r102984643
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/datastore/chunk/reader/dimension/v3/CompressedDimensionChunkFileBasedReaderV3.java
---
    @@ -0,0 +1,256 @@
    +/*
    + * 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.datastore.chunk.reader.dimension.v3;
    +
    +import java.io.IOException;
    +import java.nio.ByteBuffer;
    +
    +import org.apache.carbondata.core.datastore.FileHolder;
    +import org.apache.carbondata.core.datastore.chunk.DimensionColumnDataChunk;
    +import org.apache.carbondata.core.datastore.chunk.impl.ColumnGroupDimensionDataChunk;
    +import org.apache.carbondata.core.datastore.chunk.impl.DimensionRawColumnChunk;
    +import org.apache.carbondata.core.datastore.chunk.impl.FixedLengthDimensionDataChunk;
    +import org.apache.carbondata.core.datastore.chunk.impl.VariableLengthDimensionDataChunk;
    +import org.apache.carbondata.core.datastore.chunk.reader.dimension.v2.CompressedDimensionChunkFileBasedReaderV2;
    +import org.apache.carbondata.core.datastore.columnar.UnBlockIndexer;
    +import org.apache.carbondata.core.metadata.blocklet.BlockletInfo;
    +import org.apache.carbondata.core.util.CarbonUtil;
    +import org.apache.carbondata.format.DataChunk2;
    +import org.apache.carbondata.format.DataChunk3;
    +import org.apache.carbondata.format.Encoding;
    +
    +import org.apache.commons.lang.ArrayUtils;
    +
    +/**
    + * Dimension column V3 Reader class which will be used to read and uncompress
    + * V3 format data
    + * data format
    + * Data Format
    + * <Column1 Data ChunkV3><Column1<Page1><Page2><Page3><Page4>>
    + * <Column2 Data ChunkV3><Column2<Page1><Page2><Page3><Page4>>
    + * <Column3 Data ChunkV3><Column3<Page1><Page2><Page3><Page4>>
    + * <Column4 Data ChunkV3><Column4<Page1><Page2><Page3><Page4>>
    + */
    +public class CompressedDimensionChunkFileBasedReaderV3
    +    extends CompressedDimensionChunkFileBasedReaderV2 {
    +
    +  /**
    +   * end position of last dimension in carbon data file
    +   */
    +  private long lastDimensionOffsets;
    +
    +  public CompressedDimensionChunkFileBasedReaderV3(BlockletInfo blockletInfo,
    +      int[] eachColumnValueSize, String filePath) {
    +    super(blockletInfo, eachColumnValueSize, filePath);
    +    lastDimensionOffsets = blockletInfo.getDimensionOffset();
    +  }
    +
    +  /**
    +   * Below method will be used to read the dimension column data form carbon data file
    --- End diff --
    
    ok


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message