public enum FileSinkProgram extends Enum<FileSinkProgram>
StreamingFileSink
and FileSink
.
Uses a source that steadily emits a deterministic set of records over 60 seconds, after which it idles and waits for job cancellation. Every record has a unique index that is written to the file.
The sink rolls on each checkpoint, with each part file containing a sequence of integers. Adding all committed part files together, and numerically sorting the contents, should result in a complete sequence from 0 (inclusive) to 60000 (exclusive).
Modifier and Type | Class and Description |
---|---|
static class |
FileSinkProgram.Generator
Deprecated.
This class is based on the
SourceFunction API, which is due to be
removed. Use the new Source API instead. |
static class |
FileSinkProgram.KeyBucketAssigner
Use first field for buckets.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static FileSinkProgram |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileSinkProgram[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static FileSinkProgram[] values()
for (FileSinkProgram c : FileSinkProgram.values()) System.out.println(c);
public static FileSinkProgram valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.