c

overflowdb.traversal

TraversalSugarExt

final class TraversalSugarExt[A] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TraversalSugarExt
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TraversalSugarExt(iter: Iterator[A])

Type Members

  1. type Traversal[A] = Iterator[A]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cast[B]: Traversal[B]

    casts all elements to given type note: this can lead to casting errors

    casts all elements to given type note: this can lead to casting errors

    Annotations
    @Doc()
    See also

    collectAll

    as a safe alternative

  6. def collectAll[B](implicit ev: ClassTag[B]): Traversal[B]

    collects all elements of the given class (beware of type-erasure)

    collects all elements of the given class (beware of type-erasure)

    Annotations
    @Doc()
  7. def countTrav: Traversal[Int]
  8. def dedup: Traversal[A]

    Deduplicate elements of this traversal - a.k.a.

    Deduplicate elements of this traversal - a.k.a. distinct, unique, ...

    Annotations
    @Doc()
  9. def dedupBy(fun: (A) => Any): Traversal[A]

    deduplicate elements of this traversal by a given function

    deduplicate elements of this traversal by a given function

    Annotations
    @Doc()
  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. def groupBy[K](f: (A) => K): Map[K, List[A]]
  12. def groupCount[B](by: (A) => B): Map[B, Int]

    group elements by a given transformation function and count how often the results appear

    group elements by a given transformation function and count how often the results appear

    Annotations
    @Doc()
  13. def groupCount[B >: A]: Map[B, Int]

    group elements and count how often they appear

    group elements and count how often they appear

    Annotations
    @Doc()
  14. def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, List[B]]
  15. def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
  16. def head: A
  17. def headOption: Option[A]
  18. def help[B >: A](implicit elementType: ClassTag[B], searchPackages: DocSearchPackages): String

    Print help/documentation based on the current elementType A.

    Print help/documentation based on the current elementType A. Relies on all step extensions being annotated with \@Traversal / @Doc Note that this works independently of tab completion and implicit conversions in scope - it will simply list all documented steps in the classpath

    Annotations
    @Doc()
  19. def helpVerbose[B >: A](implicit elementType: ClassTag[B], searchPackages: DocSearchPackages): String
    Annotations
    @Doc()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val iter: Iterator[A]
  22. def iterate(): Unit

    Execute the traversal without returning anything

    Execute the traversal without returning anything

    Annotations
    @Doc()
  23. def l: List[A]

    Execute the traversal and convert the result to a list - shorthand for toList

    Execute the traversal and convert the result to a list - shorthand for toList

    Annotations
    @Doc()
  24. def last: A
  25. def lastOption: Option[A]
  26. def sortBy[B](f: (A) => B)(implicit ord: Ordering[B]): Seq[A]

    sort elements by the value of the given transformation function

    sort elements by the value of the given transformation function

    Annotations
    @Doc()
  27. def sorted[B >: A](implicit ord: Ordering[B]): Seq[B]

    sort elements by their natural order

    sort elements by their natural order

    Annotations
    @Doc()
  28. def toSetImmutable[B >: A]: Set[B]

    Execute the traversal and convert the result to an immutable Set.

  29. def toSetMutable[B >: A]: LinkedHashSet[B]

    Execute the traversal and return a mutable.Set (better performance than immutableSet and has stable iterator order)

  30. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped