@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(long interval)
Sets the interval of allowed inactivity after which a part file will have to roll.
|
DefaultRollingPolicy.PolicyBuilder |
withMaxPartSize(long size)
Sets the part size above which a part file will have to roll.
|
DefaultRollingPolicy.PolicyBuilder |
withRolloverInterval(long interval)
Sets the max time a part file can stay open before having to roll.
|
public DefaultRollingPolicy.PolicyBuilder withMaxPartSize(long size)
size
- the allowed part size.public DefaultRollingPolicy.PolicyBuilder withInactivityInterval(long interval)
StreamingFileSink.RowFormatBuilder.withBucketCheckInterval(long)
setting.interval
- the allowed inactivity interval.public DefaultRollingPolicy.PolicyBuilder withRolloverInterval(long interval)
StreamingFileSink.RowFormatBuilder.withBucketCheckInterval(long)
setting.interval
- the desired rollover interval.public <IN,BucketID> DefaultRollingPolicy<IN,BucketID> build()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.