public static class FileBasedSink.FilenamePolicy.Context
extends java.lang.Object
FileBasedSink.FilenamePolicy.Context
objects.
Be careful about adding fields to this as existing strategies will not notice the new fields, and may not produce unique filenames.
Constructor and Description |
---|
Context(int shardNumber,
int numShards) |
Modifier and Type | Method and Description |
---|---|
int |
getNumShards() |
int |
getShardNumber() |