abstract class BigtableDoFn[A, B] extends GuavaAsyncLookupDoFn[A, B, BigtableSession]
A DoFn
that performs asynchronous lookup using Google Cloud Bigtable.
- Source
- BigtableDoFn.java
- Alphabetic
- By Inheritance
- BigtableDoFn
- GuavaAsyncLookupDoFn
- Guava
- BaseAsyncLookupDoFn
- Base
- DoFnWithResource
- DoFn
- HasDisplayData
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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.
- 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.
- 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.
- new BigtableDoFn(options: BigtableOptions)
Type Members
- abstract class FinishBundleContext extends AnyRef
- Definition Classes
- DoFn
- abstract class OnTimerContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class OnWindowExpirationContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class ProcessContext extends WindowedContext
- Definition Classes
- DoFn
- abstract class StartBundleContext extends AnyRef
- Definition Classes
- DoFn
- abstract class WindowedContext extends AnyRef
- Definition Classes
- DoFn
Abstract Value Members
- abstract def asyncLookup(session: BigtableSession, input: A): ListenableFuture[B]
Perform asynchronous Bigtable lookup.
Perform asynchronous Bigtable lookup.
- Definition Classes
- BigtableDoFn → BaseAsyncLookupDoFn
- abstract object FinishBundleContext
- Definition Classes
- DoFn
- abstract object ProcessContext
- Definition Classes
- DoFn
- abstract object StartBundleContext
- Definition Classes
- DoFn
- abstract object WindowedContext
- Definition Classes
- DoFn
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addCallback(future: ListenableFuture[B], onSuccess: Function[B, Void], onFailure: Function[Throwable, Void]): ListenableFuture[B]
- Definition Classes
- Guava → Base
- Annotations
- @Override()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closeResource(resource: Pair[BigtableSession, Cache[A, B]]): Unit
Close resource.
Close resource.
Default implementation closes
AutoCloseable
resource.- Definition Classes
- BaseAsyncLookupDoFn → DoFnWithResource
- Annotations
- @Override()
- def createResource(): Pair[BigtableSession, Cache[A, B]]
Create resource.
Create resource.
DoFnWithResource#getResourceType()
determines how many times this is called.- Definition Classes
- BaseAsyncLookupDoFn → DoFnWithResource
- Annotations
- @Override()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failure(throwable: Throwable): Try[B]
Wrap output in a failed Try.
Wrap output in a failed Try.
- Definition Classes
- GuavaAsyncLookupDoFn → BaseAsyncLookupDoFn
- Annotations
- @Override()
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finishBundle(context: FinishBundleContext): Unit
- Definition Classes
- BaseAsyncLookupDoFn
- Annotations
- @FinishBundle()
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInputTypeDescriptor(): TypeDescriptor[A]
- Definition Classes
- DoFn
- def getOutputTypeDescriptor(): TypeDescriptor[KV[A, Try[B]]]
- Definition Classes
- DoFn
- def getResource(): Pair[BigtableSession, Cache[A, B]]
Get managed resource.
Get managed resource.
- Definition Classes
- DoFnWithResource
- Annotations
- @SuppressWarnings()
- def getResourceCache(): Cache[A, B]
- Definition Classes
- BaseAsyncLookupDoFn
- def getResourceClient(): BigtableSession
- Definition Classes
- BaseAsyncLookupDoFn
- def getResourceType(): ResourceType
Get resource type.
Get resource type.
- Definition Classes
- BigtableDoFn → DoFnWithResource
- Annotations
- @Override()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newClient(): BigtableSession
Creates the client.
Creates the client.
- Attributes
- protected[bigtable]
- Definition Classes
- BigtableDoFn → BaseAsyncLookupDoFn
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def populateDisplayData(builder: Builder): Unit
- Definition Classes
- DoFnWithResource → DoFn → HasDisplayData
- Annotations
- @Override()
- def processElement(input: A, timestamp: Instant, window: BoundedWindow, pane: PaneInfo, out: OutputReceiver[KV[A, Try[B]]]): Unit
- Definition Classes
- BaseAsyncLookupDoFn
- Annotations
- @SuppressWarnings() @ProcessElement()
- def setup(): Unit
- Definition Classes
- DoFnWithResource
- Annotations
- @Setup()
- def startBundle(context: StartBundleContext): Unit
- Definition Classes
- BaseAsyncLookupDoFn
- Annotations
- @StartBundle()
- def success(output: B): Try[B]
Wrap output in a successful Try.
Wrap output in a successful Try.
- Definition Classes
- GuavaAsyncLookupDoFn → BaseAsyncLookupDoFn
- Annotations
- @Override()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def teardown(): Unit
- Definition Classes
- DoFnWithResource
- Annotations
- @Teardown()
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def waitForFutures(futures: Iterable[ListenableFuture[B]]): Unit
- Definition Classes
- Guava → Base
- Annotations
- @Override()
Deprecated Value Members
- def getAllowedTimestampSkew(): Duration
- Definition Classes
- DoFn
- Annotations
- @Deprecated
- Deprecated
- final def prepareForProcessing(): Unit
- Definition Classes
- DoFn
- Annotations
- @Deprecated
- Deprecated
- def processElement(input: A, timestamp: Instant, out: OutputReceiver[KV[A, Try[B]]], window: BoundedWindow): Unit
- Definition Classes
- BaseAsyncLookupDoFn
- Annotations
- @Deprecated
- Deprecated