@InterfaceAudience.User @InterfaceStability.Evolving public class CarbonReader<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static CarbonReaderBuilder |
builder(String tablePath)
Return a new
CarbonReaderBuilder instance
Default value of table name is table + tablePath + time |
static CarbonReaderBuilder |
builder(String tablePath,
String tableName)
Return a new
CarbonReaderBuilder instance |
void |
close()
Close reader
|
boolean |
hasNext()
Return true if has next row
|
Object[] |
readNextBatchRow()
Read and return next batch row objects
|
T |
readNextRow()
Read and return next row object
|
List<CarbonReader> |
split(int maxSplits)
Breaks the list of CarbonRecordReader in CarbonReader into multiple
CarbonReader objects, each iterating through some 'carbondata' files
and return that list of CarbonReader objects
If the no.
|
public boolean hasNext()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic T readNextRow() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Object[] readNextBatchRow() throws Exception
Exceptionpublic static CarbonReaderBuilder builder(String tablePath, String tableName)
CarbonReaderBuilder instancetablePath - table store pathtableName - table namepublic static CarbonReaderBuilder builder(String tablePath)
CarbonReaderBuilder instance
Default value of table name is table + tablePath + timetablePath - table pathpublic List<CarbonReader> split(int maxSplits) throws IOException
maxSplits: - IntCarbonReader objectsIOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.