Search in sources :

Example 1 with MapRDBSubScanSpec

use of org.apache.drill.exec.store.mapr.db.MapRDBSubScanSpec in project drill by apache.

the class BinaryTableGroupScan method getSubScanSpec.

protected MapRDBSubScanSpec getSubScanSpec(TabletFragmentInfo tfi) {
    HBaseScanSpec spec = hbaseScanSpec;
    MapRDBSubScanSpec subScanSpec = new MapRDBSubScanSpec(spec.getTableName(), regionsToScan.get(tfi), (!isNullOrEmpty(spec.getStartRow()) && tfi.containsRow(spec.getStartRow())) ? spec.getStartRow() : tfi.getStartKey(), (!isNullOrEmpty(spec.getStopRow()) && tfi.containsRow(spec.getStopRow())) ? spec.getStopRow() : tfi.getEndKey(), spec.getSerializedFilter(), null);
    return subScanSpec;
}
Also used : HBaseScanSpec(org.apache.drill.exec.store.hbase.HBaseScanSpec) MapRDBSubScanSpec(org.apache.drill.exec.store.mapr.db.MapRDBSubScanSpec)

Aggregations

HBaseScanSpec (org.apache.drill.exec.store.hbase.HBaseScanSpec)1 MapRDBSubScanSpec (org.apache.drill.exec.store.mapr.db.MapRDBSubScanSpec)1