Search in sources :

Example 6 with QueryModel

use of org.apache.carbondata.core.scan.model.QueryModel in project carbondata by apache.

the class MapredCarbonInputFormat method getRecordReader.

@Override
public RecordReader<Void, ArrayWritable> getRecordReader(InputSplit inputSplit, JobConf jobConf, Reporter reporter) throws IOException {
    QueryModel queryModel = getQueryModel(jobConf);
    CarbonReadSupport<ArrayWritable> readSupport = getReadSupportClass(jobConf);
    return new CarbonHiveRecordReader(queryModel, readSupport, inputSplit, jobConf);
}
Also used : ArrayWritable(org.apache.hadoop.io.ArrayWritable) QueryModel(org.apache.carbondata.core.scan.model.QueryModel)

Aggregations

QueryModel (org.apache.carbondata.core.scan.model.QueryModel)6 CarbonTable (org.apache.carbondata.core.metadata.schema.table.CarbonTable)3 CarbonQueryPlan (org.apache.carbondata.core.scan.model.CarbonQueryPlan)3 AbsoluteTableIdentifier (org.apache.carbondata.core.metadata.AbsoluteTableIdentifier)2 Expression (org.apache.carbondata.core.scan.expression.Expression)2 FilterResolverIntf (org.apache.carbondata.core.scan.filter.resolver.FilterResolverIntf)2 Configuration (org.apache.hadoop.conf.Configuration)2 ColumnHandle (com.facebook.presto.spi.ColumnHandle)1 ImmutableList (com.google.common.collect.ImmutableList)1 ArrayList (java.util.ArrayList)1 CarbonDimension (org.apache.carbondata.core.metadata.schema.table.column.CarbonDimension)1 CarbonMeasure (org.apache.carbondata.core.metadata.schema.table.column.CarbonMeasure)1 UpdateVO (org.apache.carbondata.core.mutate.UpdateVO)1 QueryDimension (org.apache.carbondata.core.scan.model.QueryDimension)1 QueryMeasure (org.apache.carbondata.core.scan.model.QueryMeasure)1 CarbonTableCacheModel (org.apache.carbondata.presto.impl.CarbonTableCacheModel)1 ArrayWritable (org.apache.hadoop.io.ArrayWritable)1