Search in sources :

Example 1 with OrBlock

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

the class OrOperator method nextFilterBlock.

@Override
public BaseFilterBlock nextFilterBlock(BlockId BlockId) {
    List<FilterBlockDocIdSet> blockDocIdSets = new ArrayList<FilterBlockDocIdSet>();
    for (Operator operator : operators) {
        Block block = operator.nextBlock();
        FilterBlockDocIdSet blockDocIdSet = (FilterBlockDocIdSet) block.getBlockDocIdSet();
        blockDocIdSets.add(blockDocIdSet);
    }
    orBlock = new OrBlock(blockDocIdSets);
    return orBlock;
}
Also used : Operator(com.linkedin.pinot.core.common.Operator) OrBlock(com.linkedin.pinot.core.operator.blocks.OrBlock) ArrayList(java.util.ArrayList) OrBlock(com.linkedin.pinot.core.operator.blocks.OrBlock) Block(com.linkedin.pinot.core.common.Block) BaseFilterBlock(com.linkedin.pinot.core.operator.blocks.BaseFilterBlock) FilterBlockDocIdSet(com.linkedin.pinot.core.operator.docidsets.FilterBlockDocIdSet)

Aggregations

Block (com.linkedin.pinot.core.common.Block)1 Operator (com.linkedin.pinot.core.common.Operator)1 BaseFilterBlock (com.linkedin.pinot.core.operator.blocks.BaseFilterBlock)1 OrBlock (com.linkedin.pinot.core.operator.blocks.OrBlock)1 FilterBlockDocIdSet (com.linkedin.pinot.core.operator.docidsets.FilterBlockDocIdSet)1 ArrayList (java.util.ArrayList)1