public long ramBytesUsed() {long size = 0;for (Map.Entry<String,DocValuesProducer> entry : formats.entrySet()) {size += (entry.getKey().length() * Character.BYTES) + entry.getValue().ramBytesUsed();}return size;}

public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair<string, FieldsProducer> entry in formats){sizeInBytes += entry.Key.Length * RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}
