Search in sources :

Example 6 with ProjectionBlock

use of com.linkedin.pinot.core.operator.blocks.ProjectionBlock in project pinot by linkedin.

the class MProjectionOperator method getNextBlock.

@Override
public ProjectionBlock getNextBlock() {
    DocIdSetBlock docIdSetBlock = (DocIdSetBlock) _docIdSetOperator.nextBlock();
    if (docIdSetBlock == null) {
        _currentBlock = null;
    } else {
        _blockMap.put("_docIdSet", docIdSetBlock);
        for (String column : _columnToDataSourceMap.keySet()) {
            _blockMap.put(column, _columnToDataSourceMap.get(column).nextBlock(new BlockId(0)));
        }
        _currentBlock = new ProjectionBlock(_blockMap, _dataBlockCache, docIdSetBlock);
    }
    return _currentBlock;
}
Also used : ProjectionBlock(com.linkedin.pinot.core.operator.blocks.ProjectionBlock) BlockId(com.linkedin.pinot.core.common.BlockId) DocIdSetBlock(com.linkedin.pinot.core.operator.blocks.DocIdSetBlock)

Aggregations

ProjectionBlock (com.linkedin.pinot.core.operator.blocks.ProjectionBlock)6 DocIdSetBlock (com.linkedin.pinot.core.operator.blocks.DocIdSetBlock)4 ExecutionStatistics (com.linkedin.pinot.core.operator.ExecutionStatistics)2 IntermediateResultsBlock (com.linkedin.pinot.core.operator.blocks.IntermediateResultsBlock)2 TransformBlock (com.linkedin.pinot.core.operator.blocks.TransformBlock)2 DimensionFieldSpec (com.linkedin.pinot.common.data.DimensionFieldSpec)1 Schema (com.linkedin.pinot.common.data.Schema)1 Block (com.linkedin.pinot.core.common.Block)1 BlockId (com.linkedin.pinot.core.common.BlockId)1 BlockValSet (com.linkedin.pinot.core.common.BlockValSet)1 DataBlockCache (com.linkedin.pinot.core.common.DataBlockCache)1 DataFetcher (com.linkedin.pinot.core.common.DataFetcher)1 DataSource (com.linkedin.pinot.core.common.DataSource)1 GenericRow (com.linkedin.pinot.core.data.GenericRow)1 IndexSegment (com.linkedin.pinot.core.indexsegment.IndexSegment)1 SegmentGeneratorConfig (com.linkedin.pinot.core.indexsegment.generator.SegmentGeneratorConfig)1 BReusableFilteredDocIdSetOperator (com.linkedin.pinot.core.operator.BReusableFilteredDocIdSetOperator)1 BaseOperator (com.linkedin.pinot.core.operator.BaseOperator)1 MProjectionOperator (com.linkedin.pinot.core.operator.MProjectionOperator)1 ProjectionBlockValSet (com.linkedin.pinot.core.operator.docvalsets.ProjectionBlockValSet)1