MergeIterator.Candidate (apache-cassandra API)
Date: 2014-10-21

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
    `MergeIterator.Candidate(java.util.Iterator<In> iter, java.util.Comparator<In> comp)`

  - ### Method Summary

    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

    - #### MergeIterator.Candidate

          public MergeIterator.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 © 2014 The Apache Software Foundation