/// <summary> /// Returns approximate RAM Bytes used </summary> public long RamBytesUsed() { EnsureOpen(); long ramBytesUsed = 0; if (dvProducers != null) { foreach (DocValuesProducer producer in dvProducers) { ramBytesUsed += producer.RamBytesUsed(); } } if (core != null) { ramBytesUsed += core.RamBytesUsed(); } return(ramBytesUsed); }