Class DataBlockValSet
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.block.DataBlockValSet
-
- All Implemented Interfaces:
BlockValSet
- Direct Known Subclasses:
FilteredDataBlockValSet
public class DataBlockValSet extends Object implements BlockValSet
In the multistage engine, the leaf stage servers process the data in columnar fashion. By the time the intermediate stage receives the projected column, they are converted to a row based format. This class provides the capability to convert the row based representation into columnar blocks so that they can be used to process aggregations using v1 aggregation functions. TODO: Support MV
-
-
Field Summary
Fields Modifier and Type Field Description protected DataBlock_dataBlockprotected org.apache.pinot.spi.data.FieldSpec.DataType_dataTypeprotected int_indexprotected org.roaringbitmap.RoaringBitmap_nullBitMap
-
Constructor Summary
Constructors Constructor Description DataBlockValSet(DataSchema.ColumnDataType columnDataType, DataBlock dataBlock, int colIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimal[]getBigDecimalValuesSV()byte[][][]getBytesValuesMV()byte[][]getBytesValuesSV()org.apache.pinot.segment.spi.index.reader.DictionarygetDictionary()int[][]getDictionaryIdsMV()int[]getDictionaryIdsSV()double[][]getDoubleValuesMV()double[]getDoubleValuesSV()float[][]getFloatValuesMV()float[]getFloatValuesSV()int[][]getIntValuesMV()int[]getIntValuesSV()long[][]getLongValuesMV()long[]getLongValuesSV()org.roaringbitmap.RoaringBitmapgetNullBitmap()Returns a bitmap of indices where null values are found.int[]getNumMVEntries()String[][]getStringValuesMV()String[]getStringValuesSV()org.apache.pinot.spi.data.FieldSpec.DataTypegetValueType()booleanisSingleValue()
-
-
-
Field Detail
-
_dataType
protected final org.apache.pinot.spi.data.FieldSpec.DataType _dataType
-
_dataBlock
protected final DataBlock _dataBlock
-
_index
protected final int _index
-
_nullBitMap
protected final org.roaringbitmap.RoaringBitmap _nullBitMap
-
-
Constructor Detail
-
DataBlockValSet
public DataBlockValSet(DataSchema.ColumnDataType columnDataType, DataBlock dataBlock, int colIndex)
-
-
Method Detail
-
getNullBitmap
@Nullable public org.roaringbitmap.RoaringBitmap getNullBitmap()
Returns a bitmap of indices where null values are found.- Specified by:
getNullBitmapin interfaceBlockValSet
-
getValueType
public org.apache.pinot.spi.data.FieldSpec.DataType getValueType()
- Specified by:
getValueTypein interfaceBlockValSet
-
isSingleValue
public boolean isSingleValue()
- Specified by:
isSingleValuein interfaceBlockValSet
-
getDictionary
@Nullable public org.apache.pinot.segment.spi.index.reader.Dictionary getDictionary()
- Specified by:
getDictionaryin interfaceBlockValSet
-
getDictionaryIdsSV
public int[] getDictionaryIdsSV()
- Specified by:
getDictionaryIdsSVin interfaceBlockValSet
-
getIntValuesSV
public int[] getIntValuesSV()
- Specified by:
getIntValuesSVin interfaceBlockValSet
-
getLongValuesSV
public long[] getLongValuesSV()
- Specified by:
getLongValuesSVin interfaceBlockValSet
-
getFloatValuesSV
public float[] getFloatValuesSV()
- Specified by:
getFloatValuesSVin interfaceBlockValSet
-
getDoubleValuesSV
public double[] getDoubleValuesSV()
- Specified by:
getDoubleValuesSVin interfaceBlockValSet
-
getBigDecimalValuesSV
public BigDecimal[] getBigDecimalValuesSV()
- Specified by:
getBigDecimalValuesSVin interfaceBlockValSet
-
getStringValuesSV
public String[] getStringValuesSV()
- Specified by:
getStringValuesSVin interfaceBlockValSet
-
getBytesValuesSV
public byte[][] getBytesValuesSV()
- Specified by:
getBytesValuesSVin interfaceBlockValSet
-
getDictionaryIdsMV
public int[][] getDictionaryIdsMV()
- Specified by:
getDictionaryIdsMVin interfaceBlockValSet
-
getIntValuesMV
public int[][] getIntValuesMV()
- Specified by:
getIntValuesMVin interfaceBlockValSet
-
getLongValuesMV
public long[][] getLongValuesMV()
- Specified by:
getLongValuesMVin interfaceBlockValSet
-
getFloatValuesMV
public float[][] getFloatValuesMV()
- Specified by:
getFloatValuesMVin interfaceBlockValSet
-
getDoubleValuesMV
public double[][] getDoubleValuesMV()
- Specified by:
getDoubleValuesMVin interfaceBlockValSet
-
getStringValuesMV
public String[][] getStringValuesMV()
- Specified by:
getStringValuesMVin interfaceBlockValSet
-
getBytesValuesMV
public byte[][][] getBytesValuesMV()
- Specified by:
getBytesValuesMVin interfaceBlockValSet
-
getNumMVEntries
public int[] getNumMVEntries()
- Specified by:
getNumMVEntriesin interfaceBlockValSet
-
-