Class SerializableRowRecordList

    • 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 QueryProcessException
        Calculate 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 a TSDataType.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)
      • serialize

        public void serialize​(org.apache.iotdb.tsfile.utils.PublicBAOS outputStream)
                       throws java.io.IOException
        Specified by:
        serialize in interface SerializableList
        Throws:
        java.io.IOException