carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] carbondata pull request #1471: [CARBONDATA-1544][Datamap] Datamap FineGrain ...
Date Sat, 18 Nov 2017 03:29:38 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1471#discussion_r151827164
  
    --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/datamap/FGDataMapTestCase.scala
---
    @@ -0,0 +1,434 @@
    +/*
    + * 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.spark.testsuite.datamap
    +
    +import java.io.{ByteArrayInputStream, DataOutputStream, ObjectInputStream, ObjectOutputStream}
    +
    +import scala.collection.JavaConverters._
    +import scala.collection.mutable.ArrayBuffer
    +
    +import com.sun.xml.internal.messaging.saaj.util.ByteOutputStream
    +import org.apache.spark.sql.test.util.QueryTest
    +import org.scalatest.BeforeAndAfterAll
    +
    +import org.apache.carbondata.core.datamap.dev.fgdatamap.{AbstractFineGrainDataMap, AbstractFineGrainDataMapFactory}
    +import org.apache.carbondata.core.datamap.dev.{AbstractDataMapWriter, DataMapModel}
    +import org.apache.carbondata.core.datamap.{DataMapDistributable, DataMapMeta, DataMapStoreManager}
    +import org.apache.carbondata.core.datastore.FileHolder
    +import org.apache.carbondata.core.datastore.block.SegmentProperties
    +import org.apache.carbondata.core.datastore.compression.SnappyCompressor
    +import org.apache.carbondata.core.datastore.filesystem.{CarbonFile, CarbonFileFilter}
    +import org.apache.carbondata.core.datastore.impl.FileFactory
    +import org.apache.carbondata.core.datastore.page.ColumnPage
    +import org.apache.carbondata.core.indexstore.FineGrainBlocklet
    +import org.apache.carbondata.core.indexstore.blockletindex.BlockletDataMapDistributable
    +import org.apache.carbondata.core.metadata.{AbsoluteTableIdentifier, CarbonMetadata}
    +import org.apache.carbondata.core.scan.expression.Expression
    +import org.apache.carbondata.core.scan.expression.conditional.EqualToExpression
    +import org.apache.carbondata.core.scan.filter.intf.ExpressionType
    +import org.apache.carbondata.core.scan.filter.resolver.FilterResolverIntf
    +import org.apache.carbondata.core.util.ByteUtil
    +import org.apache.carbondata.core.util.path.CarbonTablePath
    +import org.apache.carbondata.events.Event
    +import org.apache.carbondata.spark.testsuite.datacompaction.CompactionSupportGlobalSortBigFileTest
    +
    +class FGDataMapFactory extends AbstractFineGrainDataMapFactory {
    +  var identifier: AbsoluteTableIdentifier = _
    +  var dataMapName: String = _
    +
    +  /**
    +   * Initialization of Datamap factory with the identifier and datamap name
    +   */
    +  override def init(identifier: AbsoluteTableIdentifier,
    --- End diff --
    
    Please add return type in all functions in this file and CGDataMapTestCase.scala also


---

Mime
View raw message