Search in sources :

Example 1 with KafkaScanSpec

use of org.apache.drill.exec.store.kafka.KafkaScanSpec in project drill by axbaretto.

the class KafkaMessageSchema method getTable.

@Override
public Table getTable(String tableName) {
    if (!drillTables.containsKey(tableName)) {
        KafkaScanSpec scanSpec = new KafkaScanSpec(tableName);
        DrillTable table = new DynamicDrillTable(plugin, getName(), scanSpec);
        drillTables.put(tableName, table);
    }
    return drillTables.get(tableName);
}
Also used : DynamicDrillTable(org.apache.drill.exec.planner.logical.DynamicDrillTable) DrillTable(org.apache.drill.exec.planner.logical.DrillTable) KafkaScanSpec(org.apache.drill.exec.store.kafka.KafkaScanSpec) DynamicDrillTable(org.apache.drill.exec.planner.logical.DynamicDrillTable)

Example 2 with KafkaScanSpec

use of org.apache.drill.exec.store.kafka.KafkaScanSpec in project drill by apache.

the class KafkaMessageSchema method getTable.

@Override
public Table getTable(String tableName) {
    if (!drillTables.containsKey(tableName)) {
        KafkaScanSpec scanSpec = new KafkaScanSpec(tableName);
        DrillTable table = new DynamicDrillTable(plugin, getName(), scanSpec);
        drillTables.put(tableName, table);
    }
    return drillTables.get(tableName);
}
Also used : DynamicDrillTable(org.apache.drill.exec.planner.logical.DynamicDrillTable) DrillTable(org.apache.drill.exec.planner.logical.DrillTable) KafkaScanSpec(org.apache.drill.exec.store.kafka.KafkaScanSpec) DynamicDrillTable(org.apache.drill.exec.planner.logical.DynamicDrillTable)

Aggregations

DrillTable (org.apache.drill.exec.planner.logical.DrillTable)2 DynamicDrillTable (org.apache.drill.exec.planner.logical.DynamicDrillTable)2 KafkaScanSpec (org.apache.drill.exec.store.kafka.KafkaScanSpec)2