Search in sources :

Example 1 with BlockId

use of com.linkedin.pinot.core.common.BlockId 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)

Example 2 with BlockId

use of com.linkedin.pinot.core.common.BlockId in project pinot by linkedin.

the class BaseFilterOperator method getNextBlock.

@Override
public final BaseFilterBlock getNextBlock(BlockId blockId) {
    if (nextBlockCallCounter > 0) {
        return null;
    }
    Block nextBlock = nextFilterBlock(new BlockId(0));
    nextBlockCallCounter = nextBlockCallCounter + 1;
    return (BaseFilterBlock) nextBlock;
}
Also used : Block(com.linkedin.pinot.core.common.Block) BaseFilterBlock(com.linkedin.pinot.core.operator.blocks.BaseFilterBlock) BlockId(com.linkedin.pinot.core.common.BlockId) BaseFilterBlock(com.linkedin.pinot.core.operator.blocks.BaseFilterBlock)

Aggregations

BlockId (com.linkedin.pinot.core.common.BlockId)2 Block (com.linkedin.pinot.core.common.Block)1 BaseFilterBlock (com.linkedin.pinot.core.operator.blocks.BaseFilterBlock)1 DocIdSetBlock (com.linkedin.pinot.core.operator.blocks.DocIdSetBlock)1 ProjectionBlock (com.linkedin.pinot.core.operator.blocks.ProjectionBlock)1