Class SerializableRowRecordList
- java.lang.Object
-
- org.apache.iotdb.db.mpp.transformation.datastructure.row.SerializableRowRecordList
-
- All Implemented Interfaces:
SerializableList
public class SerializableRowRecordList extends java.lang.Object implements SerializableList
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iotdb.db.mpp.transformation.datastructure.SerializableList
SerializableList.SerializationRecorder
-
-
Field Summary
Fields Modifier and Type Field Description protected static intMIN_ARRAY_HEADER_SIZEprotected static intMIN_OBJECT_HEADER_SIZE-
Fields inherited from interface org.apache.iotdb.db.mpp.transformation.datastructure.SerializableList
INITIAL_BYTE_ARRAY_LENGTH_FOR_MEMORY_CONTROL
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static intcalculateCapacity(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] dataTypes, float memoryLimitInMB, int byteArrayLengthForMemoryControl)Calculate the number of rows that can be cached given the memory limit.voiddeserialize(java.nio.ByteBuffer byteBuffer)java.lang.Object[]getRowRecord(int index)SerializableList.SerializationRecordergetSerializationRecorder()longgetTime(int index)voidinit()static SerializableRowRecordListnewSerializableRowRecordList(long queryId, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] dataTypes, int internalRowRecordListCapacity)voidput(java.lang.Object[] rowRecord)voidrelease()voidserialize(org.apache.iotdb.tsfile.utils.PublicBAOS outputStream)intsize()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.db.mpp.transformation.datastructure.SerializableList
deserialize, serialize
-
-
-
-
Field Detail
-
MIN_OBJECT_HEADER_SIZE
protected static final int MIN_OBJECT_HEADER_SIZE
- See Also:
- Constant Field Values
-
MIN_ARRAY_HEADER_SIZE
protected static final int MIN_ARRAY_HEADER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
newSerializableRowRecordList
public static SerializableRowRecordList newSerializableRowRecordList(long queryId, org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] dataTypes, int internalRowRecordListCapacity)
-
calculateCapacity
protected static int calculateCapacity(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType[] dataTypes, float memoryLimitInMB, int byteArrayLengthForMemoryControl) throws QueryProcessExceptionCalculate the number of rows that can be cached given the memory limit.- Parameters:
dataTypes- Data types of columns.memoryLimitInMB- Memory limit.byteArrayLengthForMemoryControl- Max memory usage for aTSDataType.TEXT.- Returns:
- Number of rows that can be cached.
- Throws:
QueryProcessException
-
size
public int size()
-
getRowRecord
public java.lang.Object[] getRowRecord(int index)
-
getTime
public long getTime(int index)
-
put
public void put(java.lang.Object[] rowRecord)
-
release
public void release()
- Specified by:
releasein interfaceSerializableList
-
init
public void init()
- Specified by:
initin interfaceSerializableList
-
serialize
public void serialize(org.apache.iotdb.tsfile.utils.PublicBAOS outputStream) throws java.io.IOException- Specified by:
serializein interfaceSerializableList- Throws:
java.io.IOException
-
deserialize
public void deserialize(java.nio.ByteBuffer byteBuffer)
- Specified by:
deserializein interfaceSerializableList
-
getSerializationRecorder
public SerializableList.SerializationRecorder getSerializationRecorder()
- Specified by:
getSerializationRecorderin interfaceSerializableList
-
-