## Uses of Class
org.apache.lucene.util.Counter

- Packages that use Counter
  Package | Description
  --- | ---
  org.apache.lucene.search | Code to search indices.
  org.apache.lucene.util | Some utility classes.

- - ### Uses of Counter in org.apache.lucene.search

    Methods in org.apache.lucene.search that return Counter
    Modifier and Type | Method and Description
    --- | ---
    `static Counter` | TimeLimitingCollector.`getGlobalCounter()` Returns the global TimerThreads `Counter`

    Constructors in org.apache.lucene.search with parameters of type Counter
    Constructor and Description
    `TimeLimitingCollector.TimerThread(Counter counter)`
    `TimeLimitingCollector.TimerThread(long resolution, Counter counter)`
    `TimeLimitingCollector(Collector collector, Counter clock, long ticksAllowed)` Create a TimeLimitedCollector wrapper over another `Collector` with a specified timeout.

  - ### Uses of Counter in org.apache.lucene.util

    Methods in org.apache.lucene.util that return Counter
    Modifier and Type | Method and Description
    --- | ---
    `abstract Counter` | BytesRefHash.BytesStartArray.`bytesUsed()` A `Counter` reference holding the number of bytes used by this `BytesRefHash.BytesStartArray`.
    `Counter` | BytesRefHash.DirectBytesStartArray.`bytesUsed()`
    `static Counter` | Counter.`newCounter()` Returns a new counter.
    `static Counter` | Counter.`newCounter(boolean threadSafe)` Returns a new counter.

    Constructors in org.apache.lucene.util with parameters of type Counter
    Constructor and Description
    `ByteBlockPool.DirectTrackingAllocator(Counter bytesUsed)`
    `ByteBlockPool.DirectTrackingAllocator(int blockSize, Counter bytesUsed)`
    `BytesRefHash.DirectBytesStartArray(int initSize, Counter counter)`
    `RecyclingByteBlockAllocator(int blockSize, int maxBufferedBlocks, Counter bytesUsed)` Creates a new `RecyclingByteBlockAllocator`
    `RecyclingIntBlockAllocator(int blockSize, int maxBufferedBlocks, Counter bytesUsed)` Creates a new `RecyclingIntBlockAllocator`

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.