public class CarbonRecordReader<T> extends AbstractRecordReader<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.carbondata.common.CarbonIterator<Object[]> |
carbonIterator |
protected org.apache.carbondata.core.scan.executor.QueryExecutor |
queryExecutor |
protected org.apache.carbondata.core.scan.model.QueryModel |
queryModel |
protected CarbonReadSupport<T> |
readSupport |
rowCount| Constructor and Description |
|---|
CarbonRecordReader(org.apache.carbondata.core.scan.model.QueryModel queryModel,
CarbonReadSupport<T> readSupport,
org.apache.hadoop.conf.Configuration configuration) |
CarbonRecordReader(org.apache.carbondata.core.scan.model.QueryModel queryModel,
CarbonReadSupport<T> readSupport,
InputMetricsStats inputMetricsStats,
org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Void |
getCurrentKey() |
T |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
void |
setSkipClearDataMapAtClose(boolean skipClearDataMapAtClose) |
logStatisticsprotected org.apache.carbondata.core.scan.model.QueryModel queryModel
protected CarbonReadSupport<T> readSupport
protected org.apache.carbondata.common.CarbonIterator<Object[]> carbonIterator
protected org.apache.carbondata.core.scan.executor.QueryExecutor queryExecutor
public CarbonRecordReader(org.apache.carbondata.core.scan.model.QueryModel queryModel,
CarbonReadSupport<T> readSupport,
InputMetricsStats inputMetricsStats,
org.apache.hadoop.conf.Configuration configuration)
public CarbonRecordReader(org.apache.carbondata.core.scan.model.QueryModel queryModel,
CarbonReadSupport<T> readSupport,
org.apache.hadoop.conf.Configuration configuration)
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
initialize in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic boolean nextKeyValue()
public Void getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic T getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionInterruptedExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<Void,T>IOExceptionpublic void setSkipClearDataMapAtClose(boolean skipClearDataMapAtClose)
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.