File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/sql/ast Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 2222import org .apache .iotdb .commons .schema .column .ColumnHeader ;
2323import org .apache .iotdb .db .queryengine .common .header .DatasetHeader ;
2424import org .apache .iotdb .db .queryengine .plan .relational .analyzer .Analysis ;
25- import org .apache .iotdb .db .schemaengine .schemaregion .read .resp .info .impl .ShowDevicesResult ;
2625
2726import org .apache .tsfile .enums .TSDataType ;
2827import org .apache .tsfile .read .common .block .TsBlock ;
@@ -72,24 +71,6 @@ public String toString() {
7271
7372 @ Override
7473 public long ramBytesUsed () {
75- long size = INSTANCE_SIZE ;
76- size += AstMemoryEstimationHelper .getEstimatedSizeOfNodeLocation (getLocationInternal ());
77- size += AstMemoryEstimationHelper .getEstimatedSizeOfAccountableObject (table );
78- size += AstMemoryEstimationHelper .getEstimatedSizeOfAccountableObject (where );
79- size += RamUsageEstimator .sizeOf (database );
80- size += RamUsageEstimator .sizeOf (tableName );
81- size += RamUsageEstimator .shallowSizeOf (tagDeterminedFilterList );
82- size += AstMemoryEstimationHelper .getEstimatedSizeOfAccountableObject (tagFuzzyPredicate );
83- size += RamUsageEstimator .shallowSizeOf (columnHeaderList );
84- size += AstMemoryEstimationHelper .getEstimatedSizeOfStringList (getAttributeColumns ());
85- if (results != null ) {
86- size += RamUsageEstimator .shallowSizeOf (results );
87- for (ShowDevicesResult result : results ) {
88- if (result != null ) {
89- size += result .ramBytesUsed ();
90- }
91- }
92- }
93- return size ;
74+ return INSTANCE_SIZE + ramBytesUsedForCommonFields ();
9475 }
9576}
You can’t perform that action at this time.
0 commit comments