public class DynamicFileDestinations
extends java.lang.Object
FileBasedSink.DynamicDestinations
.Constructor and Description |
---|
DynamicFileDestinations() |
Modifier and Type | Method and Description |
---|---|
static <UserT> FileBasedSink.DynamicDestinations<UserT,java.lang.Void,UserT> |
constant(FileBasedSink.FilenamePolicy filenamePolicy)
A specialization of
#constant(FilenamePolicy, SerializableFunction) for the case where
UserT and OutputT are the same type and the format function is the identity. |
static <UserT,OutputT> |
constant(FileBasedSink.FilenamePolicy filenamePolicy,
SerializableFunction<UserT,OutputT> formatFunction)
Returns a
FileBasedSink.DynamicDestinations that always returns the same FileBasedSink.FilenamePolicy . |
static <UserT,OutputT> |
toDefaultPolicies(SerializableFunction<UserT,DefaultFilenamePolicy.Params> destinationFunction,
DefaultFilenamePolicy.Params emptyDestination,
SerializableFunction<UserT,OutputT> formatFunction)
Returns a
FileBasedSink.DynamicDestinations that returns instances of DefaultFilenamePolicy
configured with the given DefaultFilenamePolicy.Params . |
public static <UserT,OutputT> FileBasedSink.DynamicDestinations<UserT,java.lang.Void,OutputT> constant(FileBasedSink.FilenamePolicy filenamePolicy, SerializableFunction<UserT,OutputT> formatFunction)
FileBasedSink.DynamicDestinations
that always returns the same FileBasedSink.FilenamePolicy
.public static <UserT> FileBasedSink.DynamicDestinations<UserT,java.lang.Void,UserT> constant(FileBasedSink.FilenamePolicy filenamePolicy)
#constant(FilenamePolicy, SerializableFunction)
for the case where
UserT and OutputT are the same type and the format function is the identity.public static <UserT,OutputT> FileBasedSink.DynamicDestinations<UserT,DefaultFilenamePolicy.Params,OutputT> toDefaultPolicies(SerializableFunction<UserT,DefaultFilenamePolicy.Params> destinationFunction, DefaultFilenamePolicy.Params emptyDestination, SerializableFunction<UserT,OutputT> formatFunction)
FileBasedSink.DynamicDestinations
that returns instances of DefaultFilenamePolicy
configured with the given DefaultFilenamePolicy.Params
.