package transforms
- Alphabetic
- By Inheritance
- transforms
- AllSyntax
- SCollectionSafeSyntax
- SCollectionPipeSyntax
- SCollectionParallelismSyntax
- SCollectionFileDownloadSyntax
- SCollectionWithResourceSyntax
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType, FutureType, TryWrapper] extends DoFnWithResource[Input, KV[Input, TryWrapper], Pair[ClientType, Cache[String, Output]]] with Base[FutureType, BatchResponse]
A
DoFn
that performs asynchronous lookup using the provided client.A
DoFn
that performs asynchronous lookup using the provided client. Lookup requests may be deduplicated. - abstract class BaseAsyncDoFn[Input, Output, Resource, Future] extends DoFnWithResource[Input, Output, Resource] with Base[Future, Output]
A
DoFn
that handles asynchronous requests to an external service. - abstract class BaseAsyncLookupDoFn[Input, Output, Client, Future, TryWrapper] extends DoFnWithResource[Input, KV[Input, TryWrapper], Pair[Client, Cache[Input, Output]]] with Base[Future, Output]
A
DoFn
that performs asynchronous lookup using the provided client.A
DoFn
that performs asynchronous lookup using the provided client. Lookup requests may be deduplicated. - class BatchDoFn[InputT] extends DoFn[InputT, Iterable[InputT]]
Batches input into a desired batch size.
Batches input into a desired batch size.
Elements are buffered until there are enough elements for a batch, at which point they are emitted to the output PCollection
Windows are preserved (batches contain elements from the same window). Batches are not spanning over bundles. Once a bundle is finished, the batch is emitted even if not full. This function can only batch 10 parallel windows. If new element comes from an 11th window, the bigger batch will be emitted to give room for this new element.
- class CollectFnWithResource[T, U, R] extends DoFnWithResource[T, U, R]
- abstract class DoFnWithResource[InputT, OutputT, ResourceT] extends DoFn[InputT, OutputT]
A
DoFn
that manages an external resource. - class FileDownloadDoFn[OutputT] extends DoFn[URI, OutputT]
A
DoFn
that downloadsURI
elements and processes them as localPath
s. - class FilterFnWithResource[T, R] extends DoFnWithResource[T, T, R]
- class FlatMapFnWithResource[T, U, R] extends DoFnWithResource[T, U, R]
- class FutureHandlers extends AnyRef
Utility to abstract away Guava, Java 8 and Scala future handling.
- abstract class GuavaAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType] extends BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType, ListenableFuture[BatchResponse], Try[Output]] with Guava[BatchResponse]
- 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 GuavaListenableFuture
s. - abstract class GuavaAsyncLookupDoFn[A, B, C] extends BaseAsyncLookupDoFn[A, B, C, ListenableFuture[B], Try[B]] with Guava[B]
A
DoFn
that performs asynchronous lookup using the provided client for GuavaListenableFuture
. - abstract class JavaAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType] extends BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, ClientType, CompletableFuture[BatchResponse], Try[Output]] with Java[BatchResponse]
- abstract class JavaAsyncDoFn[InputT, OutputT, ResourceT] extends BaseAsyncDoFn[InputT, OutputT, ResourceT, CompletableFuture[OutputT]] with Java[OutputT]
A
DoFn
that handles asynchronous requests to an external service that returns Java 8CompletableFuture
s. - abstract class JavaAsyncLookupDoFn[A, B, C] extends BaseAsyncLookupDoFn[A, B, C, CompletableFuture[B], Try[B]] with Java[B]
A
DoFn
that performs asynchronous lookup using the provided client for Java 8CompletableFuture
. - class MapFnWithResource[T, U, R] extends DoFnWithResource[T, U, R]
- class ParallelCollectFn[T, U] extends ParallelLimitedFn[T, U]
- class ParallelFilterFn[T] extends ParallelLimitedFn[T, T]
- class ParallelFlatMapFn[T, U] extends ParallelLimitedFn[T, U]
- class ParallelMapFn[T, U] extends ParallelLimitedFn[T, U]
- class PipeDoFn extends DoFn[String, String]
A
DoFn
that pipes elements through an external command via StdIn & StdOut. - class RateLimiterDoFn[InputT] extends DoFnWithResource[InputT, InputT, RateLimiter]
DoFn which will rate limit the number of elements processed per second.
DoFn which will rate limit the number of elements processed per second.
Used to rate limit throughput for a job writing to a database or making calls to external services. The limit is applied per worker and should be used with a fixed/max num workers. Having RateLimiterDoFn(1000) and 20 workers means your total rate will be 20000.
- abstract class ScalaAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, Client] extends BaseAsyncBatchLookupDoFn[Input, BatchRequest, BatchResponse, Output, Client, Future[BatchResponse], Try[Output]] with ScalaFutureHandlers[BatchResponse]
A DoFn that performs asynchronous lookup using the provided client for Scala Future.
A DoFn that performs asynchronous lookup using the provided client for Scala Future.
- Input
input element type.
- BatchRequest
batched input element type
- BatchResponse
batched output element type
- Output
client lookup value type.
- Client
client type.
- 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.
- abstract class ScalaAsyncLookupDoFn[Input, Output, Client] extends BaseAsyncLookupDoFn[Input, Output, Client, Future[Output], Try[Output]] with ScalaFutureHandlers[Output]
A DoFn that performs asynchronous lookup using the provided client for Scala Future.
A DoFn that performs asynchronous lookup using the provided client for Scala Future.
- Input
input element type.
- Output
client lookup value type.
- Client
client type.
- trait ScalaFutureHandlers[T] extends Base[Future[T], T]
A FutureHandlers.Base implementation for Scala Future.
- class UnmatchedRequestException extends RuntimeException
- implicit class FileDownloadSCollection extends AnyRef
Enhanced version of SCollection with URI methods.
Enhanced version of SCollection with URI methods.
- Definition Classes
- SCollectionFileDownloadSyntax
- implicit class CustomParallelismSCollection[T] extends AnyRef
Enhanced version of SCollection with custom parallelism, where
parallelism
is the number of concurrentDoFn
threads per worker (default to number of CPU cores).Enhanced version of SCollection with custom parallelism, where
parallelism
is the number of concurrentDoFn
threads per worker (default to number of CPU cores).- Definition Classes
- SCollectionParallelismSyntax
- implicit class PipeSCollection extends AnyRef
Enhanced version of SCollection with pipe methods.
Enhanced version of SCollection with pipe methods.
- Definition Classes
- SCollectionPipeSyntax
- implicit class SafeFlatMapSCollection[T] extends AnyRef
Enhanced version of SCollection with specialized versions of flatMap.
Enhanced version of SCollection with specialized versions of flatMap.
- Definition Classes
- SCollectionSafeSyntax
- implicit class SCollectionWithResourceFunctions[T] extends AnyRef
- Definition Classes
- SCollectionWithResourceSyntax
Value Members
- object JavaAsyncConverters
- object ScalaAsyncBatchLookupDoFn extends Serializable