c

com.spotify.scio.transforms

GuavaAsyncBatchLookupDoFn

abstract class GuavaAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType] extends BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType, ListenableFuture[BatchResponse], Try[Output]] with Guava[BatchResponse]

Source
GuavaAsyncBatchLookupDoFn.java
Linear Supertypes
Guava[BatchResponse], BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType, ListenableFuture[BatchResponse], Try[Output]], Base[ListenableFuture[BatchResponse], BatchResponse], DoFnWithResource[Input, KV[Input, Try[Output]], Pair[ClientType, Cache[String, Output]]], DoFn[Input, KV[Input, Try[Output]]], HasDisplayData, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GuavaAsyncBatchLookupDoFn
  2. Guava
  3. BaseAsyncBatchLookupDoFn
  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 GuavaAsyncBatchLookupDoFn(batchSize: Int, batchRequestFn: SerializableFunction[List[Input], BatchRequest], batchResponseFn: SerializableFunction[BatchResponse, List[Pair[String, Output]]], idExtractorFn: SerializableFunction[Input, String], maxPendingRequests: Int, cacheSupplier: CacheSupplier[String, Output])
  2. new GuavaAsyncBatchLookupDoFn(batchSize: Int, batchRequestFn: SerializableFunction[List[Input], BatchRequest], batchResponseFn: SerializableFunction[BatchResponse, List[Pair[String, Output]]], idExtractorFn: SerializableFunction[Input, String], maxPendingRequests: Int)

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 asyncLookup(client: ClientType, input: BatchRequest): ListenableFuture[BatchResponse]
    Definition Classes
    BaseAsyncBatchLookupDoFn
  2. abstract def getResourceType(): ResourceType

    Get resource type.

    Get resource type.

    Definition Classes
    DoFnWithResource
  3. abstract def newClient(): ClientType
    Attributes
    protected[transforms]
    Definition Classes
    BaseAsyncBatchLookupDoFn
  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[BatchResponse], onSuccess: Function[BatchResponse, Void], onFailure: Function[Throwable, Void]): ListenableFuture[BatchResponse]
    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: Pair[ClientType, Cache[String, Output]]): Unit

    Close resource.

    Close resource.

    Default implementation closes AutoCloseable resource.

    Definition Classes
    BaseAsyncBatchLookupDoFnDoFnWithResource
    Annotations
    @Override()
  8. def createResource(): Pair[ClientType, Cache[String, Output]]

    Create resource.

    Create resource.

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

    Definition Classes
    BaseAsyncBatchLookupDoFnDoFnWithResource
    Annotations
    @Override()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def failure(throwable: Throwable): Try[Output]
    Definition Classes
    GuavaAsyncBatchLookupDoFnBaseAsyncBatchLookupDoFn
    Annotations
    @Override()
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def finishBundle(context: FinishBundleContext): Unit
    Definition Classes
    BaseAsyncBatchLookupDoFn
    Annotations
    @FinishBundle()
  14. 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
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getInputTypeDescriptor(): TypeDescriptor[Input]
    Definition Classes
    DoFn
  17. def getOutputTypeDescriptor(): TypeDescriptor[KV[Input, Try[Output]]]
    Definition Classes
    DoFn
  18. def getResource(): Pair[ClientType, Cache[String, Output]]

    Get managed resource.

    Get managed resource.

    Definition Classes
    DoFnWithResource
    Annotations
    @SuppressWarnings()
  19. def getResourceCache(): Cache[String, Output]
    Definition Classes
    BaseAsyncBatchLookupDoFn
  20. def getResourceClient(): ClientType
    Definition Classes
    BaseAsyncBatchLookupDoFn
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def populateDisplayData(builder: Builder): Unit
    Definition Classes
    DoFnWithResource → DoFn → HasDisplayData
    Annotations
    @Override()
  27. def processElement(input: Input, timestamp: Instant, out: OutputReceiver[KV[Input, Try[Output]]], window: BoundedWindow): Unit
    Definition Classes
    BaseAsyncBatchLookupDoFn
    Annotations
    @ProcessElement()
  28. def setup(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Setup()
  29. def startBundle(context: StartBundleContext): Unit
    Definition Classes
    BaseAsyncBatchLookupDoFn
    Annotations
    @StartBundle()
  30. def success(output: Output): Try[Output]
    Definition Classes
    GuavaAsyncBatchLookupDoFnBaseAsyncBatchLookupDoFn
    Annotations
    @Override()
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def teardown(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Teardown()
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. def waitForFutures(futures: Iterable[ListenableFuture[BatchResponse]]): 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

Inherited from Guava[BatchResponse]

Inherited from BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType, ListenableFuture[BatchResponse], Try[Output]]

Inherited from Base[ListenableFuture[BatchResponse], BatchResponse]

Inherited from DoFnWithResource[Input, KV[Input, Try[Output]], Pair[ClientType, Cache[String, Output]]]

Inherited from DoFn[Input, KV[Input, Try[Output]]]

Inherited from HasDisplayData

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped