@PublicEvolving public static final class DefaultRollingPolicy.PolicyBuilder extends Object
DefaultRollingPolicy
.
The build()
method must be called to instantiate the policy.Modifier and Type | Method and Description |
---|---|
<IN,BucketID> |
build()
Creates the actual policy.
|
DefaultRollingPolicy.PolicyBuilder |
withInactivityInterval(Duration interval)
Sets the interval of allowed inactivity after which a part file will have to roll.
|
DefaultRollingPolicy.PolicyBuilder |
withInactivityInterval(long interval)
Deprecated.
Use
withInactivityInterval(Duration) instead. |
DefaultRollingPolicy.PolicyBuilder |
withMaxPartSize(long size)
Deprecated.
Use
withMaxPartSize(MemorySize) instead. |
DefaultRollingPolicy.PolicyBuilder |
withMaxPartSize(MemorySize size)
Sets the part size above which a part file will have to roll.
|
DefaultRollingPolicy.PolicyBuilder |
withRolloverInterval(Duration interval)
Sets the max time a part file can stay open before having to roll.
|
DefaultRollingPolicy.PolicyBuilder |
withRolloverInterval(long interval)
Deprecated.
Use
withRolloverInterval(Duration) instead. |
public DefaultRollingPolicy.PolicyBuilder withMaxPartSize(MemorySize size)
size
- the allowed part size.@Deprecated public DefaultRollingPolicy.PolicyBuilder withMaxPartSize(long size)
withMaxPartSize(MemorySize)
instead.size
- the allowed part size.@Deprecated public DefaultRollingPolicy.PolicyBuilder withInactivityInterval(long interval)
withInactivityInterval(Duration)
instead.StreamingFileSink.RowFormatBuilder.withBucketCheckInterval(long)
setting.interval
- the allowed inactivity interval.public DefaultRollingPolicy.PolicyBuilder withInactivityInterval(Duration interval)
StreamingFileSink.RowFormatBuilder.withBucketCheckInterval(long)
setting.interval
- the allowed inactivity interval.@Deprecated public DefaultRollingPolicy.PolicyBuilder withRolloverInterval(long interval)
withRolloverInterval(Duration)
instead.StreamingFileSink.RowFormatBuilder.withBucketCheckInterval(long)
setting.interval
- the desired rollover interval.public DefaultRollingPolicy.PolicyBuilder withRolloverInterval(Duration interval)
StreamingFileSink.RowFormatBuilder.withBucketCheckInterval(long)
setting.interval
- the desired rollover interval.public <IN,BucketID> DefaultRollingPolicy<IN,BucketID> build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.