org.apache.kylin.query.relnode.OLAPTableScan Java Examples

The following examples show how to use org.apache.kylin.query.relnode.OLAPTableScan. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StreamTableInterceptor.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
private Set<String> getAllTblsWithSchema(List<OLAPContext> contexts) {
    // all tables with DB, Like DB.TABLE
    Set<String> tableWithSchema = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
    for (OLAPContext context : contexts) {
        for (OLAPTableScan tableScan : context.allTableScans) {
            tableWithSchema.add(tableScan.getTableRef().getTableIdentity());
        }
    }
    return tableWithSchema;
}
 
Example #2
Source File: TableInterceptor.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
private Set<String> getAllTblsWithSchema(List<OLAPContext> contexts) {
    // all tables with DB, Like DB.TABLE
    Set<String> tableWithSchema = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
    for (OLAPContext context : contexts) {
        for (OLAPTableScan tableScan : context.allTableScans) {
            tableWithSchema.add(tableScan.getTableRef().getTableIdentity());
        }
    }
    return tableWithSchema;
}
 
Example #3
Source File: StreamTableInterceptor.java    From kylin with Apache License 2.0 5 votes vote down vote up
private Set<String> getAllTblsWithSchema(List<OLAPContext> contexts) {
    // all tables with DB, Like DB.TABLE
    Set<String> tableWithSchema = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
    for (OLAPContext context : contexts) {
        for (OLAPTableScan tableScan : context.allTableScans) {
            tableWithSchema.add(tableScan.getTableRef().getTableIdentity());
        }
    }
    return tableWithSchema;
}
 
Example #4
Source File: TableInterceptor.java    From kylin with Apache License 2.0 5 votes vote down vote up
private Set<String> getAllTblsWithSchema(List<OLAPContext> contexts) {
    // all tables with DB, Like DB.TABLE
    Set<String> tableWithSchema = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);
    for (OLAPContext context : contexts) {
        for (OLAPTableScan tableScan : context.allTableScans) {
            tableWithSchema.add(tableScan.getTableRef().getTableIdentity());
        }
    }
    return tableWithSchema;
}
 
Example #5
Source File: RealizationCheck.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public void setNotFoundTables(Collection<OLAPTableScan> notFoundTables) {
    this.notFoundTables = notFoundTables;
}
 
Example #6
Source File: RealizationCheck.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
public Collection<OLAPTableScan> getNotFoundTables() {
    return notFoundTables;
}
 
Example #7
Source File: OLAPTable.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {
    int fieldCount = relOptTable.getRowType().getFieldCount();
    int[] fields = identityList(fieldCount);
    return new OLAPTableScan(context.getCluster(), relOptTable, this, fields);
}
 
Example #8
Source File: RealizationCheck.java    From kylin with Apache License 2.0 4 votes vote down vote up
public void setNotFoundTables(Collection<OLAPTableScan> notFoundTables) {
    this.notFoundTables = notFoundTables;
}
 
Example #9
Source File: RealizationCheck.java    From kylin with Apache License 2.0 4 votes vote down vote up
public Collection<OLAPTableScan> getNotFoundTables() {
    return notFoundTables;
}
 
Example #10
Source File: OLAPTable.java    From kylin with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {
    int fieldCount = relOptTable.getRowType().getFieldCount();
    int[] fields = identityList(fieldCount);
    return new OLAPTableScan(context.getCluster(), relOptTable, this, fields);
}
 
Example #11
Source File: OLAPTable.java    From Kylin with Apache License 2.0 4 votes vote down vote up
@Override
public RelNode toRel(ToRelContext context, RelOptTable relOptTable) {
    int fieldCount = relOptTable.getRowType().getFieldCount();
    int[] fields = identityList(fieldCount);
    return new OLAPTableScan(context.getCluster(), relOptTable, this, fields);
}