## Uses of Class
org.apache.cassandra.utils.concurrent.Refs

- Packages that use Refs
  Package | Description
  --- | ---
  org.apache.cassandra.db |
  org.apache.cassandra.db.compaction |
  org.apache.cassandra.service |
  org.apache.cassandra.utils.concurrent |

- - ### Uses of Refs in org.apache.cassandra.db

    Fields in org.apache.cassandra.db declared as Refs
    Modifier and Type | Field and Description
    --- | ---
    `Refs<SSTableReader>` | ColumnFamilyStore.RefViewFragment.`refs`

    Methods in org.apache.cassandra.db that return Refs
    Modifier and Type | Method and Description
    --- | ---
    `Refs<SSTableReader>` | ColumnFamilyStore.`getAndReferenceOverlappingLiveSSTables(java.lang.Iterable<SSTableReader> sstables)` like getOverlappingSSTables, but acquires references before returning
    `Refs<SSTableReader>` | ColumnFamilyStore.`getSnapshotSSTableReader(java.lang.String tag)`

    Constructors in org.apache.cassandra.db with parameters of type Refs
    Constructor and Description
    `RefViewFragment(java.util.List<SSTableReader> sstables, java.lang.Iterable<Memtable> memtables, Refs<SSTableReader> refs)`

  - ### Uses of Refs in org.apache.cassandra.db.compaction

    Methods in org.apache.cassandra.db.compaction with parameters of type Refs
    Modifier and Type | Method and Description
    --- | ---
    `void` | CompactionManager.`performAnticompaction(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, Refs<SSTableReader> validatedForRepair, LifecycleTransaction txn, long repairedAt, java.util.UUID parentRepairSession)` Make sure the {validatedForRepair} are marked for compaction before calling this.
    `com.google.common.util.concurrent.ListenableFuture<?>` | CompactionManager.`submitAntiCompaction(ColumnFamilyStore cfs, java.util.Collection<Range<Token>> ranges, Refs<SSTableReader> sstables, long repairedAt, java.util.UUID parentRepairSession)`

  - ### Uses of Refs in org.apache.cassandra.service

    Methods in org.apache.cassandra.service that return Refs
    Modifier and Type | Method and Description
    --- | ---
    `Refs<SSTableReader>` | ActiveRepairService.ParentRepairSession.`getActiveRepairedSSTableRefsForAntiCompaction(java.util.UUID cfId, java.util.UUID parentSessionId)` Get the still active sstables we should run anticompaction on note that validation and streaming do not call this method - they have to work on the actual active sstables on the node, we only call this to know which sstables are still there that were there when we started the repair

  - ### Uses of Refs in org.apache.cassandra.utils.concurrent

    Methods in org.apache.cassandra.utils.concurrent that return Refs
    Modifier and Type | Method and Description
    --- | ---
    `Refs<T>` | Refs.`addAll(Refs<T> add)` Merge two sets of references, ensuring only one reference is retained between the two sets
    `static <T extends RefCounted<T>> Refs<T>` | Refs.`ref(java.lang.Iterable<T> reference)`
    `static <T extends RefCounted<T>> Refs<T>` | Refs.`tryRef(java.lang.Iterable<T> reference)` Acquire a reference to all of the provided objects, or none

    Methods in org.apache.cassandra.utils.concurrent with parameters of type Refs
    Modifier and Type | Method and Description
    --- | ---
    `Refs<T>` | Refs.`addAll(Refs<T> add)` Merge two sets of references, ensuring only one reference is retained between the two sets

Copyright © 2018 The Apache Software Foundation