@InterfaceAudience.User @InterfaceStability.Evolving public class CarbonReaderBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> CarbonReader<T> |
build()
Build CarbonReader
|
CarbonReaderBuilder |
filter(org.apache.carbondata.core.scan.expression.Expression filterExpression)
Configure the filter expression for carbon reader
|
CarbonReaderBuilder |
projection(String[] projectionColumnNames)
Configure the projection column names of carbon reader
|
CarbonReaderBuilder |
withBatch(int batch)
Sets the batch size of records to read
|
CarbonReaderBuilder |
withHadoopConf(org.apache.hadoop.conf.Configuration conf)
To support hadoop configuration
|
CarbonReaderBuilder |
withHadoopConf(String key,
String value)
Updates the hadoop configuration with the given key value
|
CarbonReaderBuilder |
withRowRecordReader()
Configure Row Record Reader for reading.
|
public CarbonReaderBuilder projection(String[] projectionColumnNames)
projectionColumnNames - projection column namespublic CarbonReaderBuilder filter(org.apache.carbondata.core.scan.expression.Expression filterExpression)
filterExpression - filter expressionpublic CarbonReaderBuilder withHadoopConf(org.apache.hadoop.conf.Configuration conf)
conf - hadoop configuration support, can set s3a AK,SK,end point and other conf with thispublic CarbonReaderBuilder withBatch(int batch)
batch - batch sizepublic CarbonReaderBuilder withHadoopConf(String key, String value)
key - key wordvalue - valuepublic CarbonReaderBuilder withRowRecordReader()
public <T> CarbonReader<T> build() throws IOException, InterruptedException
T - IOExceptionInterruptedExceptionCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.