Search in sources :

Example 1 with CarbonImplicitDimension

use of org.apache.carbondata.core.metadata.schema.table.column.CarbonImplicitDimension in project carbondata by apache.

the class TestBlockletDataMap method setUp.

@Before
public void setUp() throws Exception {
    CarbonImplicitDimension carbonImplicitDimension = new CarbonImplicitDimension(0, CarbonCommonConstants.CARBON_IMPLICIT_COLUMN_POSITIONID);
    DimColumnResolvedFilterInfo dimColumnEvaluatorInfo = new DimColumnResolvedFilterInfo();
    dimColumnEvaluatorInfo.setColumnIndex(0);
    dimColumnEvaluatorInfo.setRowIndex(0);
    dimColumnEvaluatorInfo.setDimension(carbonImplicitDimension);
    dimColumnEvaluatorInfo.setDimensionExistsInCurrentSilce(false);
    implicitIncludeFilterExecutor = new ImplicitIncludeFilterExecutorImpl(dimColumnEvaluatorInfo);
}
Also used : CarbonImplicitDimension(org.apache.carbondata.core.metadata.schema.table.column.CarbonImplicitDimension) DimColumnResolvedFilterInfo(org.apache.carbondata.core.scan.filter.resolver.resolverinfo.DimColumnResolvedFilterInfo) ImplicitIncludeFilterExecutorImpl(org.apache.carbondata.core.scan.filter.executer.ImplicitIncludeFilterExecutorImpl) Before(org.junit.Before)

Example 2 with CarbonImplicitDimension

use of org.apache.carbondata.core.metadata.schema.table.column.CarbonImplicitDimension in project carbondata by apache.

the class CarbonTable method addImplicitDimension.

/**
 * This method will add implict dimension into carbontable
 *
 * @param dimensionOrdinal
 * @param dimensions
 */
private void addImplicitDimension(int dimensionOrdinal, List<CarbonDimension> dimensions) {
    dimensions.add(new CarbonImplicitDimension(dimensionOrdinal, CarbonCommonConstants.CARBON_IMPLICIT_COLUMN_POSITIONID));
    dimensions.add(new CarbonImplicitDimension(dimensionOrdinal + 1, CarbonCommonConstants.CARBON_IMPLICIT_COLUMN_TUPLEID));
}
Also used : CarbonImplicitDimension(org.apache.carbondata.core.metadata.schema.table.column.CarbonImplicitDimension)

Aggregations

CarbonImplicitDimension (org.apache.carbondata.core.metadata.schema.table.column.CarbonImplicitDimension)2 ImplicitIncludeFilterExecutorImpl (org.apache.carbondata.core.scan.filter.executer.ImplicitIncludeFilterExecutorImpl)1 DimColumnResolvedFilterInfo (org.apache.carbondata.core.scan.filter.resolver.resolverinfo.DimColumnResolvedFilterInfo)1 Before (org.junit.Before)1