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