c

com.spotify.scio.transforms

GuavaAsyncDoFn

abstract class GuavaAsyncDoFn[InputT, OutputT, ResourceT] extends BaseAsyncDoFn[InputT, OutputT, ResourceT, ListenableFuture[OutputT]] with Guava[OutputT]

A DoFn that handles asynchronous requests to an external service that returns Guava ListenableFutures.

Source
GuavaAsyncDoFn.java
Linear Supertypes
Guava[OutputT], BaseAsyncDoFn[InputT, OutputT, ResourceT, ListenableFuture[OutputT]], Base[ListenableFuture[OutputT], OutputT], DoFnWithResource[InputT, OutputT, ResourceT], DoFn[InputT, OutputT], HasDisplayData, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GuavaAsyncDoFn
  2. Guava
  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 GuavaAsyncDoFn()

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(): ResourceT

    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: InputT): ListenableFuture[OutputT]

    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: ListenableFuture[OutputT], onSuccess: Function[OutputT, Void], onFailure: Function[Throwable, Void]): ListenableFuture[OutputT]
    Definition Classes
    Guava → Base
    Annotations
    @Override()
  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: ResourceT): 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. def getCallbackExecutor(): Executor

    Executor used for callbacks.

    Executor used for callbacks. Default is ForkJoinPool#commonPool(). Consider overriding this method if callbacks are blocking.

    returns

    Executor for callbacks.

    Definition Classes
    Guava
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getInputTypeDescriptor(): TypeDescriptor[InputT]
    Definition Classes
    DoFn
  15. def getOutputTypeDescriptor(): TypeDescriptor[OutputT]
    Definition Classes
    DoFn
  16. def getResource(): ResourceT

    Get managed resource.

    Get managed resource.

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

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: InputT, timestamp: Instant, out: OutputReceiver[OutputT], window: BoundedWindow): Unit
    Definition Classes
    BaseAsyncDoFn
    Annotations
    @Deprecated
    Deprecated

Inherited from Guava[OutputT]

Inherited from BaseAsyncDoFn[InputT, OutputT, ResourceT, ListenableFuture[OutputT]]

Inherited from Base[ListenableFuture[OutputT], OutputT]

Inherited from DoFnWithResource[InputT, OutputT, ResourceT]

Inherited from DoFn[InputT, OutputT]

Inherited from HasDisplayData

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped