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;
}
Aggregations