Class BasicMNodSizeEstimator
- java.lang.Object
-
- org.apache.iotdb.db.metadata.mnode.estimator.BasicMNodSizeEstimator
-
- All Implemented Interfaces:
IMNodeSizeEstimator
- Direct Known Subclasses:
CachedMNodeSizeEstimator
public class BasicMNodSizeEstimator extends java.lang.Object implements IMNodeSizeEstimator
-
-
Field Summary
Fields Modifier and Type Field Description protected static intALIAS_BASE_SIZEprotected static intENTITY_NODE_BASE_SIZEThe basic extra memory occupied by an EntityMNode based on InternalMNode occupation isAligned, 1B aliasChildren reference, 8B lastCacheMap, 8Bprotected static intINTERNAL_NODE_BASE_SIZEThe basic extra memory occupied by an InternalMNode based on MNode occupation template reference, 8B boolean useTemplate, 1B MNodeContainer reference and basic occupation, 8 + 80Bprotected static intMEASUREMENT_NODE_BASE_SIZEThe basic extra memory occupied by an MeasurementMNode based on MNode occupation alias reference, 8B tagOffset, 8B estimated schema size, 32B lastCache, 8Bprotected static intNODE_BASE_SIZEThe 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, 28protected static intSTORAGE_GROUP_NODE_BASE_SIZEThe basic extra memory occupied by an StorageGroupMNode based on InternalMNode occupation dataTTL, 8B fullPath length and hashCode, 4 + 4 = 8B
-
Constructor Summary
Constructors Constructor Description BasicMNodSizeEstimator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intestimateSize(IMNode node)
-
-
-
Field Detail
-
NODE_BASE_SIZE
protected static final 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
- 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- template reference, 8B
- boolean useTemplate, 1B
- 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- dataTTL, 8B
- 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- isAligned, 1B
- aliasChildren reference, 8B
- 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- alias reference, 8B
- tagOffset, 8B
- estimated schema size, 32B
- lastCache, 8B
- See Also:
- Constant Field Values
-
ALIAS_BASE_SIZE
protected static final int ALIAS_BASE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
estimateSize
public int estimateSize(IMNode node)
- Specified by:
estimateSizein interfaceIMNodeSizeEstimator
-
-