public long ramBytesUsed() {long ramBytesUsed = postingsReader.ramBytesUsed();for (TermsReader r : fields.values()) {ramBytesUsed += r.ramBytesUsed();}return ramBytesUsed;}
public override long RamBytesUsed(){long ramBytesUsed = 0;foreach (TermsReader r in fields.Values){if (r.index != null){ramBytesUsed += r.index.GetSizeInBytes();ramBytesUsed += RamUsageEstimator.SizeOf(r.metaBytesBlock);ramBytesUsed += RamUsageEstimator.SizeOf(r.metaLongsBlock);ramBytesUsed += RamUsageEstimator.SizeOf(r.skipInfo);ramBytesUsed += RamUsageEstimator.SizeOf(r.statsBlock);}}return ramBytesUsed;}