AbstractCompactionIterable (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.db.compaction

## Class AbstractCompactionIterable

- java.lang.Object
- - org.apache.cassandra.db.compaction.CompactionInfo.Holder
  - - org.apache.cassandra.db.compaction.AbstractCompactionIterable

- All Implemented Interfaces:
    java.lang.Iterable<AbstractCompactedRow>
  Direct Known Subclasses:
    CompactionIterable

      public abstract class AbstractCompactionIterable
      extends CompactionInfo.Holder
      implements java.lang.Iterable<AbstractCompactedRow>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected long` | `bytesRead`
    `protected CompactionController` | `controller`
    `protected java.util.concurrent.atomic.AtomicLong[]` | `mergeCounters`
    `protected java.util.List<ICompactionScanner>` | `scanners`
    `protected long` | `totalBytes`
    `protected OperationType` | `type`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractCompactionIterable(CompactionController controller, OperationType type, java.util.List<ICompactionScanner> scanners)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `CompactionInfo` | `getCompactionInfo()`
    `long[]` | `getMergedRowCounts()`
    `abstract CloseableIterator<AbstractCompactedRow>` | `iterator()`
    `protected void` | `updateCounterFor(int rows)`

    - ### Methods inherited from class org.apache.cassandra.db.compaction.CompactionInfo.Holder

      `finished, isStopRequested, started, stop`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### type

          protected final OperationType type

    - #### controller

          protected final CompactionController controller

    - #### totalBytes

          protected final long totalBytes

    - #### bytesRead

          protected volatile long bytesRead

    - #### scanners

          protected final java.util.List<ICompactionScanner> scanners

    - #### mergeCounters

          protected final java.util.concurrent.atomic.AtomicLong[] mergeCounters

  - ### Constructor Detail

    - #### AbstractCompactionIterable

          public AbstractCompactionIterable(CompactionController controller,
                                    OperationType type,
                                    java.util.List<ICompactionScanner> scanners)

  - ### Method Detail

    - #### getCompactionInfo

          public CompactionInfo getCompactionInfo()

      Specified by:
        `getCompactionInfo` in class `CompactionInfo.Holder`

    - #### updateCounterFor

          protected void updateCounterFor(int rows)

    - #### getMergedRowCounts

          public long[] getMergedRowCounts()

    - #### iterator

          public abstract CloseableIterator<AbstractCompactedRow> iterator()

      Specified by:
        `iterator` in interface `java.lang.Iterable<AbstractCompactedRow>`

Copyright © 2014 The Apache Software Foundation