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 or INVALID_HANDLE.SESSION_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, retryHandler: GrpcRetryHandler)

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator
  2. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

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. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  6. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  8. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def asJava: Iterator[ExecutePlanResponse]
    Definition Classes
    CloseableIterator
  11. def buffered: BufferedIterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  13. def close(): Unit
    Definition Classes
    ExecutePlanResponseReattachableIterator → WrappedCloseableIterator → AutoCloseable
  14. def collect[B](pf: PartialFunction[ExecutePlanResponse, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  15. def collectFirst[B](pf: PartialFunction[ExecutePlanResponse, B]): Option[B]
    Definition Classes
    IterableOnceOps
  16. def concat[B >: ExecutePlanResponse](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  17. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  18. def copyToArray[B >: ExecutePlanResponse](dest: Array[B], start: Int, n: Int): Int
    Definition Classes
    IterableOnceOps
  19. def copyToArray[B >: ExecutePlanResponse](dest: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  20. def copyToArray[B >: ExecutePlanResponse](dest: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  21. def corresponds[B](that: IterableOnce[B])(p: (ExecutePlanResponse, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  22. def count(p: (ExecutePlanResponse) => Boolean): Int
    Definition Classes
    IterableOnceOps
  23. def distinct: Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  24. def distinctBy[B](f: (ExecutePlanResponse) => B): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  25. def drop(n: Int): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  26. def dropWhile(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  27. def duplicate: (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    Iterator
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def exists(p: (ExecutePlanResponse) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  31. def filter(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  32. def filterNot(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  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
    @IntrinsicCandidate() @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
    @IntrinsicCandidate() @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 logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  60. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  61. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  62. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  63. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  64. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  65. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  66. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  71. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  72. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  73. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  74. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  75. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  76. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  77. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  78. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  79. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  80. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  81. def map[B](f: (ExecutePlanResponse) => B): CloseableIterator[B]
    Definition Classes
    CloseableIterator → Iterator → IterableOnceOps
  82. def max[B >: ExecutePlanResponse](implicit ord: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  83. def maxBy[B](f: (ExecutePlanResponse) => B)(implicit ord: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  84. def maxByOption[B](f: (ExecutePlanResponse) => B)(implicit ord: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  85. def maxOption[B >: ExecutePlanResponse](implicit ord: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  86. def min[B >: ExecutePlanResponse](implicit ord: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  87. def minBy[B](f: (ExecutePlanResponse) => B)(implicit ord: Ordering[B]): ExecutePlanResponse
    Definition Classes
    IterableOnceOps
  88. def minByOption[B](f: (ExecutePlanResponse) => B)(implicit ord: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  89. def minOption[B >: ExecutePlanResponse](implicit ord: Ordering[B]): Option[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  90. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  91. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  92. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  93. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  94. def next(): ExecutePlanResponse
    Definition Classes
    ExecutePlanResponseReattachableIterator → WrappedCloseableIterator → Iterator
  95. def nextOption(): Option[ExecutePlanResponse]
    Definition Classes
    Iterator
  96. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  97. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  98. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  99. val operationId: String
  100. def padTo[B >: ExecutePlanResponse](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  101. def partition(p: (ExecutePlanResponse) => Boolean): (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    Iterator
  102. def patch[B >: ExecutePlanResponse](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  103. def product[B >: ExecutePlanResponse](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  104. def reduce[B >: ExecutePlanResponse](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  105. def reduceLeft[B >: ExecutePlanResponse](op: (B, ExecutePlanResponse) => B): B
    Definition Classes
    IterableOnceOps
  106. def reduceLeftOption[B >: ExecutePlanResponse](op: (B, ExecutePlanResponse) => B): Option[B]
    Definition Classes
    IterableOnceOps
  107. def reduceOption[B >: ExecutePlanResponse](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  108. def reduceRight[B >: ExecutePlanResponse](op: (ExecutePlanResponse, B) => B): B
    Definition Classes
    IterableOnceOps
  109. def reduceRightOption[B >: ExecutePlanResponse](op: (ExecutePlanResponse, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  110. def reversed: Iterable[ExecutePlanResponse]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  111. def sameElements[B >: ExecutePlanResponse](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  112. def scanLeft[B](z: B)(op: (B, ExecutePlanResponse) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  113. def size: Int
    Definition Classes
    IterableOnceOps
  114. def slice(from: Int, until: Int): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  115. def sliceIterator(from: Int, until: Int): Iterator[ExecutePlanResponse]
    Attributes
    protected
    Definition Classes
    Iterator
  116. def sliding[B >: ExecutePlanResponse](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  117. def span(p: (ExecutePlanResponse) => Boolean): (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    Iterator → IterableOnceOps
  118. def splitAt(n: Int): (Iterator[ExecutePlanResponse], Iterator[ExecutePlanResponse])
    Definition Classes
    IterableOnceOps
  119. def stepper[S <: Stepper[_]](implicit shape: StepperShape[ExecutePlanResponse, S]): S
    Definition Classes
    IterableOnce
  120. def sum[B >: ExecutePlanResponse](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  121. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  122. def take(n: Int): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  123. def takeWhile(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  124. def tapEach[U](f: (ExecutePlanResponse) => U): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator → IterableOnceOps
  125. def to[C1](factory: Factory[ExecutePlanResponse, C1]): C1
    Definition Classes
    IterableOnceOps
  126. def toArray[B >: ExecutePlanResponse](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  127. final def toBuffer[B >: ExecutePlanResponse]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  128. def toIndexedSeq: IndexedSeq[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  129. def toList: List[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  130. def toMap[K, V](implicit ev: <:<[ExecutePlanResponse, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  131. def toSeq: Seq[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  132. def toSet[B >: ExecutePlanResponse]: Set[B]
    Definition Classes
    IterableOnceOps
  133. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  134. def toVector: Vector[ExecutePlanResponse]
    Definition Classes
    IterableOnceOps
  135. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  136. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  137. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  138. def withFilter(p: (ExecutePlanResponse) => Boolean): Iterator[ExecutePlanResponse]
    Definition Classes
    Iterator
  139. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging
  140. def zip[B](that: IterableOnce[B]): Iterator[(ExecutePlanResponse, B)]
    Definition Classes
    Iterator
  141. def zipAll[A1 >: ExecutePlanResponse, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  142. 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) For sequential collections, prefer foldLeft(z)(seqop). For parallel collections, use ParIterableLike#aggregate.

  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. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  6. 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

  7. 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.

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

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

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

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

  10. 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