You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* set the zoneId to be used. If this method isnt called, the default is UTC
54
+
* @return this
55
+
* @throws NullPointerException if zoneId is null
56
+
*/
50
57
publicBuilderzoneId(finalZoneIdzoneId) {
51
58
Objects.requireNonNull(zoneId, "zoneId cannot be null");
52
59
this.zoneId = zoneId;
53
60
returnthis;
54
61
}
55
62
63
+
/**
64
+
* sets the type of the timestamp source and associated parameters (if needed)
65
+
* The format of the configuration is <type>[:<data>]
66
+
* i.e. the type name, optionally followed by data.
67
+
* <br>
68
+
* The data is type specific
69
+
* <p>
70
+
* For type WALLCLOCK or EVENT, no data is allowed
71
+
* </p>
72
+
* <p>
73
+
* For type SIMPLE_DATA, data is required, and is a '.' separated series of
74
+
* terms in the path
75
+
* <br>If the '.' is something that should be included in the terms, and you
76
+
* want to use a different separator, then you can specify a '.' as the first character, and the separator as the
77
+
* second character, and then the path is the rest of the string
78
+
* <br>For example "SIMPLE_DATA:a.b.c" would use into a path with
79
+
* terms "a", "b", "c"
80
+
* <br>For example "SIMPLE_DATA:.:a.b:c" would use a path with terms "a.b", "c"
81
+
* </p>
82
+
* For type HEADER, data is required, and is the name of the header to extract
83
+
* <br>For example "HEADER:foo" would use to "foo" header (or null if its not available in the SinkRecord
84
+
* </p>
85
+
* </p>
86
+
* For type CUSTOM, data is required, and is the name of the class to use, and any additional parameters for that custom time source.
87
+
* The specified class must implement the TimestampSource interface and have a public constructor that takes a String and a ZoneId. Fort the meaning of the data, see the documentation of the custom class.
88
+
* <br>For example "CUSTOM:my.custom.timesource:some more data" would be similar to calling new my.custom.timesource("some more data", zoneId)
0 commit comments