use of org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider in project asterixdb by apache.
the class ExternalDataLookupPOperator method computeDeliveredProperties.
@Override
public void computeDeliveredProperties(ILogicalOperator op, IOptimizationContext context) throws AlgebricksException {
DataSource ds = new DatasetDataSource(datasetId, dataset, recordType, null, /*external dataset doesn't have meta records.*/
Type.EXTERNAL_DATASET, dataset.getDatasetDetails(), context.getComputationNodeDomain());
IDataSourcePropertiesProvider dspp = ds.getPropertiesProvider();
AbstractScanOperator as = (AbstractScanOperator) op;
deliveredProperties = dspp.computePropertiesVector(as.getVariables());
}
use of org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider in project asterixdb by apache.
the class IndexSearchPOperator method computeDeliveredProperties.
@Override
public void computeDeliveredProperties(ILogicalOperator op, IOptimizationContext context) {
IDataSource<?> ds = idx.getDataSource();
IDataSourcePropertiesProvider dspp = ds.getPropertiesProvider();
AbstractScanOperator as = (AbstractScanOperator) op;
deliveredProperties = dspp.computePropertiesVector(as.getVariables());
}
use of org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider in project asterixdb by apache.
the class DataSourceScanPOperator method computeDeliveredProperties.
@Override
public void computeDeliveredProperties(ILogicalOperator op, IOptimizationContext context) {
// partitioning properties
DataSourceScanOperator dssOp = (DataSourceScanOperator) op;
IDataSourcePropertiesProvider dspp = dataSource.getPropertiesProvider();
deliveredProperties = dspp.computePropertiesVector(dssOp.getVariables());
}
Aggregations