Class DataTableImplV2
- java.lang.Object
-
- org.apache.pinot.common.datatable.BaseDataTable
-
- org.apache.pinot.common.datatable.DataTableImplV2
-
- All Implemented Interfaces:
DataTable
public class DataTableImplV2 extends BaseDataTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pinot.common.datatable.DataTable
DataTable.CustomObject, DataTable.MetadataKey, DataTable.MetadataValueType
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.common.datatable.BaseDataTable
_columnOffsets, _dataSchema, _dictionaryMap, _fixedSizeData, _fixedSizeDataBytes, _metadata, _numColumns, _numRows, _rowSizeInBytes, _variableSizeData, _variableSizeDataBytes
-
Fields inherited from interface org.apache.pinot.common.datatable.DataTable
EXCEPTION_METADATA_KEY
-
-
Constructor Summary
Constructors Constructor Description DataTableImplV2()Construct empty data table.DataTableImplV2(int numRows, DataSchema dataSchema, Map<String,Map<Integer,String>> dictionaryMap, byte[] fixedSizeDataBytes, byte[] variableSizeDataBytes)Construct data table with results.DataTableImplV2(ByteBuffer byteBuffer)Construct data table from byte array.
-
Method Summary
Modifier and Type Method Description voidaddException(int errCode, String errMsg)voidaddException(ProcessingException processingException)Map<Integer,String>getExceptions()intgetVersion()byte[]toBytes()DataTableImplV2toDataOnlyDataTable()DataTableImplV2toMetadataOnlyDataTable()-
Methods inherited from class org.apache.pinot.common.datatable.BaseDataTable
deserializeDictionaryMap, getBigDecimal, getBytes, getCustomObject, getDataSchema, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getMetadata, getNullRowIds, getNumberOfRows, getString, getStringArray, serializeDictionaryMap, toString
-
-
-
-
Constructor Detail
-
DataTableImplV2
public DataTableImplV2(int numRows, DataSchema dataSchema, Map<String,Map<Integer,String>> dictionaryMap, byte[] fixedSizeDataBytes, byte[] variableSizeDataBytes)Construct data table with results. (Server side)
-
DataTableImplV2
public DataTableImplV2()
Construct empty data table. (Server side)
-
DataTableImplV2
public DataTableImplV2(ByteBuffer byteBuffer) throws IOException
Construct data table from byte array. (broker side)- Throws:
IOException
-
-
Method Detail
-
getVersion
public int getVersion()
-
addException
public void addException(ProcessingException processingException)
-
addException
public void addException(int errCode, String errMsg)
-
toBytes
public byte[] toBytes() throws IOException- Throws:
IOException
-
toMetadataOnlyDataTable
public DataTableImplV2 toMetadataOnlyDataTable()
-
toDataOnlyDataTable
public DataTableImplV2 toDataOnlyDataTable()
-
-