Package

org.hammerlab

iterator

Permalink

package iterator

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. iterator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class CappedCostGroupsIterator[T](it: BufferedIterator[T]) extends Product with Serializable

    Permalink
  2. case class CountIteratorByKey[K, V](it: Iterator[(K, V)]) extends Product with Serializable

    Permalink
  3. case class CountIteratorElems[T](it: Iterator[T]) extends Product with Serializable

    Permalink
  4. case class DropEagerIterator[T](it: Iterator[T]) extends Product with Serializable

    Permalink
  5. case class DropRightIterator[T](it: Iterator[T]) extends Product with Serializable

    Permalink
  6. case class EitherIterator[T, U](it: BufferedIterator[Either[T, U]]) extends Product with Serializable

    Permalink
  7. case class ExpandLastElementIterator[T](it: Iterator[T]) extends Product with Serializable

    Permalink
  8. case class FinishingIterator[T](it: Iterator[T]) extends Product with Serializable

    Permalink
  9. case class FlattenableIterator[A](it: A) extends Product with Serializable

    Permalink
  10. case class FlatteningIterator[V, T](it: BufferedIterator[T])(implicit ev: <:<[T, Iterator[V]]) extends SimpleBufferedIterator[V] with Product with Serializable

    Permalink

    "Flatmap" over an Iterator of Iterators, exposing the inner Iterator along the way (as its true type)

    "Flatmap" over an Iterator of Iterators, exposing the inner Iterator along the way (as its true type)

    V

    "value" type of resulting Iterator

    T

    type of inner Iterator

    it

    Iterator of Iterators

  11. case class GroupWithIterator[T](it: BufferedIterator[T]) extends Product with Serializable

    Permalink

    Group one sorted iterator with another, emitting an iterator of the latter's elements for each of the former's

  12. implicit final class HeadOptionIterator[T] extends AnyVal

    Permalink
  13. class LinesIterator extends SimpleBufferedIterator[String]

    Permalink

    Wrap a BufferedReader and emit lines.

  14. abstract class MapValuesWithStateIterator[K, V, W] extends MapWithStateIterator[(K, V), (K, W)]

    Permalink
  15. abstract class MapWithStateIterator[T, U] extends SimpleBufferedIterator[U]

    Permalink
  16. implicit final class NextOptionIterator[T] extends AnyVal

    Permalink
  17. class RangeAccruingIterator extends Iterator[Range]

    Permalink

    Given an Iterator of Ints, collapse contiguous "ranges" of integers that are each 1 greater than their predecessor.

    Given an Iterator of Ints, collapse contiguous "ranges" of integers that are each 1 greater than their predecessor.

    For example, given an input [2, 3, 1, 4, 5, 6, 5, 6, 8], this would emit Ranges (in half-open notation): [2, 4), [1, 2), [4, 7), [5, 7), [8, 9).

    See RangeAccruingIteratorTest for more examples.

  18. class RunLengthIterator[K] extends AnyRef

    Permalink

    Run-length encode an input iterator, replacing contiguous runs of identical elements with pairs consisting of the first element in the run and the number of elements observed.

    Run-length encode an input iterator, replacing contiguous runs of identical elements with pairs consisting of the first element in the run and the number of elements observed.

    See RunLengthIteratorTest for examples.

  19. case class SamplingIterator[T](it: Iterator[T])(implicit evidence$1: ClassTag[T]) extends Product with Serializable

    Permalink

    Sample elements from an iterator into an Array

  20. trait SimpleBufferedIterator[+T] extends BufferedIterator[T]

    Permalink

    Interface for implementing BufferedIterators following a common pattern: the hasNext implementation must actually compute the next element (or return a sentinel that implies that one doesn't exist), and should therefore cache that element to serve head and next() calls.

    Interface for implementing BufferedIterators following a common pattern: the hasNext implementation must actually compute the next element (or return a sentinel that implies that one doesn't exist), and should therefore cache that element to serve head and next() calls.

    This interface allows subclasses to simply implement an _advance method that returns an Option containing the next element, if one exists, and None otherwise, and it takes care of the rest of the boilerplate.

    It also exposes protected clear and postNext methods for Noneing the internal state and responding to next() having been called, respectively.

  21. case class SliceIterator[T](it: Iterator[T]) extends Product with Serializable

    Permalink
  22. case class TakeEagerIterator[T](it: Iterator[T])(implicit evidence$1: ClassTag[T]) extends Product with Serializable

    Permalink
  23. class TakeUntilIterator[T] extends Iterator[Seq[T]]

    Permalink

    For each element in an input Iterator, emit the sequence of elements from the current one to the next sentinel value (or the end of the iterator, if no more sentinels follow the current element).

    For each element in an input Iterator, emit the sequence of elements from the current one to the next sentinel value (or the end of the iterator, if no more sentinels follow the current element).

    See TakeUntilIteratorTest for examples.

Value Members

  1. object CappedCostGroupsIterator extends Serializable

    Permalink
  2. object CountIteratorByKey extends Serializable

    Permalink
  3. object CountIteratorElems extends Serializable

    Permalink
  4. object DropEagerIterator extends Serializable

    Permalink
  5. object DropRightIterator extends Serializable

    Permalink
  6. object EitherIterator extends Serializable

    Permalink
  7. object ExpandLastElementIterator extends Serializable

    Permalink
  8. object FinishingIterator extends Serializable

    Permalink
  9. object FlatteningIterator extends Serializable

    Permalink
  10. object GroupRunsIterator

    Permalink

    Given an iterator and a predicate function, emit iterators containing maximal runs of sequential elements that all satisfy the predicate, or individual elements that do not.

    Given an iterator and a predicate function, emit iterators containing maximal runs of sequential elements that all satisfy the predicate, or individual elements that do not.

    For example, given an Iterator containing Ints [1, 2, 4, 3, 5, 6, 2, 8] and predicate function _ % 2 == 0, GroupRunsIterator would emit Iterators containing [1], [2, 4], [3], [5], [6, 2, 8].

    See GroupRunsIteratorTest for more examples.

  11. object GroupWithIterator extends Serializable

    Permalink
  12. object LinesIterator

    Permalink
  13. object RunLengthIterator

    Permalink
  14. object SamplingIterator extends Serializable

    Permalink
  15. object SimpleBufferedIterator

    Permalink
  16. object SliceIterator extends Serializable

    Permalink
  17. object TakeEagerIterator extends Serializable

    Permalink
  18. package bulk

    Permalink
  19. package range

    Permalink
  20. package scan

    Permalink
  21. package sliding

    Permalink
  22. package sorted

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped