Class BasicMNodSizeEstimator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int ALIAS_BASE_SIZE  
      protected static int ENTITY_NODE_BASE_SIZE
      The basic extra memory occupied by an EntityMNode based on InternalMNode occupation isAligned, 1B aliasChildren reference, 8B lastCacheMap, 8B
      protected static int INTERNAL_NODE_BASE_SIZE
      The basic extra memory occupied by an InternalMNode based on MNode occupation template reference, 8B boolean useTemplate, 1B MNodeContainer reference and basic occupation, 8 + 80B
      protected static int MEASUREMENT_NODE_BASE_SIZE
      The basic extra memory occupied by an MeasurementMNode based on MNode occupation alias reference, 8B tagOffset, 8B estimated schema size, 32B lastCache, 8B
      protected static int NODE_BASE_SIZE
      The basic memory occupied by any MNode object object header, 8B node attributes name reference, name length and name hash code, 8 + 4 + 4 = 16B parent reference, 8B fullPath reference, 8B cacheEntry reference, 8B trigger reference, 8B MapEntry in parent key reference, 8B value reference, 8B entry size, see ConcurrentHashMap.Node, 28
      protected static int STORAGE_GROUP_NODE_BASE_SIZE
      The basic extra memory occupied by an StorageGroupMNode based on InternalMNode occupation dataTTL, 8B fullPath length and hashCode, 4 + 4 = 8B
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int estimateSize​(IMNode node)  
      • Methods inherited from class java.lang.Object

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

      • NODE_BASE_SIZE

        protected static final int NODE_BASE_SIZE
        The basic memory occupied by any MNode object
        1. object header, 8B
        2. node attributes
          1. name reference, name length and name hash code, 8 + 4 + 4 = 16B
          2. parent reference, 8B
          3. fullPath reference, 8B
          4. cacheEntry reference, 8B
          5. trigger reference, 8B
        3. MapEntry in parent
          1. key reference, 8B
          2. value reference, 8B
          3. entry size, see ConcurrentHashMap.Node, 28
        See Also:
        Constant Field Values
      • INTERNAL_NODE_BASE_SIZE

        protected static final int INTERNAL_NODE_BASE_SIZE
        The basic extra memory occupied by an InternalMNode based on MNode occupation
        1. template reference, 8B
        2. boolean useTemplate, 1B
        3. MNodeContainer reference and basic occupation, 8 + 80B
        See Also:
        Constant Field Values
      • STORAGE_GROUP_NODE_BASE_SIZE

        protected static final int STORAGE_GROUP_NODE_BASE_SIZE
        The basic extra memory occupied by an StorageGroupMNode based on InternalMNode occupation
        1. dataTTL, 8B
        2. fullPath length and hashCode, 4 + 4 = 8B
        See Also:
        Constant Field Values
      • ENTITY_NODE_BASE_SIZE

        protected static final int ENTITY_NODE_BASE_SIZE
        The basic extra memory occupied by an EntityMNode based on InternalMNode occupation
        1. isAligned, 1B
        2. aliasChildren reference, 8B
        3. lastCacheMap, 8B
        See Also:
        Constant Field Values
      • MEASUREMENT_NODE_BASE_SIZE

        protected static final int MEASUREMENT_NODE_BASE_SIZE
        The basic extra memory occupied by an MeasurementMNode based on MNode occupation
        1. alias reference, 8B
        2. tagOffset, 8B
        3. estimated schema size, 32B
        4. lastCache, 8B
        See Also:
        Constant Field Values
    • Constructor Detail

      • BasicMNodSizeEstimator

        public BasicMNodSizeEstimator()