Search in sources :

Example 1 with IDataSourcePropertiesProvider

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());
}
Also used : AbstractScanOperator(org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractScanOperator) DatasetDataSource(org.apache.asterix.metadata.declared.DatasetDataSource) DataSource(org.apache.asterix.metadata.declared.DataSource) DatasetDataSource(org.apache.asterix.metadata.declared.DatasetDataSource) IDataSourcePropertiesProvider(org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider)

Example 2 with IDataSourcePropertiesProvider

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());
}
Also used : AbstractScanOperator(org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractScanOperator) IDataSourcePropertiesProvider(org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider)

Example 3 with IDataSourcePropertiesProvider

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());
}
Also used : DataSourceScanOperator(org.apache.hyracks.algebricks.core.algebra.operators.logical.DataSourceScanOperator) IDataSourcePropertiesProvider(org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider)

Aggregations

IDataSourcePropertiesProvider (org.apache.hyracks.algebricks.core.algebra.metadata.IDataSourcePropertiesProvider)3 AbstractScanOperator (org.apache.hyracks.algebricks.core.algebra.operators.logical.AbstractScanOperator)2 DataSource (org.apache.asterix.metadata.declared.DataSource)1 DatasetDataSource (org.apache.asterix.metadata.declared.DatasetDataSource)1 DataSourceScanOperator (org.apache.hyracks.algebricks.core.algebra.operators.logical.DataSourceScanOperator)1