Class LuceneCounterAdapter


  • public final class LuceneCounterAdapter
    extends org.apache.lucene.util.Counter
    Converts our generic TimingSource so that Lucene can use it as a Counter
    Author:
    Sanne Grinovero
    • Constructor Detail

      • LuceneCounterAdapter

        public LuceneCounterAdapter​(TimingSource timingSource)
    • Method Detail

      • addAndGet

        public long addAndGet​(long delta)
        Specified by:
        addAndGet in class org.apache.lucene.util.Counter
      • get

        public long get()
        Specified by:
        get in class org.apache.lucene.util.Counter