Package org.eclipse.rdf4j.query.algebra.evaluation.limited.iterator

## Class LimitedSizeDistinctIteration

- java.lang.Object
- - org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E,​X>
  - - org.eclipse.rdf4j.common.iteration.IterationWrapper<E,​X>
    - - org.eclipse.rdf4j.common.iteration.FilterIteration<E,​X>
      - - org.eclipse.rdf4j.common.iteration.DistinctIteration<BindingSet,​QueryEvaluationException>
        - - org.eclipse.rdf4j.query.algebra.evaluation.limited.iterator.LimitedSizeDistinctIteration

- All Implemented Interfaces:
    `AutoCloseable`, `CloseableIteration<BindingSet,​QueryEvaluationException>`, `Iteration<BindingSet,​QueryEvaluationException>`

      public class LimitedSizeDistinctIteration
      extends DistinctIteration<BindingSet,​QueryEvaluationException>

  Author:
    Jerven Bolleman, SIB Swiss Institute of Bioinformatics

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.rdf4j.common.iteration.IterationWrapper

      `wrappedIter`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `LimitedSizeDistinctIteration​(Iteration<? extends BindingSet,​? extends QueryEvaluationException> iter, AtomicLong used, long maxSize)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected boolean` | `add​(BindingSet object)` |

    - ### Methods inherited from class org.eclipse.rdf4j.common.iteration.DistinctIteration

      `accept, makeSet`

    - ### Methods inherited from class org.eclipse.rdf4j.common.iteration.FilterIteration

      `handleClose, hasNext, next`

    - ### Methods inherited from class org.eclipse.rdf4j.common.iteration.IterationWrapper

      `remove`

    - ### Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration

      `close, isClosed`

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

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

    - ### Methods inherited from interface org.eclipse.rdf4j.common.iteration.Iteration

      `stream`

- - ### Constructor Detail

    - #### LimitedSizeDistinctIteration

          public LimitedSizeDistinctIteration​(Iteration<? extends BindingSet,​? extends QueryEvaluationException> iter,
                                              AtomicLong used,
                                              long maxSize)

      Parameters:
        `iter` -

  - ### Method Detail

    - #### add

          protected boolean add​(BindingSet object)
                         throws QueryEvaluationException

      Overrides:
        `add` in class `DistinctIteration<BindingSet,​QueryEvaluationException>`
      Parameters:
        `object` - to put into the set
      Throws:
        `QueryEvaluationException`