@InterfaceAudience.User @InterfaceStability.Unstable public interface CarbonStore extends Closeable
CarbonStore to query data| Modifier and Type | Method and Description |
|---|---|
Iterator<org.apache.carbondata.core.datastore.row.CarbonRow> |
scan(org.apache.carbondata.core.metadata.AbsoluteTableIdentifier tableIdentifier,
String[] projectColumns)
Scan query on the data in the table path
|
Iterator<org.apache.carbondata.core.datastore.row.CarbonRow> |
scan(org.apache.carbondata.core.metadata.AbsoluteTableIdentifier tableIdentifier,
String[] projectColumns,
org.apache.carbondata.core.scan.expression.Expression filter)
Scan query with filter, on the data in the table path
|
Iterator<org.apache.carbondata.core.datastore.row.CarbonRow> |
sql(String sqlString)
SQL query, table should be created before calling this function
|
Iterator<org.apache.carbondata.core.datastore.row.CarbonRow> scan(org.apache.carbondata.core.metadata.AbsoluteTableIdentifier tableIdentifier, String[] projectColumns) throws IOException
path - table pathprojectColumns - column names to readIOException - if unable to read files in table pathIterator<org.apache.carbondata.core.datastore.row.CarbonRow> scan(org.apache.carbondata.core.metadata.AbsoluteTableIdentifier tableIdentifier, String[] projectColumns, org.apache.carbondata.core.scan.expression.Expression filter) throws IOException
path - table pathprojectColumns - column names to readfilter - filter condition, can be nullIOException - if unable to read files in table pathIterator<org.apache.carbondata.core.datastore.row.CarbonRow> sql(String sqlString) throws IOException
sqlString - SQL statementIOException - if unable to read files in table pathCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.