public static class DefaultFilenamePolicy.Params
extends java.lang.Object
implements java.io.Serializable
DefaultFilenamePolicy
.
This is used as the DestinationT
argument to allow DefaultFilenamePolicy
objects to be dynamically generated.
Constructor and Description |
---|
Params()
Construct a default Params object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
DefaultFilenamePolicy.Params |
withBaseFilename(ResourceId baseFilename)
Sets the base filename.
|
DefaultFilenamePolicy.Params |
withBaseFilename(ValueProvider<ResourceId> baseFilename)
Like
withBaseFilename(ResourceId) , but takes in a ValueProvider . |
DefaultFilenamePolicy.Params |
withShardTemplate(java.lang.String shardTemplate)
Sets the shard template.
|
DefaultFilenamePolicy.Params |
withSuffix(java.lang.String suffix)
Sets the suffix.
|
DefaultFilenamePolicy.Params |
withWindowedWrites()
Specify that writes are windowed.
|
public Params()
DefaultFilenamePolicy.DEFAULT_UNWINDOWED_SHARD_TEMPLATE
value.public DefaultFilenamePolicy.Params withWindowedWrites()
DefaultFilenamePolicy.DEFAULT_WINDOWED_SHARD_TEMPLATE
.public DefaultFilenamePolicy.Params withBaseFilename(ResourceId baseFilename)
public DefaultFilenamePolicy.Params withBaseFilename(ValueProvider<ResourceId> baseFilename)
withBaseFilename(ResourceId)
, but takes in a ValueProvider
.public DefaultFilenamePolicy.Params withShardTemplate(java.lang.String shardTemplate)
public DefaultFilenamePolicy.Params withSuffix(java.lang.String suffix)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object