MergeIterator.Candidate (apache-cassandra API)
Date: 2018-02-12

org.apache.cassandra.utils

## Class MergeIterator.Candidate<In>

- java.lang.Object
- - org.apache.cassandra.utils.MergeIterator.Candidate<In>

- All Implemented Interfaces:
    java.lang.Comparable<MergeIterator.Candidate<In>>
  Enclosing class:
    MergeIterator<In,Out>

      protected static final class MergeIterator.Candidate<In>
      extends java.lang.Object
      implements java.lang.Comparable<MergeIterator.Candidate<In>>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Candidate(java.util.Iterator<In> iter, java.util.Comparator<In> comp)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `advance()`
    `int` | `compareTo(MergeIterator.Candidate<In> that)`

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

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

- - ### Constructor Detail

    - #### Candidate

          public Candidate(java.util.Iterator<In> iter,
                           java.util.Comparator<In> comp)

  - ### Method Detail

    - #### advance

          protected boolean advance()

      Returns:
        True if our iterator had an item, and it is now available

    - #### compareTo

          public int compareTo(MergeIterator.Candidate<In> that)

      Specified by:
        `compareTo` in interface `java.lang.Comparable<MergeIterator.Candidate<In>>`

Copyright © 2018 The Apache Software Foundation