Class FixedByteSingleValueMultiColumnReaderWriter
- java.lang.Object
-
- org.apache.pinot.segment.local.io.readerwriter.impl.FixedByteSingleValueMultiColumnReaderWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class FixedByteSingleValueMultiColumnReaderWriter extends Object implements Closeable
SingleValue MultiColumn reader and writer for fixed size columns. This implementation currently does not support reading with context, but can be enhanced to do so. TODO: Clean this up
-
-
Constructor Summary
Constructors Constructor Description FixedByteSingleValueMultiColumnReaderWriter(int numRowsPerChunk, int[] columnSizesInBytes, PinotDataBufferMemoryManager memoryManager, String allocationContext)Constructor for the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()doublegetDouble(int row, int column)floatgetFloat(int row, int column)intgetInt(int row, int column)longgetLong(int row, int column)StringgetString(int row, int column)voidsetDouble(int row, int column, double value)voidsetFloat(int row, int column, float value)voidsetInt(int row, int column, int value)voidsetLong(int row, int column, long value)voidsetString(int row, int column, String value)
-
-
-
Constructor Detail
-
FixedByteSingleValueMultiColumnReaderWriter
public FixedByteSingleValueMultiColumnReaderWriter(int numRowsPerChunk, int[] columnSizesInBytes, PinotDataBufferMemoryManager memoryManager, String allocationContext)Constructor for the class.- Parameters:
numRowsPerChunk- Number of rows per chunk of data buffer.columnSizesInBytes- Int array containing size of columns in bytes.memoryManager- Memory manager to be used for allocating memory.allocationContext- Allocation context (for debugging).
-
-
Method Detail
-
getInt
public int getInt(int row, int column)
-
getLong
public long getLong(int row, int column)
-
getFloat
public float getFloat(int row, int column)
-
getDouble
public double getDouble(int row, int column)
-
getString
public String getString(int row, int column)
-
setInt
public void setInt(int row, int column, int value)
-
setLong
public void setLong(int row, int column, long value)
-
setFloat
public void setFloat(int row, int column, float value)
-
setDouble
public void setDouble(int row, int column, double value)
-
setString
public void setString(int row, int column, String value)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-