Packages

abstract class BigtableDoFn[A, B] extends GuavaAsyncLookupDoFn[A, B, BigtableSession]

A DoFn that performs asynchronous lookup using Google Cloud Bigtable.

Source
BigtableDoFn.java
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BigtableDoFn
  2. GuavaAsyncLookupDoFn
  3. Guava
  4. BaseAsyncLookupDoFn
  5. Base
  6. DoFnWithResource
  7. DoFn
  8. HasDisplayData
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BigtableDoFn(options: BigtableOptions, maxPendingRequests: Int, deduplicate: Boolean, cacheSupplier: CacheSupplier[A, B])

    Create a BigtableDoFn instance.

    Create a BigtableDoFn instance.

    options

    Bigtable options.

    maxPendingRequests

    maximum number of pending requests on every cloned DoFn. This prevents runner from timing out and retrying bundles.

    deduplicate

    if an attempt should be made to de-duplicate simultaneous requests for the same input

    cacheSupplier

    supplier for lookup cache.

  2. new BigtableDoFn(options: BigtableOptions, maxPendingRequests: Int, cacheSupplier: CacheSupplier[A, B])

    Create a BigtableDoFn instance.

    Create a BigtableDoFn instance.

    options

    Bigtable options.

    maxPendingRequests

    maximum number of pending requests on every cloned DoFn. This prevents runner from timing out and retrying bundles.

    cacheSupplier

    supplier for lookup cache.

  3. new BigtableDoFn(options: BigtableOptions, maxPendingRequests: Int)

    Create a BigtableDoFn instance.

    Create a BigtableDoFn instance.

    options

    Bigtable options.

    maxPendingRequests

    maximum number of pending requests on every cloned DoFn. This prevents runner from timing out and retrying bundles.

  4. new BigtableDoFn(options: BigtableOptions)

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(session: BigtableSession, input: A): ListenableFuture[B]

    Perform asynchronous Bigtable lookup.

    Perform asynchronous Bigtable lookup.

    Definition Classes
    BigtableDoFnBaseAsyncLookupDoFn
  2. abstract object FinishBundleContext
    Definition Classes
    DoFn
  3. abstract object ProcessContext
    Definition Classes
    DoFn
  4. abstract object StartBundleContext
    Definition Classes
    DoFn
  5. 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[B], onSuccess: Function[B, Void], onFailure: Function[Throwable, Void]): ListenableFuture[B]
    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[BigtableSession, Cache[A, B]]): Unit

    Close resource.

    Close resource.

    Default implementation closes AutoCloseable resource.

    Definition Classes
    BaseAsyncLookupDoFnDoFnWithResource
    Annotations
    @Override()
  8. def createResource(): Pair[BigtableSession, Cache[A, B]]

    Create resource.

    Create resource.

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

    Definition Classes
    BaseAsyncLookupDoFnDoFnWithResource
    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[B]

    Wrap output in a failed Try.

    Wrap output in a failed Try.

    Definition Classes
    GuavaAsyncLookupDoFnBaseAsyncLookupDoFn
    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
    BaseAsyncLookupDoFn
    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[A]
    Definition Classes
    DoFn
  17. def getOutputTypeDescriptor(): TypeDescriptor[KV[A, Try[B]]]
    Definition Classes
    DoFn
  18. def getResource(): Pair[BigtableSession, Cache[A, B]]

    Get managed resource.

    Get managed resource.

    Definition Classes
    DoFnWithResource
    Annotations
    @SuppressWarnings()
  19. def getResourceCache(): Cache[A, B]
    Definition Classes
    BaseAsyncLookupDoFn
  20. def getResourceClient(): BigtableSession
    Definition Classes
    BaseAsyncLookupDoFn
  21. def getResourceType(): ResourceType

    Get resource type.

    Get resource type.

    Definition Classes
    BigtableDoFnDoFnWithResource
    Annotations
    @Override()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def newClient(): BigtableSession

    Creates the client.

    Creates the client.

    Attributes
    protected[bigtable]
    Definition Classes
    BigtableDoFnBaseAsyncLookupDoFn
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def populateDisplayData(builder: Builder): Unit
    Definition Classes
    DoFnWithResource → DoFn → HasDisplayData
    Annotations
    @Override()
  29. def processElement(input: A, timestamp: Instant, window: BoundedWindow, pane: PaneInfo, out: OutputReceiver[KV[A, Try[B]]]): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @SuppressWarnings() @ProcessElement()
  30. def setup(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Setup()
  31. def startBundle(context: StartBundleContext): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @StartBundle()
  32. def success(output: B): Try[B]

    Wrap output in a successful Try.

    Wrap output in a successful Try.

    Definition Classes
    GuavaAsyncLookupDoFnBaseAsyncLookupDoFn
    Annotations
    @Override()
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def teardown(): Unit
    Definition Classes
    DoFnWithResource
    Annotations
    @Teardown()
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. def waitForFutures(futures: Iterable[ListenableFuture[B]]): 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: A, timestamp: Instant, out: OutputReceiver[KV[A, Try[B]]], window: BoundedWindow): Unit
    Definition Classes
    BaseAsyncLookupDoFn
    Annotations
    @Deprecated
    Deprecated

Inherited from Guava[B]

Inherited from BaseAsyncLookupDoFn[A, B, BigtableSession, ListenableFuture[B], Try[B]]

Inherited from Base[ListenableFuture[B], B]

Inherited from DoFnWithResource[A, KV[A, Try[B]], Pair[BigtableSession, Cache[A, B]]]

Inherited from DoFn[A, KV[A, Try[B]]]

Inherited from HasDisplayData

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped