Class PrimitiveArrayManager


  • public class PrimitiveArrayManager
    extends java.lang.Object
    Manage all primitive data lists in memory, including get and release operations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ARRAY_SIZE  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object allocate​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType)
      Get or allocate primitive data lists according to type.
      static void close()  
      static java.lang.Object createDataListsByType​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, int size)
      Get primitive data lists according to data type and size, only for TVList's sorting
      static int getArrayRowCount​(int size)  
      static void release​(java.lang.Object array)
      This method is called when bringing back data array
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ARRAY_SIZE

        public static final int ARRAY_SIZE
    • Method Detail

      • allocate

        public static java.lang.Object allocate​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType)
        Get or allocate primitive data lists according to type.
        Returns:
        an array
      • release

        public static void release​(java.lang.Object array)
        This method is called when bringing back data array
        Parameters:
        array - data array to be released
      • close

        public static void close()
      • createDataListsByType

        public static java.lang.Object createDataListsByType​(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType,
                                                             int size)
        Get primitive data lists according to data type and size, only for TVList's sorting
        Parameters:
        dataType - data type
        size - needed capacity
        Returns:
        an array of primitive data arrays
      • getArrayRowCount

        public static int getArrayRowCount​(int size)