Flink filesystem connector providing fault-tolerant rolling file sinks for streaming data to HDFS and Hadoop-compatible filesystems
—
Utility interfaces and classes that support the filesystem connector's operation.
Interface for providing current time to bucketing strategies.
public interface Clocklong currentTimeMillis()Returns the current time in milliseconds since Unix epoch.
Returns: Current time in milliseconds
Default Clock implementation that uses system time.
public class SystemClock implements Clockpublic SystemClock()Creates a SystemClock that returns System.currentTimeMillis().
import org.apache.flink.streaming.connectors.fs.Clock;
import org.apache.flink.streaming.connectors.fs.SystemClock;
// Typically used internally by the framework
Clock clock = new SystemClock();
long currentTime = clock.currentTimeMillis();Note: Clock implementations are primarily used internally by bucketing strategies and are automatically provided by the BucketingSink.
Install with Tessl CLI
npx tessl i tessl/maven-org-apache-flink--flink-connector-filesystem-2-10