Search in sources :

Example 1 with RealtimeSingleValueBlock

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

the class RealtimeColumnDataSource method getBlock.

private Block getBlock() {
    if (!blockReturned) {
        blockReturned = true;
        isPredicateEvaluated = true;
        if (fieldSpec.isSingleValueField()) {
            Block SvBlock = new RealtimeSingleValueBlock(filteredDocIdBitmap, fieldSpec, dictionary, offset, (FixedByteSingleColumnSingleValueReaderWriter) indexReader);
            return SvBlock;
        } else {
            Block mvBlock = new RealtimeMultiValueBlock(fieldSpec, dictionary, filteredDocIdBitmap, offset, maxNumberOfMultiValues, (FixedByteSingleColumnMultiValueReaderWriter) indexReader);
            return mvBlock;
        }
    }
    return null;
}
Also used : RealtimeMultiValueBlock(com.linkedin.pinot.core.operator.blocks.RealtimeMultiValueBlock) RealtimeSingleValueBlock(com.linkedin.pinot.core.operator.blocks.RealtimeSingleValueBlock) RealtimeMultiValueBlock(com.linkedin.pinot.core.operator.blocks.RealtimeMultiValueBlock) Block(com.linkedin.pinot.core.common.Block) RealtimeSingleValueBlock(com.linkedin.pinot.core.operator.blocks.RealtimeSingleValueBlock)

Aggregations

Block (com.linkedin.pinot.core.common.Block)1 RealtimeMultiValueBlock (com.linkedin.pinot.core.operator.blocks.RealtimeMultiValueBlock)1 RealtimeSingleValueBlock (com.linkedin.pinot.core.operator.blocks.RealtimeSingleValueBlock)1