Class

com.ibm.spark.netezza

NetezzaDataReader

Related Doc: package netezza

Permalink

class NetezzaDataReader extends Iterator[NetezzaRow]

Creates reader for the given partitions. Reader fetches the data for the Netezza source table by creating external table to tranfer from Netezza host system to a remote spark client using named pipes.

Executes the external table statement in separate thread to allow reading of data in parallel from the named pipe by the RDD iterator.

Linear Supertypes
Iterator[NetezzaRow], TraversableOnce[NetezzaRow], GenTraversableOnce[NetezzaRow], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NetezzaDataReader
  2. Iterator
  3. TraversableOnce
  4. GenTraversableOnce
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NetezzaDataReader(conn: Connection, table: String, columns: Array[String], filters: Array[Filter], partition: NetezzaPartition, schema: StructType)

    Permalink

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]

    Permalink
    Definition Classes
    Iterator

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B >: NetezzaRow](that: ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  4. def /:[B](z: B)(op: (B, NetezzaRow) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  5. def :\[B](z: B)(op: (NetezzaRow, B) ⇒ B): B

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce
  10. def aggregate[B](z: ⇒ B)(seqop: (B, NetezzaRow) ⇒ B, combop: (B, B) ⇒ B): B

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

    Permalink
    Definition Classes
    Any
  12. def buffered: BufferedIterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  13. def buildExternalTableQuery(pipeId: String): String

    Permalink

    Build externa table query for the specified options.

    Build externa table query for the specified options.

    pipeId

    id of the names pipe the Netezza system should write the data.

    returns

    External table query to unload the data.

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. def close(): Unit

    Permalink
  16. var closed: Boolean

    Permalink
  17. def collect[B](pf: PartialFunction[NetezzaRow, B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

    (Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.

  18. def collectFirst[B](pf: PartialFunction[NetezzaRow, B]): Option[B]

    Permalink
    Definition Classes
    TraversableOnce
  19. def contains(elem: Any): Boolean

    Permalink
    Definition Classes
    Iterator
  20. def copyToArray[B >: NetezzaRow](xs: Array[B], start: Int, len: Int): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  21. def copyToArray[B >: NetezzaRow](xs: Array[B]): Unit

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToBuffer[B >: NetezzaRow](dest: Buffer[B]): Unit

    Permalink
    Definition Classes
    TraversableOnce
  24. def corresponds[B](that: GenTraversableOnce[B])(p: (NetezzaRow, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator
  25. def count(p: (NetezzaRow) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. val delimiter: Char

    Permalink
  27. def drop(n: Int): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  28. def dropWhile(p: (NetezzaRow) ⇒ Boolean): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  29. def duplicate: (Iterator[NetezzaRow], Iterator[NetezzaRow])

    Permalink
    Definition Classes
    Iterator
  30. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. val escapeChar: Char

    Permalink
  33. var execThread: StatementExecutorThread

    Permalink
  34. def exists(p: (NetezzaRow) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  35. def filter(p: (NetezzaRow) ⇒ Boolean): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  36. def filterNot(p: (NetezzaRow) ⇒ Boolean): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  37. def finalize(): Unit

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

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  39. var firstCall: Boolean

    Permalink
  40. var fis: FileInputStream

    Permalink
  41. def flatMap[B](f: (NetezzaRow) ⇒ GenTraversableOnce[B]): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  42. def fold[A1 >: NetezzaRow](z: A1)(op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  43. def foldLeft[B](z: B)(op: (B, NetezzaRow) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def foldRight[B](z: B)(op: (NetezzaRow, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  45. def forall(p: (NetezzaRow) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  46. def foreach[U](f: (NetezzaRow) ⇒ U): Unit

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  47. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  48. def grouped[B >: NetezzaRow](size: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  49. def hasDefiniteSize: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  50. def hasNext: Boolean

    Permalink

    Returns true if there are record in the pipe, otherwise false.

    Returns true if there are record in the pipe, otherwise false.

    Definition Classes
    NetezzaDataReader → Iterator
  51. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  52. def indexOf[B >: NetezzaRow](elem: B): Int

    Permalink
    Definition Classes
    Iterator
  53. def indexWhere(p: (NetezzaRow) ⇒ Boolean): Int

    Permalink
    Definition Classes
    Iterator
  54. var input: BufferedReader

    Permalink
  55. def isEmpty: Boolean

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  56. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  57. def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  58. var isr: InputStreamReader

    Permalink
  59. def length: Int

    Permalink
    Definition Classes
    Iterator
  60. def map[B](f: (NetezzaRow) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  61. def max[B >: NetezzaRow](implicit cmp: Ordering[B]): NetezzaRow

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def maxBy[B](f: (NetezzaRow) ⇒ B)(implicit cmp: Ordering[B]): NetezzaRow

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def min[B >: NetezzaRow](implicit cmp: Ordering[B]): NetezzaRow

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def minBy[B](f: (NetezzaRow) ⇒ B)(implicit cmp: Ordering[B]): NetezzaRow

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  69. def next(): NetezzaRow

    Permalink
    Definition Classes
    NetezzaDataReader → Iterator
  70. var nextLine: String

    Permalink
  71. var nextRecord: NetezzaRow

    Permalink
  72. def nonEmpty: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  74. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  75. def padTo[A1 >: NetezzaRow](len: Int, elem: A1): Iterator[A1]

    Permalink
    Definition Classes
    Iterator
  76. def partition(p: (NetezzaRow) ⇒ Boolean): (Iterator[NetezzaRow], Iterator[NetezzaRow])

    Permalink
    Definition Classes
    Iterator
  77. def patch[B >: NetezzaRow](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  78. var pipe: File

    Permalink
  79. def product[B >: NetezzaRow](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. val recordParser: NetezzaRecordParser

    Permalink
  81. def reduce[A1 >: NetezzaRow](op: (A1, A1) ⇒ A1): A1

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def reduceLeft[B >: NetezzaRow](op: (B, NetezzaRow) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce
  83. def reduceLeftOption[B >: NetezzaRow](op: (B, NetezzaRow) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  84. def reduceOption[A1 >: NetezzaRow](op: (A1, A1) ⇒ A1): Option[A1]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. def reduceRight[B >: NetezzaRow](op: (NetezzaRow, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  86. def reduceRightOption[B >: NetezzaRow](op: (NetezzaRow, B) ⇒ B): Option[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def reversed: List[NetezzaRow]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  88. def sameElements(that: Iterator[_]): Boolean

    Permalink
    Definition Classes
    Iterator
  89. def scanLeft[B](z: B)(op: (B, NetezzaRow) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  90. def scanRight[B](z: B)(op: (NetezzaRow, B) ⇒ B): Iterator[B]

    Permalink
    Definition Classes
    Iterator
  91. def seq: Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  92. def size: Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def slice(from: Int, until: Int): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  94. def sliding[B >: NetezzaRow](size: Int, step: Int): GroupedIterator[B]

    Permalink
    Definition Classes
    Iterator
  95. def span(p: (NetezzaRow) ⇒ Boolean): (Iterator[NetezzaRow], Iterator[NetezzaRow])

    Permalink
    Definition Classes
    Iterator
  96. def startExternalTableDataUnload(): Unit

    Permalink

    Start the external table executor that unloads the data.

    Start the external table executor that unloads the data. It is necessary to do the setup in separate method instead of class constructor to allow caller to execute close() call in error cases, otherwise job can hang forever.

  97. var stmt: PreparedStatement

    Permalink
  98. def sum[B >: NetezzaRow](implicit num: Numeric[B]): B

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

    Permalink
    Definition Classes
    AnyRef
  100. def take(n: Int): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  101. def takeWhile(p: (NetezzaRow) ⇒ Boolean): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  102. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, NetezzaRow, Col[NetezzaRow]]): Col[NetezzaRow]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def toArray[B >: NetezzaRow](implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toBuffer[B >: NetezzaRow]: Buffer[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def toIndexedSeq: IndexedSeq[NetezzaRow]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toIterable: Iterable[NetezzaRow]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toIterator: Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  108. def toList: List[NetezzaRow]

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def toSeq: Seq[NetezzaRow]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def toSet[B >: NetezzaRow]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toStream: Stream[NetezzaRow]

    Permalink
    Definition Classes
    Iterator → GenTraversableOnce
  113. def toString(): String

    Permalink
    Definition Classes
    Iterator → AnyRef → Any
  114. def toTraversable: Traversable[NetezzaRow]

    Permalink
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  115. def toVector: Vector[NetezzaRow]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  119. def withFilter(p: (NetezzaRow) ⇒ Boolean): Iterator[NetezzaRow]

    Permalink
    Definition Classes
    Iterator
  120. def zip[B](that: Iterator[B]): Iterator[(NetezzaRow, B)]

    Permalink
    Definition Classes
    Iterator
  121. def zipAll[B, A1 >: NetezzaRow, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    Permalink
    Definition Classes
    Iterator
  122. def zipWithIndex: Iterator[(NetezzaRow, Int)]

    Permalink
    Definition Classes
    Iterator

Inherited from Iterator[NetezzaRow]

Inherited from TraversableOnce[NetezzaRow]

Inherited from GenTraversableOnce[NetezzaRow]

Inherited from AnyRef

Inherited from Any

Ungrouped