Search in sources :

Example 1 with AndBlock

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

the class AndOperator 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);
    }
    andBlock = new AndBlock(blockDocIdSets);
    return andBlock;
}
Also used : Operator(com.linkedin.pinot.core.common.Operator) AndBlock(com.linkedin.pinot.core.operator.blocks.AndBlock) ArrayList(java.util.ArrayList) AndBlock(com.linkedin.pinot.core.operator.blocks.AndBlock) 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 AndBlock (com.linkedin.pinot.core.operator.blocks.AndBlock)1 BaseFilterBlock (com.linkedin.pinot.core.operator.blocks.BaseFilterBlock)1 FilterBlockDocIdSet (com.linkedin.pinot.core.operator.docidsets.FilterBlockDocIdSet)1 ArrayList (java.util.ArrayList)1