Packages

c

org.apache.spark.sql.connect.client

ExecutePlanResponseReattachableIterator

class ExecutePlanResponseReattachableIterator extends WrappedCloseableIterator[ExecutePlanResponse] with Logging

Retryable iterator of ExecutePlanResponses to an ExecutePlan call.

It can handle situations when:

  • the ExecutePlanResponse stream was broken by retryable network error (governed by retryPolicy)
  • the ExecutePlanResponse was gracefully ended by the server without a ResultComplete message; this tells the client that there is more, and it should reattach to continue.

Initial iterator is the result of an ExecutePlan on the request, but it can be reattached with ReattachExecute request. ReattachExecute request is provided the responseId of last returned ExecutePlanResponse on the iterator to return a new iterator from server that continues after that. If the initial ExecutePlan did not even reach the server, and hence reattach fails with INVALID_HANDLE.OPERATION_NOT_FOUND, we attempt to retry ExecutePlan.

In reattachable execute the server does buffer some responses in case the client needs to backtrack. To let server release this buffer sooner, this iterator asynchronously sends ReleaseExecute RPCs that instruct the server to release responses that it already processed.

Linear Supertypes
Logging, WrappedCloseableIterator[ExecutePlanResponse], CloseableIterator[ExecutePlanResponse], AutoCloseable, Iterator[ExecutePlanResponse], IterableOnceOps[ExecutePlanResponse, Iterator, Iterator[ExecutePlanResponse]], IterableOnce[ExecutePlanResponse], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutePlanResponseReattachableIterator
  2. Logging
  3. WrappedCloseableIterator
  4. CloseableIterator
  5. AutoCloseable
  6. Iterator
  7. IterableOnceOps
  8. IterableOnce
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ExecutePlanResponseReattachableIterator(request: ExecutePlanRequest, channel: ManagedChannel, retryPolicy: RetryPolicy)

