org.dbpedia.extraction.sources

Source

trait Source extends Traversable[WikiPage] with Serializable

A source of wiki pages. TODO: do we need this class? Methods that have a paramater with this type are not as flexible as they could be, for example they cannot be called with List(page). The only advantage of this class seems to be the definition hasDefiniteSize = false, which can easily be added to any Traversable implementations that actually need it. We should clearly document in which cases hasDefiniteSize = false is useful or necessary. The Scala documentation doesn't help much here. Traversable also defines all kinds of methods - for example size() - that call foreach() and iterate over the whole collection, which for most of our sources is a huge waste. Even calling head() causes a big overhead, for example a file or a network connection is opened. Is there a more appropriate Scala type?

Linear Supertypes
Serializable, Traversable[WikiPage], Immutable, Traversable[WikiPage], GenTraversable[WikiPage], GenericTraversableTemplate[WikiPage, Traversable], TraversableLike[WikiPage, Traversable[WikiPage]], GenTraversableLike[WikiPage, Traversable[WikiPage]], Parallelizable[WikiPage, ParIterable[WikiPage]], TraversableOnce[WikiPage], GenTraversableOnce[WikiPage], FilterMonadic[WikiPage, Traversable[WikiPage]], HasNewBuilder[WikiPage, scala.collection.immutable.Traversable[org.dbpedia.extraction.wikiparser.WikiPage] @scala.annotation.unchecked.uncheckedVariance], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Source
  2. Serializable
  3. Traversable
  4. Immutable
  5. Traversable
  6. GenTraversable
  7. GenericTraversableTemplate
  8. TraversableLike
  9. GenTraversableLike
  10. Parallelizable
  11. TraversableOnce
  12. GenTraversableOnce
  13. FilterMonadic
  14. HasNewBuilder
  15. AnyRef
  16. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Self = Traversable[WikiPage]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def foreach[U](f: (WikiPage) ⇒ U): Unit

    Definition Classes
    GenericTraversableTemplate

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def ++[B >: WikiPage, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: WikiPage, That](that: Traversable[B])(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike
  5. def ++:[B >: WikiPage, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike
  6. def /:[B](z: B)(op: (B, WikiPage) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  7. def :\[B](z: B)(op: (WikiPage, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  10. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  11. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  12. def aggregate[B](z: ⇒ B)(seqop: (B, WikiPage) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def collect[B, That](pf: PartialFunction[WikiPage, B])(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  16. def collectFirst[B](pf: PartialFunction[WikiPage, B]): Option[B]

    Definition Classes
    TraversableOnce
  17. def companion: GenericCompanion[Traversable]

    Definition Classes
    Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  18. def copyToArray[B >: WikiPage](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  19. def copyToArray[B >: WikiPage](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  20. def copyToArray[B >: WikiPage](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def copyToBuffer[B >: WikiPage](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  22. def count(p: (WikiPage) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def drop(n: Int): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  24. def dropWhile(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  25. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  27. def exists(p: (WikiPage) ⇒ Boolean): Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  28. def filter(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  29. def filterNot(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  30. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. def find(p: (WikiPage) ⇒ Boolean): Option[WikiPage]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  32. def flatMap[B, That](f: (WikiPage) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  33. def flatten[B](implicit asTraversable: (WikiPage) ⇒ GenTraversableOnce[B]): Traversable[B]

    Definition Classes
    GenericTraversableTemplate
  34. def fold[A1 >: WikiPage](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  35. def foldLeft[B](z: B)(op: (B, WikiPage) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  36. def foldRight[B](z: B)(op: (WikiPage, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  37. def forall(p: (WikiPage) ⇒ Boolean): Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  38. def genericBuilder[B]: Builder[B, Traversable[B]]

    Definition Classes
    GenericTraversableTemplate
  39. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  40. def groupBy[K](f: (WikiPage) ⇒ K): Map[K, Traversable[WikiPage]]

    Definition Classes
    TraversableLike → GenTraversableLike
  41. def hasDefiniteSize: Boolean

    True, if this source is guaranteed to have a finite size.

    True, if this source is guaranteed to have a finite size.

    Definition Classes
    Source → TraversableLike → TraversableOnce → GenTraversableOnce
  42. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  43. def head: WikiPage

    Definition Classes
    TraversableLike → GenTraversableLike
  44. def headOption: Option[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  45. def init: Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  46. def inits: Iterator[Traversable[WikiPage]]

    Definition Classes
    TraversableLike
  47. def isEmpty: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  48. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  49. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  50. def last: WikiPage

    Definition Classes
    TraversableLike → GenTraversableLike
  51. def lastOption: Option[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  52. def map[B, That](f: (WikiPage) ⇒ B)(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  53. def max[B >: WikiPage](implicit cmp: Ordering[B]): WikiPage

    Definition Classes
    TraversableOnce → GenTraversableOnce
  54. def maxBy[B](f: (WikiPage) ⇒ B)(implicit cmp: Ordering[B]): WikiPage

    Definition Classes
    TraversableOnce → GenTraversableOnce
  55. def min[B >: WikiPage](implicit cmp: Ordering[B]): WikiPage

    Definition Classes
    TraversableOnce → GenTraversableOnce
  56. def minBy[B](f: (WikiPage) ⇒ B)(implicit cmp: Ordering[B]): WikiPage

    Definition Classes
    TraversableOnce → GenTraversableOnce
  57. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  58. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  59. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  61. def newBuilder: Builder[WikiPage, Traversable[WikiPage]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  62. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. final def notify(): Unit

    Definition Classes
    AnyRef
  64. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  65. def par: ParIterable[WikiPage]

    Definition Classes
    Parallelizable
  66. def parCombiner: Combiner[WikiPage, ParIterable[WikiPage]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  67. def partition(p: (WikiPage) ⇒ Boolean): (Traversable[WikiPage], Traversable[WikiPage])

    Definition Classes
    TraversableLike → GenTraversableLike
  68. def product[B >: WikiPage](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. def reduce[A1 >: WikiPage](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. def reduceLeft[B >: WikiPage](op: (B, WikiPage) ⇒ B): B

    Definition Classes
    TraversableOnce
  71. def reduceLeftOption[B >: WikiPage](op: (B, WikiPage) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  72. def reduceOption[A1 >: WikiPage](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  73. def reduceRight[B >: WikiPage](op: (WikiPage, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  74. def reduceRightOption[B >: WikiPage](op: (WikiPage, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. def repr: Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  76. def reversed: List[WikiPage]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  77. def scan[B >: WikiPage, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  78. def scanLeft[B, That](z: B)(op: (B, WikiPage) ⇒ B)(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  79. def scanRight[B, That](z: B)(op: (WikiPage, B) ⇒ B)(implicit bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  80. def seq: Traversable[WikiPage]

    Definition Classes
    Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  81. def size: Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def slice(from: Int, until: Int): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  83. def span(p: (WikiPage) ⇒ Boolean): (Traversable[WikiPage], Traversable[WikiPage])

    Definition Classes
    TraversableLike → GenTraversableLike
  84. def splitAt(n: Int): (Traversable[WikiPage], Traversable[WikiPage])

    Definition Classes
    TraversableLike → GenTraversableLike
  85. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  86. def sum[B >: WikiPage](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  88. def tail: Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  89. def tails: Iterator[Traversable[WikiPage]]

    Definition Classes
    TraversableLike
  90. def take(n: Int): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  91. def takeWhile(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableLike
  92. def thisCollection: Traversable[WikiPage]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  93. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, WikiPage, Col[WikiPage]]): Col[WikiPage]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  94. def toArray[B >: WikiPage](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  95. def toBuffer[B >: WikiPage]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def toCollection(repr: Traversable[WikiPage]): Traversable[WikiPage]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  97. def toIndexedSeq: IndexedSeq[WikiPage]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def toIterable: Iterable[WikiPage]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. def toIterator: Iterator[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableOnce
  100. def toList: List[WikiPage]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def toMap[T, U](implicit ev: <:<[WikiPage, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. def toSeq: Seq[WikiPage]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def toSet[B >: WikiPage]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toStream: Stream[WikiPage]

    Definition Classes
    TraversableLike → GenTraversableOnce
  105. def toString(): String

    Definition Classes
    TraversableLike → Any
  106. def toTraversable: Traversable[WikiPage]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  107. def toVector: Vector[WikiPage]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def transpose[B](implicit asTraversable: (WikiPage) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  109. def unzip[A1, A2](implicit asPair: (WikiPage) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])

    Definition Classes
    GenericTraversableTemplate
  110. def unzip3[A1, A2, A3](implicit asTriple: (WikiPage) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])

    Definition Classes
    GenericTraversableTemplate
  111. def view(from: Int, until: Int): TraversableView[WikiPage, Traversable[WikiPage]]

    Definition Classes
    TraversableLike
  112. def view: TraversableView[WikiPage, Traversable[WikiPage]]

    Definition Classes
    TraversableLike
  113. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  114. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  115. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  116. def withFilter(p: (WikiPage) ⇒ Boolean): FilterMonadic[WikiPage, Traversable[WikiPage]]

    Definition Classes
    TraversableLike → FilterMonadic

Inherited from Serializable

Inherited from Traversable[WikiPage]

Inherited from Immutable

Inherited from Traversable[WikiPage]

Inherited from GenTraversable[WikiPage]

Inherited from GenericTraversableTemplate[WikiPage, Traversable]

Inherited from TraversableLike[WikiPage, Traversable[WikiPage]]

Inherited from GenTraversableLike[WikiPage, Traversable[WikiPage]]

Inherited from Parallelizable[WikiPage, ParIterable[WikiPage]]

Inherited from TraversableOnce[WikiPage]

Inherited from GenTraversableOnce[WikiPage]

Inherited from FilterMonadic[WikiPage, Traversable[WikiPage]]

Inherited from HasNewBuilder[WikiPage, scala.collection.immutable.Traversable[org.dbpedia.extraction.wikiparser.WikiPage] @scala.annotation.unchecked.uncheckedVariance]

Inherited from AnyRef

Inherited from Any

Ungrouped