Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
        /// <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);
        }