c

com.spotify.scio.transforms

ScalaAsyncDoFn

abstract class ScalaAsyncDoFn[I, O, R] extends BaseAsyncDoFn[I, O, R, Future[O]] with ScalaFutureHandlers[O]

A DoFn that handles asynchronous requests to an external service that returns Scala Future s.

Source
ScalaAsyncDoFn.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaAsyncDoFn
  2. ScalaFutureHandlers
  3. BaseAsyncDoFn
  4. Base
  5. DoFnWithResource
  6. DoFn
  7. HasDisplayData
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ScalaAsyncDoFn()

Type Members

  1. abstract class FinishBundleContext extends AnyRef
    Definition Classes
    DoFn
  2. abstract class OnTimerContext extends WindowedContext
    Definition Classes
    DoFn
  3. abstract class OnWindowExpirationContext extends WindowedContext
    Definition Classes
    DoFn
  4. abstract class ProcessContext extends WindowedContext
    Definition Classes
    DoFn
  5. abstract class StartBundleContext extends AnyRef
    Definition Classes
    DoFn
  6. abstract class WindowedContext extends AnyRef
    Definition Classes
    DoFn

Abstract Value Members

  1. abstract def createResource(): R

    Create resource.

    Create resource.

    DoFnWithResource#getResourceType() determines how many times this is called.

    Definition Classes
    DoFnWithResource
  2. abstract def getResourceType(): ResourceType

    Get resource type.

    Get resource type.

    Definition Classes
    DoFnWithResource
  3. abstract def processElement(input: I): Future[O]

    Process an element asynchronously.

    Process an element asynchronously.

    Definition Classes
    BaseAsyncDoFn
  4. abstract object FinishBundleContext
    Definition Classes
    DoFn
  5. abstract object ProcessContext
    Definition Classes
    DoFn
  6. abstract object StartBundleContext
    Definition Classes
    DoFn
  7. abstract object WindowedContext
    Definition Classes
    DoFn

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addCallback(future: Future[O], onSuccess: Function[O, Void], onFailure: Function[Throwable, Void]): Future[O]
    Definition Classes
    ScalaFutureHandlers → Base
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def closeResource(resource: R): Unit

    Close resource.

    Close resource.

    Default implementation closes AutoCloseable resource.

    Definition Classes
    DoFnWithResource
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def finishBundle(context: FinishBundleContext): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @FinishBundle()
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getInputTypeDescriptor(): TypeDescriptor[I]
    Definition Classes
    DoFn
  14. def getOutputTypeDescriptor(): TypeDescriptor[O]
    Definition Classes
    DoFn
  15. def getResource(): R

    Get managed resource.

    Get managed resource.

    Definition Classes
    DoFnWithResource
    Annotations
    @SuppressWarnings()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def populateDisplayData(builder: Builder): Unit
    Definition Classes
    DoFnWithResource → DoFn → HasDisplayData
    Annotations
    @Override()
  22. def processElement(element: I, timestamp: Instant, window: BoundedWindow, pane: PaneInfo, out: OutputReceiver[O]): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @ProcessElement()
  23. def setup(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Setup()
  24. def startBundle(context: StartBundleContext): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @StartBundle()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def teardown(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Teardown()
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. def waitForFutures(futures: Iterable[Future[O]]): Unit
    Definition Classes
    ScalaFutureHandlers → Base

Deprecated Value Members

  1. def getAllowedTimestampSkew(): Duration
    Definition Classes
    DoFn
    Annotations
    @Deprecated
    Deprecated
  2. final def prepareForProcessing(): Unit
    Definition Classes
    DoFn
    Annotations
    @Deprecated
    Deprecated
  3. def processElement(input: I, timestamp: Instant, out: OutputReceiver[O], window: BoundedWindow): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @Deprecated
    Deprecated

Inherited from ScalaFutureHandlers[O]

Inherited from BaseAsyncDoFn[I, O, R, Future[O]]

Inherited from Base[Future[O], O]

Inherited from DoFnWithResource[I, O, R]

Inherited from DoFn[I, O]

Inherited from HasDisplayData

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped