public class VectorizedCarbonRecordReader extends AbstractRecordReader<Object>
rowCount| Constructor and Description |
|---|
VectorizedCarbonRecordReader(org.apache.carbondata.core.scan.model.QueryModel queryModel,
InputMetricsStats inputMetricsStats,
String enableBatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
enableReturningBatches() |
Void |
getCurrentKey() |
Object |
getCurrentValue() |
float |
getProgress() |
void |
initBatch(org.apache.spark.memory.MemoryMode memMode,
org.apache.spark.sql.types.StructType partitionColumns,
org.apache.spark.sql.catalyst.InternalRow partitionValues)
Returns the ColumnarBatch object that will be used for all rows returned by this reader.
|
void |
initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
Implementation of RecordReader API.
|
boolean |
nextKeyValue() |
logStatisticspublic VectorizedCarbonRecordReader(org.apache.carbondata.core.scan.model.QueryModel queryModel,
InputMetricsStats inputMetricsStats,
String enableBatch)
public void enableReturningBatches()
public void initialize(org.apache.hadoop.mapreduce.InputSplit inputSplit,
org.apache.hadoop.mapreduce.TaskAttemptContext taskAttemptContext)
throws IOException,
InterruptedException,
UnsupportedOperationException
initialize in class org.apache.hadoop.mapreduce.RecordReader<Void,Object>IOExceptionInterruptedExceptionUnsupportedOperationExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.mapreduce.RecordReader<Void,Object>IOExceptionpublic boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<Void,Object>IOExceptionInterruptedExceptionpublic Object getCurrentValue() throws IOException, InterruptedException
getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<Void,Object>IOExceptionInterruptedExceptionpublic Void getCurrentKey() throws IOException, InterruptedException
getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<Void,Object>IOExceptionInterruptedExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress in class org.apache.hadoop.mapreduce.RecordReader<Void,Object>IOExceptionInterruptedExceptionpublic void initBatch(org.apache.spark.memory.MemoryMode memMode,
org.apache.spark.sql.types.StructType partitionColumns,
org.apache.spark.sql.catalyst.InternalRow partitionValues)
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.