public enum StreamingFileSinkProgram extends Enum<StreamingFileSinkProgram>
StreamingFileSink
.
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 |
StreamingFileSinkProgram.Generator
Data-generating source function.
|
static class |
StreamingFileSinkProgram.KeyBucketAssigner
Use first field for buckets.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
static StreamingFileSinkProgram |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamingFileSinkProgram[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static StreamingFileSinkProgram[] values()
for (StreamingFileSinkProgram c : StreamingFileSinkProgram.values()) System.out.println(c);
public static StreamingFileSinkProgram 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–2021 The Apache Software Foundation. All rights reserved.