Type Members

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: ExecutePlanResponse](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def addString(b: StringBuilder): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  6. final def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    IterableOnceOps
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def asJava: Iterator[ExecutePlanResponse]
    Definition Classes
    CloseableIterator
  10. def buffered: BufferedIterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def close(): Unit
    Definition Classes
    ExecutePlanResponseReattachableIterator → WrappedCloseableIterator → AutoCloseable
  13. def collect[B](pf: PartialFunction[ExecutePlanResponse, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  14. def collectFirst[B](pf: PartialFunction[ExecutePlanResponse, B]): Option[B]
    Definition Classes
    IterableOnceOps
  15. def concat[B >: ExecutePlanResponse](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  16. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  17. def copyToArray[B >: ExecutePlanResponse](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  18. def copyToArray[B >: ExecutePlanResponse](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  19. def copyToArray[B >: ExecutePlanResponse](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  20. def corresponds[B](that: IterableOnce[B])(p: (ExecutePlanResponse, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  21. def count(p: (ExecutePlanResponse) => Boolean): Int
    Definition Classes
    IterableOnceOps
  22. def distinct: Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  23. def distinctBy[B](f: (ExecutePlanResponse) => B): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  24. def drop(n: Int): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  25. def dropWhile(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  26. def duplicate: (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    Iterator
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def exists(p: (ExecutePlanResponse) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  30. def filter(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  31. def filterNot(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  32. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  33. def find(p: (ExecutePlanResponse) => Boolean): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  34. def flatMap[B](f: (ExecutePlanResponse) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  35. def flatten[B](implicit ev: (ExecutePlanResponse) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  36. def fold[A1 >: ExecutePlanResponse](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  37. def foldLeft[B](z: B)(op: (B, ExecutePlanResponse) => B): B
    Definition Classes
    IterableOnceOps
  38. def foldRight[B](z: B)(op: (ExecutePlanResponse, B) => B): B
    Definition Classes
    IterableOnceOps
  39. def forall(p: (ExecutePlanResponse) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  40. def foreach[U](f: (ExecutePlanResponse) => U): Unit
    Definition Classes
    IterableOnceOps
  41. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  42. def grouped[B >: ExecutePlanResponse](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  43. def hasNext(): Boolean
    Definition Classes
    ExecutePlanResponseReattachableIterator → WrappedCloseableIterator → Iterator
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  45. def indexOf[B >: ExecutePlanResponse](elem: B, from: Int): Int
    Definition Classes
    Iterator
  46. def indexOf[B >: ExecutePlanResponse](elem: B): Int
    Definition Classes
    Iterator
  47. def indexWhere(p: (ExecutePlanResponse) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  48. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  49. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def innerIterator: Iterator[ExecutePlanResponse]
    Definition Classes
    ExecutePlanResponseReattachableIterator → WrappedCloseableIterator
  51. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  54. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  55. final def iterator: Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  56. def knownSize: Int
    Definition Classes
    IterableOnce
  57. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  58. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  59. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  60. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  61. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  62. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  63. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  64. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  65. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  66. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def map[B](f: (ExecutePlanResponse) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  71. def max[B >: ExecutePlanResponse](implicit ord: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  72. def maxBy[B](f: (ExecutePlanResponse) => B)(implicit cmp: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  73. def maxByOption[B](f: (ExecutePlanResponse) => B)(implicit cmp: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  74. def maxOption[B >: ExecutePlanResponse](implicit ord: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  75. def min[B >: ExecutePlanResponse](implicit ord: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  76. def minBy[B](f: (ExecutePlanResponse) => B)(implicit cmp: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  77. def minByOption[B](f: (ExecutePlanResponse) => B)(implicit cmp: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  78. def minOption[B >: ExecutePlanResponse](implicit ord: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  79. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  80. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  81. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  82. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  83. def next(): ExecutePlanResponse
    Definition Classes
    ExecutePlanResponseReattachableIterator → WrappedCloseableIterator → Iterator
  84. def nextOption(): Option[ExecutePlanResponse]
    Definition Classes
    Iterator
  85. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  86. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  87. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  88. val operationId: String
  89. def padTo[B >: ExecutePlanResponse](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  90. def partition(p: (ExecutePlanResponse) => Boolean): (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    Iterator
  91. def patch[B >: ExecutePlanResponse](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  92. def product[B >: ExecutePlanResponse](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  93. def reduce[B >: ExecutePlanResponse](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  94. def reduceLeft[B >: ExecutePlanResponse](op: (B, ExecutePlanResponse) => B): B
    Definition Classes
    IterableOnceOps
  95. def reduceLeftOption[B >: ExecutePlanResponse](op: (B, ExecutePlanResponse) => B): Option[B]
    Definition Classes
    IterableOnceOps
  96. def reduceOption[B >: ExecutePlanResponse](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  97. def reduceRight[B >: ExecutePlanResponse](op: (ExecutePlanResponse, B) => B): B
    Definition Classes
    IterableOnceOps
  98. def reduceRightOption[B >: ExecutePlanResponse](op: (ExecutePlanResponse, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  99. def reversed: Iterable[ExecutePlanResponse]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  100. def sameElements[B >: ExecutePlanResponse](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  101. def scanLeft[B](z: B)(op: (B, ExecutePlanResponse) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  102. def size: Int
    Definition Classes
    IterableOnceOps
  103. def slice(from: Int, until: Int): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  104. def sliceIterator(from: Int, until: Int): Iterator[ExecutePlanResponse]
    Attributes
    protected
    Definition Classes
    Iterator
  105. def sliding[B >: ExecutePlanResponse](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  106. def span(p: (ExecutePlanResponse) => Boolean): (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    Iterator → IterableOnceOps
  107. def splitAt(n: Int): (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    IterableOnceOps
  108. def stepper[S <: Stepper[_]](implicit shape: StepperShape[ExecutePlanResponse, S]): S
    Definition Classes
    IterableOnce
  109. def sum[B >: ExecutePlanResponse](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  110. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  111. def take(n: Int): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  112. def takeWhile(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  113. def tapEach[U](f: (ExecutePlanResponse) => U): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  114. def to[C1](factory: Factory[ExecutePlanResponse, C1]): C1
    Definition Classes
    IterableOnceOps
  115. def toArray[B >: ExecutePlanResponse](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  116. final def toBuffer[B >: ExecutePlanResponse]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  117. def toIndexedSeq: IndexedSeq[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  118. def toList: List[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  119. def toMap[K, V](implicit ev: <:<[ExecutePlanResponse, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  120. def toSeq: Seq[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  121. def toSet[B >: ExecutePlanResponse]: Set[B]
    Definition Classes
    IterableOnceOps
  122. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  123. def toVector: Vector[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  124. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  125. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  126. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  127. def withFilter(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  128. def zip[B](that: IterableOnce[B]): Iterator[(ExecutePlanResponse, B)]
    Definition Classes
    Iterator
  129. def zipAll[A1 >: ExecutePlanResponse, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  130. def zipWithIndex: Iterator[(ExecutePlanResponse, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. final def /:[B](z: B)(op: (B, ExecutePlanResponse) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  2. final def :\[B](z: B)(op: (ExecutePlanResponse, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  3. def aggregate[B](z: => B)(seqop: (B, ExecutePlanResponse) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  4. final def copyToBuffer[B >: ExecutePlanResponse](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

  5. final def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty

  6. def scanRight[B](z: B)(op: (ExecutePlanResponse, B) => B): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Call scanRight on an Iterable instead.

  7. def seq: ExecutePlanResponseReattachableIterator.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

  8. final def toIterator: Iterator[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  9. final def toStream: Stream[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

Inherited from Logging

Inherited from WrappedCloseableIterator[ExecutePlanResponse]

Inherited from CloseableIterator[ExecutePlanResponse]

Inherited from AutoCloseable

Inherited from Iterator[ExecutePlanResponse]

Inherited from IterableOnceOps[ExecutePlanResponse, Iterator, Iterator[ExecutePlanResponse]]

Inherited from IterableOnce[ExecutePlanResponse]

Inherited from AnyRef

Inherited from Any

Ungrouped